Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.0-alpha-7
-
Fix Version/s: 3.0-beta-1
-
Component/s: Dependencies
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
We refer one artifact delivered with the JDK using a system scope:
<dependency> <groupId>com.sun</groupId> <artifactId>plugin</artifactId> <version>1.5.0</version> <scope>system</scope> <systemPath>${java.home}/lib/plugin.jar</systemPath> </dependency>
This results with Maven 3.0-alpha7 (and 6) to the following error:
$ mi -Dpoms
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR] The project projects:myproject-master:SNAPSHOT (/home/jos/work/projects/myproject/master/pom.xml) has 1 error
[ERROR] For managed dependency com.sun:plugin:jar: system-scoped dependency must specify an absolute systemPath but is ${java.home}/lib/plugin.jar @ projects:general:4.1.2
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
I did not report it for alpha6, because it is already fixed with MNG-4379, but apparently it is not. The dependency declaration works fine with 2.2.1, 2.1.0 and 2.0.10.
Activity
Benjamin Bentmann
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | MNG-4590.zip [ 47933 ] |
Benjamin Bentmann
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Cannot Reproduce [ 5 ] | |
| Assignee | Benjamin Bentmann [ bentmann ] |
Jörg Schaible
made changes -
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Resolution | Cannot Reproduce [ 5 ] |
Jörg Schaible
made changes -
| Attachment | MNG-4590.tar.gz [ 47934 ] |
Benjamin Bentmann
made changes -
| Summary | [regression] System properties are no longer interpolated in system scope dependencies | [regression] System properties are no longer interpolated in imported POMs |
Benjamin Bentmann
made changes -
| Status | Reopened [ 4 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | 3.0-alpha-8 [ 16088 ] |
Benjamin Bentmann
made changes -
| Fix Version/s | 3.0-alpha-8 [ 16088 ] | |
| Fix Version/s | 3.0-beta-1 [ 16089 ] |