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-138

Skip a list of maven modules

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5
  • Fix Version/s: 1.5
  • Component/s: None
  • Labels:
    None

Description

Some modules are useless for qualitative/quantitative measures. For example the samples module of greenpepper (http://sonar-demo.hortis.ch/project/dashboard/132) should not impact the global code coverage.

The best way to do that is to give a new parameter "-Dskip_modules" to the Sonar Maven plugin through the command line. The value of this parameter is a coma separated list of modules to ignore

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Simon Brandhof added a comment - 16/Jan/08 5:21 AM

Another solution is to set the list of projects to ignore from a settings.xml property. It is not intrusive for pom.xml.

Show
Simon Brandhof added a comment - 16/Jan/08 5:21 AM Another solution is to set the list of projects to ignore from a settings.xml property. It is not intrusive for pom.xml.
Hide
Permalink
Cédric Munger added a comment - 26/Aug/08 6:40 AM

finally implemented with parameter -Dsonar.skipped.modules I.E : mvn org.codehaus.sonar:sonar-maven-plugin:sonar -Dsonar.skipped.modules=module_b,submodule_a2
where module_b,submodule_a2 are projects artifact ids

Show
Cédric Munger added a comment - 26/Aug/08 6:40 AM finally implemented with parameter -Dsonar.skipped.modules I.E : mvn org.codehaus.sonar:sonar-maven-plugin:sonar -Dsonar.skipped.modules=module_b,submodule_a2 where module_b,submodule_a2 are projects artifact ids
Hide
Permalink
Simon Brandhof added a comment - 29/Nov/08 5:20 AM

The parameter is renamed sonar.skippedModules on 1.5RC1

Show
Simon Brandhof added a comment - 29/Nov/08 5:20 AM The parameter is renamed sonar.skippedModules on 1.5RC1

People

  • Assignee:
    Cédric Munger
    Reporter:
    Simon Brandhof
Vote (2)
Watch (2)

Dates

  • Created:
    14/Jan/08 12:16 PM
    Updated:
    18/Dec/08 11:40 AM
    Resolved:
    08/Sep/08 2:37 AM
  • 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.