[JBoss JIRA] (SHRINKRES-149) Maven classpathworkspace resolver shouldn't assume classes are under target/classes
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/SHRINKRES-149?page=com.atlassian.jira.plu... ]
Matous Jobanek updated SHRINKRES-149:
-------------------------------------
Fix Version/s: (was: 3.1.0)
> Maven classpathworkspace resolver shouldn't assume classes are under target/classes
> -----------------------------------------------------------------------------------
>
> Key: SHRINKRES-149
> URL: https://issues.jboss.org/browse/SHRINKRES-149
> Project: ShrinkWrap Resolvers
> Issue Type: Feature Request
> Affects Versions: 2.0.0
> Reporter: Matthieu Baechler
>
> To avoid conflicting builds between Maven and Eclipse, I put eclipse build into a "eclipse-build/classes" directory.
> Considering this configuration, with the following code :
> {code:java}
> Maven.resolver()
> .offline()
> .loadPomFromFile("../../pom.xml")
> .resolve("com.linagora.obm:services-module:2.6.0-SNAPSHOT")
> .withClassPathResolution(true)
> .withTransitivity()
> .asFile();
> {code}
> Maven resolver find my services-module on the classpath, but when trying a build a jar, it fails in MavenResolvedArtifactImpl.artifactToFile :
> {code:java}
> // SHRINKRES-102, allow test classes to be packaged as well
> File root = new File(artifact.getFile().getParentFile(), "target/classes");
> {code}
> In my case, target/classes contains maven build result and not what's on the classpath.
> Can this resolver use the classes on the classpath instead ?
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months
[JBoss JIRA] (SHRINKRES-285) Upgrade to Maven 3.5.2
by Matous Jobanek (JIRA)
Matous Jobanek created SHRINKRES-285:
----------------------------------------
Summary: Upgrade to Maven 3.5.2
Key: SHRINKRES-285
URL: https://issues.jboss.org/browse/SHRINKRES-285
Project: ShrinkWrap Resolvers
Issue Type: Component Upgrade
Components: maven
Affects Versions: 3.0.1
Reporter: Matous Jobanek
Assignee: Matous Jobanek
Fix For: 3.1.0
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months