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
            Priority: Minor


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

        

Reply via email to