[JBoss JIRA] (SHRINKRES-232) Resolve from pom.xml: old version is picked
by Carsten Otto (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-232?page=com.atlassian.jira.plu... ]
Carsten Otto updated SHRINKRES-232:
-----------------------------------
Description:
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>
was:
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>}}
> Resolve from pom.xml: old version is picked
> -------------------------------------------
>
> Key: SHRINKRES-232
> URL: https://issues.jboss.org/browse/SHRINKRES-232
> Project: ShrinkWrap Resolvers
> Issue Type: Feature Request
> 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, 7 months
[JBoss JIRA] (SHRINKRES-232) Resolve from pom.xml: old version is picked
by Carsten Otto (JIRA)
Carsten Otto created SHRINKRES-232:
--------------------------------------
Summary: Resolve from pom.xml: old version is picked
Key: SHRINKRES-232
URL: https://issues.jboss.org/browse/SHRINKRES-232
Project: ShrinkWrap Resolvers
Issue Type: Feature Request
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, 7 months