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)
  • Maven 2.x Project Info Reports Plugin
  • MPIR-33

ScmReport doesn't accept non-artifactId URLs

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0-beta-3
  • Fix Version/s: 2.0
  • Component/s: None
  • Labels:
    None

Description

For maven-site, the SCM url is .../maven/site/trunk/. With this defined in the POM, the ScmReport automatically adds "maven-site" (the artifactId) which results in an inaccurate SCM command and links. There should be a method for specifying "absolute" (format what's specified with no additions) SCM information as well as "default" (add artifactId) information in the POM.

This issue is related to MNG-2129 dealing with maven-site's SCM reports.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brian K. Wallace added a comment - 07/Mar/06 2:06 PM

I believe I have inaccurately reported this issue. The issue appears to be more with documentation of "how/why" rather than functional. In the maven-site POM, the link is now generated correctly, however there is no documentation (that I could find) about how to make it happen.

The relevant (I believe) portion of the POM follows with the only possible indication of this functionality resting with "excludeDefaults" which is under "reporting", not the plugin report itself.

<reporting>
<excludeDefaults>true</excludeDefaults>
<!-- TODO: disable dependencies -->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</plugin>
</plugins>
</reporting>
<!-- repeated here so that maven-site is not appended -->
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/maven/components/trunk/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/components/trunk/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/maven/components/trunk/</url>
</scm>

Show
Brian K. Wallace added a comment - 07/Mar/06 2:06 PM I believe I have inaccurately reported this issue. The issue appears to be more with documentation of "how/why" rather than functional. In the maven-site POM, the link is now generated correctly, however there is no documentation (that I could find) about how to make it happen. The relevant (I believe) portion of the POM follows with the only possible indication of this functionality resting with "excludeDefaults" which is under "reporting", not the plugin report itself. <reporting> <excludeDefaults>true</excludeDefaults> <!-- TODO: disable dependencies --> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> </plugin> </plugins> </reporting> <!-- repeated here so that maven-site is not appended --> <scm> <connection>scm:svn:http://svn.apache.org/repos/asf/maven/components/trunk/</connection> <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/components/trunk/</developerConnection> <url>http://svn.apache.org/viewcvs.cgi/maven/components/trunk/</url> </scm>
Hide
Permalink
Brett Porter added a comment - 09/Mar/06 2:53 AM

no, its not exclude defaults.

the report says:
svn co http://svn.apache.org/repos/asf/maven/components/trunk/ maven-site
This means check out "http://svn.apache.org/repos/asf/maven/components/trunk/" and call the directory "maven-site"

I'd suggest just adding a configuration element to the report:

<checkoutDirectoryName>maven</checkoutDirectory>

Show
Brett Porter added a comment - 09/Mar/06 2:53 AM no, its not exclude defaults. the report says: svn co http://svn.apache.org/repos/asf/maven/components/trunk/ maven-site This means check out "http://svn.apache.org/repos/asf/maven/components/trunk/" and call the directory "maven-site" I'd suggest just adding a configuration element to the report: <checkoutDirectoryName>maven</checkoutDirectory>
Hide
Permalink
Edwin Punzalan added a comment - 09/Mar/06 9:34 PM

Fixed in svn. To use:

<reporting>
<plugins>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<configuration>
<checkoutDirectoryName>myDir</checkoutDirectoryName>
</configuration>
</plugin>
</plugins>
</reporting>

Show
Edwin Punzalan added a comment - 09/Mar/06 9:34 PM Fixed in svn. To use: <reporting> <plugins> <plugin> <artifactId>maven-project-info-reports-plugin</artifactId> <configuration> <checkoutDirectoryName>myDir</checkoutDirectoryName> </configuration> </plugin> </plugins> </reporting>

People

  • Assignee:
    Edwin Punzalan
    Reporter:
    Brian K. Wallace
Vote (0)
Watch (0)

Dates

  • Created:
    07/Mar/06 10:12 AM
    Updated:
    09/Mar/06 9:35 PM
    Resolved:
    09/Mar/06 9:34 PM

Time Tracking

Estimated:
1h
Original Estimate - 1 hour
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
1h
Time Spent - 1 hour
  • 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.