Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-12775

The Maven dependency processor not able to expand paths

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 4.4, 5.6.0
    • Maven

    Description

      The maven dependency processor fails with the error below if we use variable paths:

      Automatic Maven plan dependencies processing failed: org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
      	[ERROR] 'dependencies.dependency.systemPath' for java:plugin.jar:jar must specify an absolute path but is ${java.home}\lib\plugin.jar @ line 23, column 16
      	
      05-Feb-2013 18:39:30 	Finished task 'Maven Dependencies Processor'
      

      Basically I replicate the issue by adding the below dependency to my pom.xml and configuring the processor task:

      <dependency>
      <groupId>java</groupId>
      <artifactId>plugin.jar</artifactId>
      <systemPath>${java.home}/lib/plugin.jar</systemPath>
      <version>$
      {java.version}
      </version>
      <scope>system</scope>
      </dependency>
      

      Substituting java.home with the absolute path fixes the issue. Again running the command mvn help:effective-pom from DOS does indeed substituted correctly.

      Attachments

        1. effectivepom.xml
          11 kB
        2. pom.xml
          2 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              smaiyaki Sultan Maiyaki (Inactive)
              Votes:
              10 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated: