[ http://jira.codehaus.org/browse/MCHANGELOG-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_97987
]
Jim Crossley commented on MCHANGELOG-52:
----------------------------------------
Ok, I think I figured out what's going on and I have a workaround that fixes the links. The
problem is that the plugin's configuration parameter, basedir, defaults to ${project.build.sourceDirectory}.
IMHO, this is wrong. It should default to the actual ${basedir} instead. For me, the following
configuration fixes this bug:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<basedir>${basedir}</basedir>
</configuration>
</plugin>
So the answer to Stefan's question above is yes, only changes to src/main/java are considered,
by default, and because of that, the resulting links are rendered broken.
> Links are broken for viewcvs.cgi
> --------------------------------
>
> Key: MCHANGELOG-52
> URL: http://jira.codehaus.org/browse/MCHANGELOG-52
> Project: Maven 2.x Changelog Plugin
> Issue Type: Bug
> Affects Versions: 2.0-beta-1
> Environment: cvs on linux
> Reporter: Jim Crossley
> Assignee: Dennis Lundberg
> Fix For: 2.0
>
>
> My project.scm.url is 'http://cvs/viewcvs.cgi/myproject/'. If I make a change to 'src/main/java/com/foo/Bar.java',
the resulting link is 'http://cvs/viewcvs.cgi/myproject/om/foo/Bar.java'. Note the absence
of 'src/main/java/c'. The lopped-off 'c' is especially distressing.
> I can hack sort of a fix by adding this to the plugin element:
> <configuration>
> <scmUrl>http://cvs/viewcvs.cgi/sdvrpc-maven/src/main/java/c</scmUrl>
> </configuration>
> But that's gross, and it would only account for changes beneath 'src/main/java', so changes
beneath ${basedir} would still be broken.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|