You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/01/12 21:12:46 UTC

[jira] [Closed] (MNG-5421) Settings.xml property resolution fails when used in dependencies.dependency.systempath

     [ https://issues.apache.org/jira/browse/MNG-5421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MNG-5421.
-------------------------------
    Resolution: Auto Closed

This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still persists, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.

> Settings.xml property resolution fails when used in dependencies.dependency.systempath
> --------------------------------------------------------------------------------------
>
>                 Key: MNG-5421
>                 URL: https://issues.apache.org/jira/browse/MNG-5421
>             Project: Maven
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 3.0.3, 3.0.4
>         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 was sent by Atlassian JIRA
(v6.3.4#6332)