You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jake pezaro (JIRA)" <ji...@codehaus.org> on 2013/01/10 08:15:13 UTC
[jira] (MNG-5421) Settings.xml property resolution fails when used
in dependencies.dependency.systempath
jake pezaro created MNG-5421:
--------------------------------
Summary: Settings.xml property resolution fails when used in dependencies.dependency.systempath
Key: MNG-5421
URL: https://jira.codehaus.org/browse/MNG-5421
Project: Maven 2 & 3
Issue Type: Bug
Components: Dependencies
Affects Versions: 3.0.4, 3.0.3
Environment: Windows XP SP3
Reporter: jake pezaro
Attachments: prop-test.zip
A system dependency is declared in a component module. The systempath contains a property which is present in the settings.xml file. This property does not seem to be resolved when running mvn clean install. The below error appears when building the application module (app depends on component):
[WARNING] The POM for org.maven.test:component:jar:1.0.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
This causes the all transitive dependencies to not be resolved and compilation fails. Running mvn clean install -Dsystem.path=...../system works
Steps to reproduce
1. Unzip test case
2. Modify prop-test/settings.xml so that the system.path property points to the full path for the prop-test/system/ dir
3. Run "mvn clean install -s ./settings.xml" from prop-test/ (it should fail)
4. Run "mvn clean install -Dsystem.path=<path_to_prop-test/system>" from prop-test/ (it should succeed)
Expected behaviour: "mvn clean install -s ./settings.xml" should build successfully
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira