[
http://jira.codehaus.org/browse/MNG-4181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=178784#action_178784
]
Karsten Ohme commented on MNG-4181:
-----------------------------------
I get with mvn help:effective-pom:
<dependency>
<groupId>j2me</groupId>
<artifactId>mmapi</artifactId>
<version>10</version>
<scope>system</scope>
<systemPath>C:\WTK2.5.1/lib/mmapi.jar</systemPath>
</dependency>
<dependency>
<groupId>com.sun.wtk</groupId>
<artifactId>wma20</artifactId>
<version>2.2</version>
<scope>system</scope>
<systemPath>C:\WTK2.5.1/lib/wma20.jar</systemPath>
</dependency>
<dependency>
<groupId>j2me</groupId>
<artifactId>midp</artifactId>
<version>20</version>
<scope>system</scope>
<systemPath>C:\WTK2.5.1/lib/midpapi20.jar</systemPath>
</dependency>
<dependency>
<groupId>j2me</groupId>
<artifactId>cldc</artifactId>
<version>11</version>
<scope>system</scope>
<systemPath>C:\WTK2.5.1/lib/cldcapi11.jar</systemPath>
</dependency>
<dependency>
<groupId>javax.microedition.location</groupId>
<artifactId>jsr179</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>C:\WTK2.5.1/lib/jsr179.jar</systemPath>
</dependency>
The path separators are different. Maybe this is the problem.
> system path dependencies are not resolved
> -----------------------------------------
>
> Key: MNG-4181
> URL: http://jira.codehaus.org/browse/MNG-4181
> Project: Maven 2
> Issue Type: Bug
> Components: POM
> Affects Versions: 2.1.0
> Environment: Windows Vista
> Reporter: Karsten Ohme
> Priority: Critical
>
> If a system path dependency is used, the depencies are not included.
> I cannot build my project anymore and I'm stuck.
> This is the error I get:
> [WARNING] POM for 'net.sf:microlog-instrument:pom:1.1.1:compile' is invalid.
> Its dependencies (if any) will NOT be available to the current build.
> [DEBUG] Reason: Failed to validate POM for project net.sf:microlog-instrument
> at
> Artifact [net.sf:microlog-instrument:pom:1.1.1:compile]
> [DEBUG]
> Validation Errors:
> [DEBUG] For managed dependency Dependency {groupId=com.sun.wtk,
> artifactId=jsr21
> 1, version=2.2, type=jar}: system-scoped dependency must specify an absolute
> pat
> h systemPath.
> [DEBUG] For managed dependency Dependency {groupId=com.sun.wtk,
> artifactId=jsr08
> 2, version=2.2, type=jar}: system-scoped dependency must specify an absolute
> pat
> h systemPath.
> [DEBUG] For managed dependency Dependency {groupId=com.sun.wtk,
> artifactId=jsr75
> , version=2.2, type=jar}: system-scoped dependency must specify an absolute
> path
> systemPath.
> [DEBUG] For managed dependency Dependency {groupId=com.sun.wtk,
> artifactId=wma20
> , version=2.2, type=jar}: system-scoped dependency must specify an absolute
> path
> systemPath.
--
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