[
http://jira.codehaus.org/browse/MPIR-163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=244574#action_244574
]
Vincent Siveton commented on MPIR-163:
--------------------------------------
Yes it is a known limitation of the basedir... you could define a trunk.dir
property in your parent and override it in your modules i.e.
{code}
|trunk.dir
|_LICENSE.TXT
|_ pom.xml (parent)
|_ module\
|_ pom.xml
{code}
Parent pom.xml:
{code}
<properties>
<trunk.dir>${basedir}</trunk.dir>
</properties>
<licenses>
<license>
<name>XXX</name>
<url>${trunk.dir}/LICENSE.TXT</ur>
</license>
</licenses>
{code}
Module pom.xml:
{code}
<properties>
<trunk.dir>${basedir}/..</trunk.dir>
</properties>
{code}
You could make your LICENSE.TXT on a webserver or on a public svn.
> Invalid url fragment with local license file
> --------------------------------------------
>
> Key: MPIR-163
> URL: http://jira.codehaus.org/browse/MPIR-163
> Project: Maven 2.x Project Info Reports Plugin
> Issue Type: Bug
> Components: dependencies
> Affects Versions: 2.1.1
> Environment: mvn 2.0.10, xp sp2
> Reporter: Michael Osipov
> Attachments: local-license.patch
>
>
> I've set a local license file from my basedir in my pom. The dependencies
> tree report lists the license but links to /dependencies.html#LICENSE.txt
> which is incorrect. See
> [here|http://java.fckeditor.net/java-demo/dependencies.html] for
> net.fckeditor:java-core:jar:2.5-beta-1 for the failing testcase.
> I have patched 2.1.1 which works well, see attachment.
--
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