-
Bug
-
Resolution: Done
-
Major
-
1.0.0-beta-6, 2.0.0-alpha-6
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 @
- is duplicated by
-
SHRINKRES-105 Support resolution of variables in Maven settings file
- Closed