Maven 2.x Project Info Reports Plugin

Add a qualityManagement goal

Details

  • Type: Wish Wish
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    3

Description

More and more projects use an external quality management tool. So it would be interesting to add a qualityManagement goal similar to the cim and issueTracking goals. With this goal, user could add this kind of configuration in his pom.xml:
<qualityManagement>
<system>sonar</system>
<url>http://host/sonar/myProject</url>
</ciManagement>

  1. MPIR-149_maven-2.0.x.patch
    27/Mar/09 1:01 PM
    6 kB
    Xavier Chatelain
  2. MPIR-149_maven-2.1.x.patch
    03/Apr/09 5:20 AM
    8 kB
    Xavier Chatelain
  3. MPIR-149_maven-project-info-reports-plugin.patch
    27/Mar/09 1:01 PM
    15 kB
    Xavier Chatelain

Issue Links

Activity

Hide
Freddy Mallet added a comment - - edited

In case of Sonar, as each project can be accessed through a permalink, this pom section would look like :

<qualityManagement>
    <system>Sonar</system>
    <url>http://host:port/sonar/project/index/{$project.groupId}:{$project.artifactId}</url>
</qualityManagement>
Show
Freddy Mallet added a comment - - edited In case of Sonar, as each project can be accessed through a permalink, this pom section would look like :
<qualityManagement>
    <system>Sonar</system>
    <url>http://host:port/sonar/project/index/{$project.groupId}:{$project.artifactId}</url>
</qualityManagement>
Hide
Vincent Siveton added a comment -

This idea sounds good to me, could you provide a patch?

Show
Vincent Siveton added a comment - This idea sounds good to me, could you provide a patch?
Hide
Xavier Chatelain added a comment -

I've been working on a quick patch, but it is still quite dirty (some unit tests fail). Unfortunately I'll be unplugged from the internet the next 20 days, so I won't be able to commit it before the end of the month.

Show
Xavier Chatelain added a comment - I've been working on a quick patch, but it is still quite dirty (some unit tests fail). Unfortunately I'll be unplugged from the internet the next 20 days, so I won't be able to commit it before the end of the month.
Hide
Xavier Chatelain added a comment -

Patch for a first basic quality management integration.
Apply MPIR-149_maven-2.0.x.patch on maven-2.0.x branch and MPIR-149_maven-project-info-reports-plugin.patch on maven-project-info-reports-plugin trunk.
You may want to change the maven-model dependency version in maven-project-info-reports-plugin/pom.xml for its release.
I could not check the unit tests as they fail with the error:
[WARNING] repository metadata for: 'artifact org.apache.maven.skins:maven-default-skin' could not be retrieved from repository: central due to an error: Error transferring file
[INFO] Repository 'central' will be blacklisted

Show
Xavier Chatelain added a comment - Patch for a first basic quality management integration. Apply MPIR-149_maven-2.0.x.patch on maven-2.0.x branch and MPIR-149_maven-project-info-reports-plugin.patch on maven-project-info-reports-plugin trunk. You may want to change the maven-model dependency version in maven-project-info-reports-plugin/pom.xml for its release. I could not check the unit tests as they fail with the error: [WARNING] repository metadata for: 'artifact org.apache.maven.skins:maven-default-skin' could not be retrieved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted
Hide
Xavier Chatelain added a comment -

And here is the patch for the maven-2.1.x branch.

Show
Xavier Chatelain added a comment - And here is the patch for the maven-2.1.x branch.
Hide
Olivier Lamy added a comment -

Have you tested http://docs.codehaus.org/display/SONAR/Sonar+Maven+report
Looks better/easier than modifying pom model.

Show
Olivier Lamy added a comment - Have you tested http://docs.codehaus.org/display/SONAR/Sonar+Maven+report Looks better/easier than modifying pom model.
Hide
Rémy Sanlaville added a comment -

The Sonar plugin is nice but it's even better if we can add a qualityManagement goal similar to the ci and issueTracking. In fact, in my opinion, it's a part of the project model and it's tools independent.

If I am not mistaken, the sonar team create this plugin because this qualityManagement goal didn't exist.

Show
Rémy Sanlaville added a comment - The Sonar plugin is nice but it's even better if we can add a qualityManagement goal similar to the ci and issueTracking. In fact, in my opinion, it's a part of the project model and it's tools independent. If I am not mistaken, the sonar team create this plugin because this qualityManagement goal didn't exist.

People

Vote (10)
Watch (9)

Dates

  • Created:
    Updated: