Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4590

[regression] System properties are no longer interpolated in imported POMs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-alpha-7
    • 3.0-beta-1
    • Dependencies
    • None

    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.

      Attachments

        1. MNG-4590.zip
          3 kB
          Benjamin Bentmann
        2. MNG-4590.tar.gz
          0.9 kB
          Joerg Schaible

        Activity

          People

            bentmann Benjamin Bentmann
            joehni Joerg Schaible
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: