[
http://jira.codehaus.org/browse/MNG-4953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Bentmann closed MNG-4953.
----------------------------------
Resolution: Fixed
Fix Version/s: 3.0.2
Assignee: Benjamin Bentmann
Done in [r1053111|http://svn.apache.org/viewvc?view=revision&revision=1053111].
> Issue a warning when a system-scope dependency refers to the project basedir
> ----------------------------------------------------------------------------
>
> Key: MNG-4953
> URL: http://jira.codehaus.org/browse/MNG-4953
> Project: Maven 2 & 3
> Issue Type: Improvement
> Components: Dependencies, POM
> Affects Versions: 3.0.1
> Reporter: Benjamin Bentmann
> Assignee: Benjamin Bentmann
> Priority: Minor
> Fix For: 3.0.2
>
>
> This is an anti-pattern that asks for troubles as the declaring POM will be
> be unusable during dependency resolution (when accessed from a repository):
> {code:xml}
> <dependency>
> ...
> <scope>system</scope>
> <systemPath>${basedir}/lib/foo.jar</systemPath>
> </dependency>
> {code}
> As such, usage of either {{basedir}} and {{project.basedir}} for the system
> path should emit a warning to help stopping this kind of bad practice.
--
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