[JBoss JIRA] (SHRINKRES-232) Resolve from pom.xml: old version is picked
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-232?page=com.atlassian.jira.plu... ]
Matous Jobanek closed SHRINKRES-232.
------------------------------------
Assignee: Matous Jobanek
Resolution: Done
Closing this issue as it is already fixed
Please, feel free to reopen if you don't agree.
> Resolve from pom.xml: old version is picked
> -------------------------------------------
>
> Key: SHRINKRES-232
> URL: https://issues.jboss.org/browse/SHRINKRES-232
> Project: ShrinkWrap Resolvers
> Issue Type: Bug
> Affects Versions: 2.1.1
> Environment: Windows 7 64bit, IntelliJ 14.1.4, Java 8
> Reporter: Carsten Otto
> Assignee: Matous Jobanek
> Fix For: 2.2.1
>
>
> With a pom.xml including the following dependencies the resulting archive contains spring-aop-4.1.7.RELEASE.jar, although I expect version 4.2.1 to be included. The latter is what maven does on the command line. I have the same issue with spring-beans, spring-context, spring-core, and spring-expression.
> File[] libs = Maven.resolver().loadPomFromFile("pom.xml").importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();
> webArchive.addAsLibraries(libs);
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-web</artifactId>
> <version>4.2.1.RELEASE</version>
> </dependency>
> <dependency>
> <groupId>org.springframework.data</groupId>
> <artifactId>spring-data-jpa</artifactId>
> <version>1.9.0.RELEASE</version>
> </dependency>
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 2 months
[JBoss JIRA] (SHRINKRES-232) Resolve from pom.xml: old version is picked
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-232?page=com.atlassian.jira.plu... ]
Matous Jobanek updated SHRINKRES-232:
-------------------------------------
Fix Version/s: 2.2.1
> Resolve from pom.xml: old version is picked
> -------------------------------------------
>
> Key: SHRINKRES-232
> URL: https://issues.jboss.org/browse/SHRINKRES-232
> Project: ShrinkWrap Resolvers
> Issue Type: Bug
> Affects Versions: 2.1.1
> Environment: Windows 7 64bit, IntelliJ 14.1.4, Java 8
> Reporter: Carsten Otto
> Fix For: 2.2.1
>
>
> With a pom.xml including the following dependencies the resulting archive contains spring-aop-4.1.7.RELEASE.jar, although I expect version 4.2.1 to be included. The latter is what maven does on the command line. I have the same issue with spring-beans, spring-context, spring-core, and spring-expression.
> File[] libs = Maven.resolver().loadPomFromFile("pom.xml").importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();
> webArchive.addAsLibraries(libs);
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-web</artifactId>
> <version>4.2.1.RELEASE</version>
> </dependency>
> <dependency>
> <groupId>org.springframework.data</groupId>
> <artifactId>spring-data-jpa</artifactId>
> <version>1.9.0.RELEASE</version>
> </dependency>
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 2 months
[JBoss JIRA] (SHRINKRES-232) Resolve from pom.xml: old version is picked
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-232?page=com.atlassian.jira.plu... ]
Matous Jobanek commented on SHRINKRES-232:
------------------------------------------
Hi,
this issue seems to be same as: https://issues.jboss.org/browse/SHRINKRES-234
It should be fixed in ShrinkWrap Resolver 2.2.1
Added test case for verification: https://github.com/shrinkwrap/resolver/commit/a5172ba71f284f7ac87a17ac0ad... and it is passing.
> Resolve from pom.xml: old version is picked
> -------------------------------------------
>
> Key: SHRINKRES-232
> URL: https://issues.jboss.org/browse/SHRINKRES-232
> Project: ShrinkWrap Resolvers
> Issue Type: Bug
> Affects Versions: 2.1.1
> Environment: Windows 7 64bit, IntelliJ 14.1.4, Java 8
> Reporter: Carsten Otto
>
> With a pom.xml including the following dependencies the resulting archive contains spring-aop-4.1.7.RELEASE.jar, although I expect version 4.2.1 to be included. The latter is what maven does on the command line. I have the same issue with spring-beans, spring-context, spring-core, and spring-expression.
> File[] libs = Maven.resolver().loadPomFromFile("pom.xml").importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();
> webArchive.addAsLibraries(libs);
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-web</artifactId>
> <version>4.2.1.RELEASE</version>
> </dependency>
> <dependency>
> <groupId>org.springframework.data</groupId>
> <artifactId>spring-data-jpa</artifactId>
> <version>1.9.0.RELEASE</version>
> </dependency>
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 2 months
[JBoss JIRA] (SHRINKRES-236) Force to use JAXP implementation of XPathFactory
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-236?page=com.atlassian.jira.plu... ]
Matous Jobanek resolved SHRINKRES-236.
--------------------------------------
Resolution: Done
> Force to use JAXP implementation of XPathFactory
> ------------------------------------------------
>
> Key: SHRINKRES-236
> URL: https://issues.jboss.org/browse/SHRINKRES-236
> Project: ShrinkWrap Resolvers
> Issue Type: Bug
> Components: maven
> Affects Versions: 2.2.1
> Reporter: Matous Jobanek
> Assignee: Matous Jobanek
> Fix For: 2.2.2
>
>
> It can happen that when Saxon-HE is on the classpath then the implementation of XPathFactory is taken from this library. This can lead to:
> {noformat}
> java.lang.IllegalArgumentException: Bad artifact coordinates ::jar:, expected format is <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 2 months
[JBoss JIRA] (SHRINKRES-236) Force to use JAXP implementation of XPathFactory
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-236?page=com.atlassian.jira.plu... ]
Matous Jobanek updated SHRINKRES-236:
-------------------------------------
Fix Version/s: 2.2.2
Affects Version/s: 2.2.1
> Force to use JAXP implementation of XPathFactory
> ------------------------------------------------
>
> Key: SHRINKRES-236
> URL: https://issues.jboss.org/browse/SHRINKRES-236
> Project: ShrinkWrap Resolvers
> Issue Type: Bug
> Components: maven
> Affects Versions: 2.2.1
> Reporter: Matous Jobanek
> Assignee: Matous Jobanek
> Fix For: 2.2.2
>
>
> It can happen that when Saxon-HE is on the classpath then the implementation of XPathFactory is taken from this library. This can lead to:
> {noformat}
> java.lang.IllegalArgumentException: Bad artifact coordinates ::jar:, expected format is <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 2 months