Uploaded image for project: 'ShrinkWrap Resolvers'
  1. ShrinkWrap Resolvers
  2. SHRINKRES-42

Import of settings/POM Metadata does not account for System Properties

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0-alpha-7
    • 1.0.0-beta-6, 2.0.0-alpha-6
    • maven

      When using MavenDependencyResolver and dependencies with system scope, i.e.

      <dependency>
        <groupId>com.sun</groupId>
        <artifactId>tools</artifactId>
        <version>1.6</version>
        <scope>system</scope>
        <systemPath>${java.home}/../lib/tools.jar</systemPath>
      </dependency>
      

      I get an exception saying that shrinkwrap requires absolute path.

      From trace:

      Caused by: org.jboss.shrinkwrap.resolver.api.ResolutionException: Found 1 problems while building POM model from /home/tschloss/git/brms/pom.xml1/ [ERROR] 'dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${java.home}/../lib/tools.jar @ org.jboss.qa:brms:5.3.0.BRMS-ER6, /home/tschloss/git/brms/pom.xml
      
      	at org.jboss.shrinkwrap.resolver.impl.maven.MavenRepositorySystem.loadPom(MavenRepositorySystem.java:154)
      	at org.jboss.shrinkwrap.resolver.impl.maven.MavenRepositorySystem.loadPom(MavenRepositorySystem.java:126)
      	at org.jboss.shrinkwrap.resolver.impl.maven.MavenBuilderImpl.loadMetadataFromPom(MavenBuilderImpl.java:153)
      	at org.jboss.qa.brms.container.tools.ContainerTestWrapper.getDroolsDependencies(ContainerTestWrapper.java:73)
      	at org.jboss.qa.brms.container.tools.ContainerTestWrapper.createTestsEar(ContainerTestWrapper.java:35)
      	at org.jboss.qa.brms.container.tools.ManualContainerTestWrapper.deployManual(ManualContainerTestWrapper.java:27)
      	... 79 more
      Caused by: org.apache.maven.model.building.ModelBuildingException: 1 problem was encountered while building the effective model for org.jboss.qa:brms:5.3.0.BRMS-ER6
      [ERROR] 'dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${java.home}/../lib/tools.jar @ 

        1. stack
          5 kB
          Tomas Schlosser

              arubinge@redhat.com Andrew Rubinger (Inactive)
              tschloss@redhat.com Tomas Schlosser
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: