jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Sonar
  • SONAR-737

sonar can't use pom.xml using shade-plugin

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.7
  • Fix Version/s: None
  • Component/s: Maven Plugin
  • Labels:
    None

Description

Sonar can't cope with pom.xml using maven-shade-plugin.
Sonar can't even filter them with parameter sonar.skippedModules

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>

stacktrace if xxx-configuration-batch declare maven-shade-plugin

[INFO] task-segment: [org.codehaus.sonar:sonar-maven-plugin:1.7:sonar] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [sonar:sonar]
[INFO] Filtering projects: xxx-ear
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to find module xxx-batch pom.xml

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    sonar-shade.zip
    07/Apr/09 11:47 AM
    6 kB
    François Houdebert
    1. XML File
      sonar-shade/pom.xml 0.9 kB
    2. XML File
      sonar-shade/testSonar-tools/pom.xml 2 kB
    3. Java Source File
      sonar-shade/.../TestLauncher.java 0.5 kB
    4. XML File
      sonar-shade/testSonar-tools/.../log4j.xml 0.7 kB
    5. File
      sonar-shade/testSonar-tools/.../MANIFEST.MF 0.1 kB
    6. File
      sonar-shade/.../MANIFEST.MF.bak 0.2 kB
    7. File
      sonar-shade/testSonar-tools/.../report.xsl 3 kB
    Download Zip
    Show
    Zip Archive
    sonar-shade.zip
    07/Apr/09 11:47 AM
    6 kB
    François Houdebert
  2. Text File
    trace.txt
    08/Apr/09 4:03 AM
    7 kB
    François Houdebert

Issue Links

relates to

Bug - A problem which impairs or prevents the functions of the product. SONAR-594 Sonar FindBugs plugin fails on EAR projects with sources

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Freddy Mallet added a comment - 07/Apr/09 11:06 AM

François, we need more information on your context to help you figure out what happens. Could you attach to this ticket a simple Maven project with its modules to allow us to locally replay the error ?
Thanks,
Freddy

Show
Freddy Mallet added a comment - 07/Apr/09 11:06 AM François, we need more information on your context to help you figure out what happens. Could you attach to this ticket a simple Maven project with its modules to allow us to locally replay the error ? Thanks, Freddy
Hide
Permalink
Freddy Mallet added a comment - 07/Apr/09 4:45 PM

Hello François, on the provided Maven project, I've managed to launch :

mvn clean install
mvn org.codehaus.sonar:sonar-maven-plugin:1.7:sonar

What do I need to do in order to get the error ?
Thanks,
Freddy

Show
Freddy Mallet added a comment - 07/Apr/09 4:45 PM Hello François, on the provided Maven project, I've managed to launch :
mvn clean install
mvn org.codehaus.sonar:sonar-maven-plugin:1.7:sonar
What do I need to do in order to get the error ? Thanks, Freddy
Hide
Permalink
François Houdebert added a comment - 08/Apr/09 4:03 AM

I managed to get a stacktrace, in fact It is probably something else than the shade plugin.

Show
François Houdebert added a comment - 08/Apr/09 4:03 AM I managed to get a stacktrace, in fact It is probably something else than the shade plugin.
Hide
Permalink
Freddy Mallet added a comment - 09/Apr/09 5:46 AM

Hello François, I've activated all the findbugs rules and still don't manage to reproduce the exception when I launch :

mvn clean install
mvn org.codehaus.sonar:sonar-maven-plugin:1.7:sonar

Did you get this error on your side on exactly the same project attached to this ticket ? Or do you inherits from a parent pom in your company for instance that you can't provide ?
Thanks

Show
Freddy Mallet added a comment - 09/Apr/09 5:46 AM Hello François, I've activated all the findbugs rules and still don't manage to reproduce the exception when I launch :
mvn clean install
mvn org.codehaus.sonar:sonar-maven-plugin:1.7:sonar
Did you get this error on your side on exactly the same project attached to this ticket ? Or do you inherits from a parent pom in your company for instance that you can't provide ? Thanks
Hide
Permalink
François Houdebert added a comment - 09/Apr/09 6:43 AM

I have got the error on a similar project that i can't provide with a parent pom.
When I launch "mvn findbugs:findbugs find", the reports contain no bugs.

What should I add on the attached project ?

Show
François Houdebert added a comment - 09/Apr/09 6:43 AM I have got the error on a similar project that i can't provide with a parent pom. When I launch "mvn findbugs:findbugs find", the reports contain no bugs. What should I add on the attached project ?
Hide
Permalink
Freddy Mallet added a comment - 09/Apr/09 4:05 PM

Ok François, your current issue duplicates SONAR-594 and should be fixed with SONAR-749. In the meanwhile, you don't have any workaround expect deactivating findbugs rules on this project.

Freddy

Show
Freddy Mallet added a comment - 09/Apr/09 4:05 PM Ok François, your current issue duplicates SONAR-594 and should be fixed with SONAR-749. In the meanwhile, you don't have any workaround expect deactivating findbugs rules on this project. Freddy

People

  • Assignee:
    Unassigned
    Reporter:
    François Houdebert
Vote (0)
Watch (0)

Dates

  • Created:
    06/Apr/09 6:47 AM
    Updated:
    09/Apr/09 4:05 PM
    Resolved:
    09/Apr/09 4:05 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.