It seems to me that the following construct should not render a POM invalid
---------------------------------------------------------------------------
Key: MNG-4545
URL: http://jira.codehaus.org/browse/MNG-4545
Project: Maven 2 & 3
Issue Type: Bug
Affects Versions: 2.2.1
Reporter: Oleksandr Alesinskyy
It seems to me that the following construct should not render a POM invalid
{code:xml}
<dependency>
<groupId>sun.jdk</groupId>
<artifactId>jce</artifactId>
<version>1.6.0</version>
<scope>system</scope>
<systemPath>
${env.JAVA_HOME}/jre/lib/ext/sunjce_provider.jar
</systemPath>
</dependency>
{code}
mvn -e -X clean install _(for the project that depends on the project from
which POM quotation came)_.
{quote}
[WARNING] POM for
'com.navteq.ncs.common:ncs-common-utils-core:pom:2.2-SNAPSHOT:compile' is
invalid.
Its dependencies (if any) will NOT be available to the current build.
[DEBUG] Reason: Failed to validate POM for project
com.navteq.ncs.common:ncs-common-utils-core at Artifact
[com.navteq.ncs.common:ncs-common-utils-core:pom:2.2-SNAPSHOT:compile]
[DEBUG]
Validation Errors:
[DEBUG] For dependency Dependency \{groupId=sun.jdk, artifactId=jce,
version=1.6.0, type=jar\}: system-scoped dependency must specify an absolute
path systemPath.
{quote}
As result the build fails as transitive dependencies from
com.navteq.ncs.common:ncs-common-utils-core are not resolved.
--
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