Hi
SonarQube 4.0 Running with Maven I'm having trouble with the sonar.issue.ignore.multicriteriaflag When specifying the pattern in my pom.xml, the following error is reported. [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.2:sonar (default-cli) on project : Can not execute SonarQube analysis: Exclusions > Issues : Invalid format. The first field does not define a resource pattern: ,,* -> [Help 1] I turned on debug logging and this is what I get [INFO] ------------------------------------------------------------------------ [WARNING] The POM for joda-time:joda-time-jsptags:jar:1.0.2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [INFO] [INFO] --- sonar-maven-plugin:2.2:sonar (default-cli) @ reku --- [INFO] SonarQube version: 4.0 INFO: Default locale: "nb_NO", source code encoding: "UTF-8" INFO: Work directory: /Users/tine/Development/git-repos/ReKu/target/sonar INFO: SonarQube Server 4.0 [INFO] [09:41:55.737] Load batch settings [DEBUG] [09:41:55.755] Download: http://trm.tine.no/sonar/batch_bootstrap/properties?dryRun=false(no proxy) [INFO] [09:41:55.859] User cache: /Users/tine/.sonar/cache [INFO] [09:41:55.863] Install plugins [DEBUG] [09:41:55.863] Download index of plugins [DEBUG] [09:41:55.863] Download: http://trm.tine.no/sonar/deploy/plugins/index.txt(no proxy) [DEBUG] [09:41:55.881] Installing plugin findbugs into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/findbugs [DEBUG] [09:41:55.966] Installing plugin issuesreport into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/issuesreport [DEBUG] [09:41:55.988] Installing plugin timeline into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/timeline [DEBUG] [09:41:55.992] Installing plugin clirr into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/clirr [DEBUG] [09:41:55.994] Installing plugin l10nen into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/l10nen [DEBUG] [09:41:55.995] Installing plugin cutoff into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/cutoff [DEBUG] [09:41:55.996] Installing plugin scmactivity into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/scmactivity [DEBUG] [09:41:56.034] Installing plugin cpd into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/cpd [DEBUG] [09:41:56.037] Installing plugin pmd into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/pmd [DEBUG] [09:41:56.061] Installing plugin squidjava into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/squidjava [DEBUG] [09:41:56.086] Installing plugin emailnotifications into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/emailnotifications [DEBUG] [09:41:56.097] Installing plugin javascript into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/javascript [DEBUG] [09:41:56.112] Installing plugin motionchart into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/motionchart [DEBUG] [09:41:56.115] Installing plugin groovy into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/groovy [DEBUG] [09:41:56.255] Installing plugin qualityindex into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/qualityindex [DEBUG] [09:41:56.277] Installing plugin securityrules into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/securityrules [DEBUG] [09:41:56.279] Installing plugin web into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/web [DEBUG] [09:41:56.284] Installing plugin jacoco into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/jacoco [DEBUG] [09:41:56.293] Installing plugin mavenbatch into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/mavenbatch [DEBUG] [09:41:56.294] Installing plugin jira into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/jira [DEBUG] [09:41:56.320] Installing plugin surefire into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/surefire [DEBUG] [09:41:56.326] Installing plugin ldap into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/ldap [DEBUG] [09:41:56.327] Installing plugin checkstyle into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/checkstyle [DEBUG] [09:41:56.343] Installing plugin java into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/java [DEBUG] [09:41:56.347] Installing plugin core into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/core [DEBUG] [09:41:56.350] Installing plugin dbcleaner into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/dbcleaner [DEBUG] [09:41:56.351] Installing plugin design into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/design [DEBUG] [09:41:56.355] Installing plugin buildbreaker into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/buildbreaker [INFO] [09:41:56.566] Install JDBC driver [DEBUG] [09:41:56.566] Download index of jdbc-driver [DEBUG] [09:41:56.566] Download: http://trm.tine.no/sonar/deploy/jdbc-driver.txt(no proxy) [INFO] [09:41:56.579] Create JDBC datasource for jdbc [DEBUG] [09:41:56.720] Testing JDBC connection [DEBUG] [09:41:57.455] Download: [INFO] [09:41:57.574] Initializing Hibernate [DEBUG] [09:41:57.577] hibernate.generate_statistics: false [DEBUG] [09:41:57.577] hibernate.dialect: org.sonar.core.persistence.dialect. [DEBUG] [09:41:57.577] hibernate.connection.provider_class: org.sonar.jpa.session.CustomHibernateConnectionProvider [DEBUG] [09:41:57.577] hibernate.hbm2ddl.auto: validate [DEBUG] [09:42:00.327] Loaded 2976 properties from l10n bundles [INFO] [09:42:01.415] Load project settings [DEBUG] [09:42:01.415] Download: http://trm.tine.no/sonar/batch_bootstrap/properties?project=no.tine:reku:Develop&dryRun=false(no proxy) [INFO] [09:42:01.496] Apply project exclusions [INFO] [09:42:01.512] Exclude project: Integration tests for API [no.tine.reku:api-integration-test] [INFO] [09:42:01.512] Exclude project: SDB Legacy Support [no.tine.reku:sdb-legacy] [INFO] [09:42:01.513] Exclude project: Akseptansetester i Cucumber [no.tine.reku:cucumber] [DEBUG] [09:42:03.098] Acquire semaphore on project : org.sonar.api.resources.Project@7a9fa239[id=47998,key=no.tine:reku:Develop,qualifier=TRK], with key batch-no.tine:reku:Develop [INFO] [09:42:03.129] ------------- Scan jobs-domain Develop [INFO] [09:42:03.133] Load module settings [DEBUG] [09:42:03.138] Download: http://trm.tine.no/sonar/batch_bootstrap/properties?project=no.tine.reku.jobs:jobs-domain:Develop&dryRun=false(no proxy) [DEBUG] [09:42:03.439] Available languages: [DEBUG] [09:42:03.439] * JavaScript => "js" [DEBUG] [09:42:03.439] * Groovy => "grvy" [DEBUG] [09:42:03.439] * Web => "web" [DEBUG] [09:42:03.439] * Java => "java" [INFO] [09:42:06.694] Quality profile : [name=core_alerts,language=java] [INFO] [09:42:06.696] Excluded sources: [INFO] [09:42:06.696] no/tine/api/**/*Config.java [INFO] [09:42:06.696] no/tine/api/**/domain/*.java [INFO] [09:42:06.696] java [INFO] [09:42:06.696] no/tine/api/**/domain/**/*.java [INFO] [09:42:06.696] no/tine/api/**/ext/*.java [INFO] [09:42:06.696] no/tine/api/testtools/**/*Builder.java [INFO] [09:42:06.696] no.tine.api/**/*Listing.java [INFO] [09:42:06.696] no/tine/**/*Config.java [INFO] [09:42:06.696] no/tine/cuke4duke/**/*.java [INFO] [09:42:06.696] no/mats/**/*.java [INFO] [09:42:06.696] no/tine/reku/common/registration/field/*Fields.java [INFO] [09:42:06.696] no/tine/reku/jobs/**/GeneralReportLookupService.java [INFO] [09:42:06.696] Excluded tests: [INFO] [09:42:06.696] **/package-info.java [INFO] [09:42:06.800] Cutoff date not set [INFO] [09:42:06.801] Index files [INFO] [09:42:07.056] 235 files indexed [DEBUG] [09:42:07.068] Release semaphore on project : org.sonar.api.resources.Project@7a9fa239[id=47998,key=no.tine:reku:Develop,qualifier=TRK], with key batch-no.tine:reku:Develop [DEBUG] [09:42:07.177] To prevent a memory leak, the JDBC Driver [net.sourceforge.jtds.jdbc.Driver] has been forcibly deregistered [ERROR] Exclusions > Issues : Invalid format. The first field does not define a resource pattern: ,,* I have tried to define the format according to the docs http://docs.codehaus.org/display/SONAR/Narrowing+the+Focus#NarrowingtheFocus-IgnoreIssues however, I cannot get it to work This is my pom config <sonar.issue.ignore.multicriteria> *TooManyMethods;no/**/*Resource.java </sonar.issue.ignore.multicriteria> As mentioned, I have tried several different formats, 2 and 3 fields, and switching positions for each field. I have also tried to define the ignore rules in the SonarQube GUI, but that doesn't take effect Any help appreciated :) Med vennlig hilsen TINE SA
|
Hi Rune, See http://docs.codehaus.org/display/SONAR/Narrowing+the+Focus#NarrowingtheFocus-IgnoreIssues: Note that the properties below can only be set through the web interface because they are multi-valued. Regards, David RACODON | SonarSource Senior Consultant ---------------------------------------------
Sign up to our newsletter here!
--------------------------------------------- On Mon, Feb 3, 2014 at 9:58 AM, Rune Engseth <[hidden email]> wrote: Hi |
Ahh, thanks for the pointer.
Case closed Med vennlig hilsen TINE SA
Hi Rune, See http://docs.codehaus.org/display/SONAR/Narrowing+the+Focus#NarrowingtheFocus-IgnoreIssues: Note that the properties below can only be set through the web interface because they are multi-valued. Regards, David RACODON | SonarSource Senior Consultant http://sonarsource.com --------------------------------------------- Sign up to our newsletter here! --------------------------------------------- On Mon, Feb 3, 2014 at 9:58 AM, Rune Engseth <rune.engseth@...> wrote: Hi SonarQube 4.0 Running with Maven I'm having trouble with the sonar.issue.ignore.multicriteriaflag When specifying the pattern in my pom.xml, the following error is reported. [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.2:sonar (default-cli) on project : Can not execute SonarQube analysis: Exclusions > Issues : Invalid format. The first field does not define a resource pattern: ,,* -> [Help 1] I turned on debug logging and this is what I get [INFO] ------------------------------------------------------------------------ [WARNING] The POM for joda-time:joda-time-jsptags:jar:1.0.2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [INFO] [INFO] --- sonar-maven-plugin:2.2:sonar (default-cli) @ reku --- [INFO] SonarQube version: 4.0 INFO: Default locale: "nb_NO", source code encoding: "UTF-8" INFO: Work directory: /Users/tine/Development/git-repos/ReKu/target/sonar INFO: SonarQube Server 4.0 [INFO] [09:41:55.737] Load batch settings [DEBUG] [09:41:55.755] Download: http://trm.tine.no/sonar/batch_bootstrap/properties?dryRun=false(no proxy) [INFO] [09:41:55.859] User cache: /Users/tine/.sonar/cache [INFO] [09:41:55.863] Install plugins [DEBUG] [09:41:55.863] Download index of plugins [DEBUG] [09:41:55.863] Download: http://trm.tine.no/sonar/deploy/plugins/index.txt(no proxy) [DEBUG] [09:41:55.881] Installing plugin findbugs into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/findbugs [DEBUG] [09:41:55.966] Installing plugin issuesreport into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/issuesreport [DEBUG] [09:41:55.988] Installing plugin timeline into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/timeline [DEBUG] [09:41:55.992] Installing plugin clirr into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/clirr [DEBUG] [09:41:55.994] Installing plugin l10nen into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/l10nen [DEBUG] [09:41:55.995] Installing plugin cutoff into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/cutoff [DEBUG] [09:41:55.996] Installing plugin scmactivity into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/scmactivity [DEBUG] [09:41:56.034] Installing plugin cpd into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/cpd [DEBUG] [09:41:56.037] Installing plugin pmd into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/pmd [DEBUG] [09:41:56.061] Installing plugin squidjava into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/squidjava [DEBUG] [09:41:56.086] Installing plugin emailnotifications into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/emailnotifications [DEBUG] [09:41:56.097] Installing plugin javascript into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/javascript [DEBUG] [09:41:56.112] Installing plugin motionchart into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/motionchart [DEBUG] [09:41:56.115] Installing plugin groovy into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/groovy [DEBUG] [09:41:56.255] Installing plugin qualityindex into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/qualityindex [DEBUG] [09:41:56.277] Installing plugin securityrules into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/securityrules [DEBUG] [09:41:56.279] Installing plugin web into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/web [DEBUG] [09:41:56.284] Installing plugin jacoco into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/jacoco [DEBUG] [09:41:56.293] Installing plugin mavenbatch into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/mavenbatch [DEBUG] [09:41:56.294] Installing plugin jira into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/jira [DEBUG] [09:41:56.320] Installing plugin surefire into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/surefire [DEBUG] [09:41:56.326] Installing plugin ldap into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/ldap [DEBUG] [09:41:56.327] Installing plugin checkstyle into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/checkstyle [DEBUG] [09:41:56.343] Installing plugin java into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/java [DEBUG] [09:41:56.347] Installing plugin core into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/core [DEBUG] [09:41:56.350] Installing plugin dbcleaner into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/dbcleaner [DEBUG] [09:41:56.351] Installing plugin design into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/design [DEBUG] [09:41:56.355] Installing plugin buildbreaker into /Users/tine/Development/git-repos/ReKu/target/sonar/.sonartmp/plugins/buildbreaker [INFO] [09:41:56.566] Install JDBC driver [DEBUG] [09:41:56.566] Download index of jdbc-driver [DEBUG] [09:41:56.566] Download: http://trm.tine.no/sonar/deploy/jdbc-driver.txt(no proxy) [INFO] [09:41:56.579] Create JDBC datasource for jdbc [DEBUG] [09:41:56.720] Testing JDBC connection [DEBUG] [09:41:57.455] Download: [INFO] [09:41:57.574] Initializing Hibernate [DEBUG] [09:41:57.577] hibernate.generate_statistics: false [DEBUG] [09:41:57.577] hibernate.dialect: org.sonar.core.persistence.dialect. [DEBUG] [09:41:57.577] hibernate.connection.provider_class: org.sonar.jpa.session.CustomHibernateConnectionProvider [DEBUG] [09:41:57.577] hibernate.hbm2ddl.auto: validate [DEBUG] [09:42:00.327] Loaded 2976 properties from l10n bundles [INFO] [09:42:01.415] Load project settings [DEBUG] [09:42:01.415] Download: http://trm.tine.no/sonar/batch_bootstrap/properties?project=no.tine:reku:Develop&dryRun=false(no proxy) [INFO] [09:42:01.496] Apply project exclusions [INFO] [09:42:01.512] Exclude project: Integration tests for API [no.tine.reku:api-integration-test] [INFO] [09:42:01.512] Exclude project: SDB Legacy Support [no.tine.reku:sdb-legacy] [INFO] [09:42:01.513] Exclude project: Akseptansetester i Cucumber [no.tine.reku:cucumber] [DEBUG] [09:42:03.098] Acquire semaphore on project : org.sonar.api.resources.Project@7a9fa239[id=47998,key=no.tine:reku:Develop,qualifier=TRK], with key batch-no.tine:reku:Develop [INFO] [09:42:03.129] ------------- Scan jobs-domain Develop [INFO] [09:42:03.133] Load module settings [DEBUG] [09:42:03.138] Download: http://trm.tine.no/sonar/batch_bootstrap/properties?project=no.tine.reku.jobs:jobs-domain:Develop&dryRun=false(no proxy) [DEBUG] [09:42:03.439] Available languages: [DEBUG] [09:42:03.439] * JavaScript => "js" [DEBUG] [09:42:03.439] * Groovy => "grvy" [DEBUG] [09:42:03.439] * Web => "web" [DEBUG] [09:42:03.439] * Java => "java" [INFO] [09:42:06.694] Quality profile : [name=core_alerts,language=java] [INFO] [09:42:06.696] Excluded sources: [INFO] [09:42:06.696] no/tine/api/**/*Config.java [INFO] [09:42:06.696] no/tine/api/**/domain/*.java [INFO] [09:42:06.696] java [INFO] [09:42:06.696] no/tine/api/**/domain/**/*.java [INFO] [09:42:06.696] no/tine/api/**/ext/*.java [INFO] [09:42:06.696] no/tine/api/testtools/**/*Builder.java [INFO] [09:42:06.696] no.tine.api/**/*Listing.java [INFO] [09:42:06.696] no/tine/**/*Config.java [INFO] [09:42:06.696] no/tine/cuke4duke/**/*.java [INFO] [09:42:06.696] no/mats/**/*.java [INFO] [09:42:06.696] no/tine/reku/common/registration/field/*Fields.java [INFO] [09:42:06.696] no/tine/reku/jobs/**/GeneralReportLookupService.java [INFO] [09:42:06.696] Excluded tests: [INFO] [09:42:06.696] **/package-info.java [INFO] [09:42:06.800] Cutoff date not set [INFO] [09:42:06.801] Index files [INFO] [09:42:07.056] 235 files indexed [DEBUG] [09:42:07.068] Release semaphore on project : org.sonar.api.resources.Project@7a9fa239[id=47998,key=no.tine:reku:Develop,qualifier=TRK], with key batch-no.tine:reku:Develop [DEBUG] [09:42:07.177] To prevent a memory leak, the JDBC Driver [net.sourceforge.jtds.jdbc.Driver] has been forcibly deregistered [ERROR] Exclusions > Issues : Invalid format. The first field does not define a resource pattern: ,,* I have tried to define the format according to the docs http://docs.codehaus.org/display/SONAR/Narrowing+the+Focus#NarrowingtheFocus-IgnoreIssues however, I cannot get it to work This is my pom config <sonar.issue.ignore.multicriteria> *TooManyMethods;no/**/*Resource.java </sonar.issue.ignore.multicriteria> As mentioned, I have tried several different formats, 2 and 3 fields, and switching positions for each field. I have also tried to define the ignore rules in the SonarQube GUI, but that doesn't take effect Any help appreciated :) Med vennlig hilsen TINE SA
|
In reply to this post by runeaen
Hi
I documented my findings on stackoverflow: http://stackoverflow.com/questions/21825469/configure-sonar-sonar-issue-ignore-multicriteria-through-maven Cheers, -Urs |
Hi, Just note that it is a hack and that there's no guarantee that it'll be supported this way in future versions. Regards, David RACODON | SonarSource Senior Consultant ---------------------------------------------
Sign up to our newsletter here!
--------------------------------------------- On Mon, Feb 17, 2014 at 11:06 AM, [hidden email] <[hidden email]> wrote: Hi |
On 19/02/2014 10:42, David Racodon wrote:
> Hi, > > Just note that it is a hack and that there's no guarantee that it'll be > supported this way in future versions. > > Regards, > > > *David RACODON | **SonarSource > Hi > I documented my findings on stackoverflow: > http://stackoverflow.com/questions/21825469/configure-sonar-sonar-issue-ignore-multicriteria-through-maven > Cheers, > -Urs Thanks for the tip, it works for me! @David, are there any plans for officially supporting such multivalue properties without using the web interface, e.g., in pom.xml? cheers Lorenzo -- Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino HOME: http://www.lorenzobettini.it Xtext Book: http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
Sorry, but no. On Wed, Sep 3, 2014 at 5:20 PM, Lorenzo Bettini <[hidden email]> wrote: On 19/02/2014 10:42, David Racodon wrote: |
Free forum by Nabble | Edit this page |