Properties in "system"-scope dependencies breaks transitive dependency 
resolution
---------------------------------------------------------------------------------

                 Key: MNG-4265
                 URL: http://jira.codehaus.org/browse/MNG-4265
             Project: Maven 2
          Issue Type: Bug
          Components: Artifacts and Repositories, Dependencies
    Affects Versions: 2.2.0, 2.1.0, 2.1.0-M1, 2.0.10, 2.0.9
            Reporter: Marc Wilhelm
         Attachments: maven-properties-bug.tgz

If a used dependency (see artifact "component" in the attached example) 
contains itself a system-scope dependency (here "${JAVA_HOME}/lib/tools.jar") 
with properties, all transitive dependencies are ignored by the following 
warning:


{code:xml} 
[WARNING] POM for 'maven.bug:component:pom:0.0.1-SNAPSHOT:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
{code}

NOTE: The transitive dependencies are handled correctly when building from a 
(reactor) project, which builds both modules, the "component" and the "app". 
But it fails when trying to build the "app" isolated as single project.

If running the sample project against maven (2.0.4 up to) 2.0.8 it works fine, 
without problems.


Steps to reproduce:
- extract sample project
- ensure environment var JAVA_HOME is set properly
- build top level project by "mvn clean install". This should build without 
warnings
- change into sub folder "app"
- build module "app" via "mvn clean install". You should get the  warning about 
an invalid used pom.



-- 
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