[shrinkwrap-issues] [JBoss JIRA] (SHRINKRES-42) Import of settings/POM Metadata does not account for System Properties

Andrew Rubinger (JIRA) jira-events at lists.jboss.org
Mon Dec 17 10:58:08 EST 2012


     [ https://issues.jboss.org/browse/SHRINKRES-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Rubinger resolved SHRINKRES-42.
--------------------------------------

    Resolution: Done


Secure access to sysprops: https://github.com/shrinkwrap/resolver/commit/c12993fcedab55d10fc4cf707233be6760fcb40b
                
> Import of settings/POM Metadata does not account for System Properties
> ----------------------------------------------------------------------
>
>                 Key: SHRINKRES-42
>                 URL: https://issues.jboss.org/browse/SHRINKRES-42
>             Project: ShrinkWrap Resolvers
>          Issue Type: Bug
>          Components: impl-maven
>    Affects Versions: 1.0.0-beta-6, 2.0.0-alpha-6
>            Reporter: Tomáš Schlosser
>            Assignee: Andrew Rubinger
>              Labels: starter
>             Fix For: 2.0.0-alpha-7
>
>         Attachments: stack
>
>
> When using MavenDependencyResolver and dependencies with system scope, i.e.
> {noformat}
> <dependency>
>   <groupId>com.sun</groupId>
>   <artifactId>tools</artifactId>
>   <version>1.6</version>
>   <scope>system</scope>
>   <systemPath>${java.home}/../lib/tools.jar</systemPath>
> </dependency>
> {noformat}
> I get an exception saying that shrinkwrap requires absolute path.
> From trace:  {code}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 @ {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the shrinkwrap-issues mailing list