[JBoss JIRA] (SHRINKRES-102) Maven resolver unable to resolve test-jar dependency
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-102?page=com.atlassian.jira.plu... ]
Karel Piwko updated SHRINKRES-102:
----------------------------------
Fix Version/s: 2.0.0-alpha-7
> Maven resolver unable to resolve test-jar dependency
> ----------------------------------------------------
>
> Key: SHRINKRES-102
> URL: https://issues.jboss.org/browse/SHRINKRES-102
> Project: ShrinkWrap Resolvers
> Issue Type: Bug
> Affects Versions: 2.0.0-alpha-6
> Environment: Win7, Maven 3.0.4, Java7
> Reporter: jay shaughnessy
> Assignee: Karel Piwko
> Fix For: 2.0.0-alpha-7
>
>
> A possible regression as similar code, using the old API, worked for me with Shrinkwrap-1.
> Example: given the following dependency in the local pom.xml:
> <dependencies>
> ...
> <dependency>
> <groupId>${project.groupId}</groupId>
> <artifactId>rhq-core-client-api</artifactId>
> <version>${project.version}</version>
> <type>test-jar</type>
> <scope>test</scope>
> </dependency>
> ...
> </dependencies>
> And the following SW-2 code:
> MavenResolverSystem resolver = Maven.resolver();
> resolver.loadPomFromFile("pom.xml").resolve("org.rhq:rhq-core-client-api:jar:tests:4.6.0-SNAPSHOT).withTransitivity().as(JavaArchive.class)
> I don't get an exception but the retuened Archive is the production jar:
> rhq-core-client-api-4.6.0-SNAPSHOT.jar
> As opposed to the expected test jar:
> rhq-core-client-api-4.6.0-SNAPSHOT-tests.jar
> The test jar is generated by us in that module's pom, using the maven-jar plugin with phase=package and goal=test-jar, which I believe is the standard mechanism. And both of the jars are available in my M2 repo in the same place (.m2/repository/org/rhq/rhq-core-client-api/4.6.0-SNAPSHOT).
> At the moment I have not been able to find a workaround.
--
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
13 years, 2 months
[JBoss JIRA] (SHRINKRES-105) Support resolution of variables in Maven settings file
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-105?page=com.atlassian.jira.plu... ]
Karel Piwko closed SHRINKRES-105.
---------------------------------
Assignee: Karel Piwko
Resolution: Duplicate Issue
Reopened to change affected version.
> Support resolution of variables in Maven settings file
> ------------------------------------------------------
>
> Key: SHRINKRES-105
> URL: https://issues.jboss.org/browse/SHRINKRES-105
> Project: ShrinkWrap Resolvers
> Issue Type: Enhancement
> Components: impl-maven
> Affects Versions: 1.0.0-beta-7
> Reporter: Thomas SEGISMONT
> Assignee: Karel Piwko
> Labels: maven, resolver
>
> Variables in Maven settings file are not resolved.
> For instance if you have this node in your settings :
> {code:xml}
> <localRepository>${user.home}/.m2/repository</localRepository>
> {code}
> then Shrinkwrap will create a _$\{user.home\}/.m2/repository_ in the project directory and use it as local repository.
--
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
13 years, 2 months