[shrinkwrap-issues] [JBoss JIRA] (SHRINKRES-76) Version of the dependency is not found when <exclusion>s are defined

Andrew Rubinger (JIRA) jira-events at lists.jboss.org
Sat Nov 3 03:59:18 EDT 2012


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

Andrew Rubinger updated SHRINKRES-76:
-------------------------------------

           Status: Resolved  (was: Pull Request Sent)
    Fix Version/s: 2.0.0-alpha-5
       Resolution: Done


Upstream: https://github.com/shrinkwrap/resolver/commit/8b061a8d04418c5bcd3ffc1bc460ddb9496224d3
                
> Version of the dependency is not found when <exclusion>s are defined
> --------------------------------------------------------------------
>
>                 Key: SHRINKRES-76
>                 URL: https://issues.jboss.org/browse/SHRINKRES-76
>             Project: ShrinkWrap Resolvers
>          Issue Type: Bug
>          Components: impl-maven
>    Affects Versions: 2.0.0-alpha-4
>            Reporter: Karel Piwko
>            Assignee: Andrew Rubinger
>             Fix For: 2.0.0-alpha-5
>
>
> equals(Object) method for Maven dependency is considering exclusions as well.
> This effectively means that if you specify following in your pom.xml file:
> {code:xml}
> <dependency>
>                 <groupId>com.google.appengine.orm</groupId>
>                 <artifactId>datanucleus-appengine</artifactId>
>                 <version>${version.org.datanucleus.gae}</version>
>                 <exclusions>
>                     <exclusion>
>                         <!-- Force this just in case -->
>                         <groupId>org.jboss.maven.plugins</groupId>
>                         <artifactId>arquillian-transformer</artifactId>
>                     </exclusion>
>                 </exclusions>
>             </dependency>
> {code}
> then following code:
> {code}
> Maven.resolver().loadPomFromFile("/path/to/file").resolve("com.google.appengine.orm:datanucleus-appengine")
> {code}
> is not able to find the version managed in pom.xml, failing with:
> Caused by: org.jboss.shrinkwrap.resolver.api.ResolutionException: Unable to get version for dependency specified by com.google.appengine.orm:datanucleus-appengine, it was not provided in <dependencyManagement> section.
> at org.jboss.shrinkwrap.resolver.impl.maven.PomEquippedResolveStageBaseImpl.resolveVersion(PomEquippedResolveStageBaseImpl.java:194)

--
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