Maven 2.x Project Info Reports Plugin

Unable to exclude scm anonymous access info

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Not A Bug
  • Affects Version/s: 2.0.1
  • Fix Version/s: None
  • Component/s: scm
  • Labels:
    None
  • Environment:
    WinXP SP2 fully patched, jdk 1.6.0_03, Maven 2.0.8, Continuum 1.1
  • Number of attachments :
    0

Description

Currently there's no way to exclude the information, about anonymous access to the source repository, from the scm report.

In the doc [1] it says, the anonymousConnection defaults to project.scm.connection in POM, but explicitly setting a blank <anonymousConnection/> configuration element just has no effect, as discussed in the maven user list [2], while setting it to a invalid value e.g. <anonymousConnection>foo</anonymousConnection> still has no effect with 2.0.1, but will cause "horrible" problems with 2.1-SNAPSHOT.

[1] http://maven.apache.org/plugins/maven-project-info-reports-plugin/scm-mojo.html#anonymousConnection
[2] http://www.nabble.com/forum/ViewPost.jtp?post=14413537&framed=y&skin=177

Issue Links

Activity

Hide
Vincent Siveton added a comment -

Yes you could do it if you leave empty scm.connection tag ie:

<project>
  ...
  <scm>
    <!-- Unspecified <connection/> tag -->
    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-project-info-reports-plugin/</developerConnection>
    <url>http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/</url>
  </scm>
  ...
</project>

BUT it doesn't work using an empty <anonymousConnection/> tag due to Plexus constraints.

I updated the doc in r674128

Show
Vincent Siveton added a comment - Yes you could do it if you leave empty scm.connection tag ie:
<project>
  ...
  <scm>
    <!-- Unspecified <connection/> tag -->
    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-project-info-reports-plugin/</developerConnection>
    <url>http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/</url>
  </scm>
  ...
</project>
BUT it doesn't work using an empty <anonymousConnection/> tag due to Plexus constraints. I updated the doc in r674128

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: