Maven Ant task seems to ignore artifacts with versions that start with a letter
-------------------------------------------------------------------------------
Key: MANTTASKS-212
URL: http://jira.codehaus.org/browse/MANTTASKS-212
Project: Maven 2.x Ant Tasks
Issue Type: Bug
Components: dependencies task
Affects Versions: 2.1.1, 2.1.0
Environment: OSX
Reporter: Dave Whittaker
I added a dependency on
http://mvnrepository.com/artifact/org.xhtmlrenderer/core-renderer/R8pre2 to my
POM today and found that while the dependencies of core-renderer were getting
copied to my lib folder, the core-renderer artifact itself was not. After
playing around with it for a while and verifying that
It still happens with the latest version of the Maven Ant tasks (I was
originally using v2.1.0)
Maven itself listed core-renderer as a compile scoped dependency when running
mvn dependency:tree
It wasn't the flatten step in my build script that was somehow excluding it
I tried uploading the dependency to a local repository with version 0.8pre2
instead or R8pre2. When I changed my dependency to the local version the jar
showed up as expected. My ant task looks like:
<target name="lib">
<mkdir dir="${lib.target}" />
<artifact:pom id="pom" file="${basedir}/pom.xml" />
<artifact:dependencies pomRefId="pom" filesetId="dependencies"
useScope="runtime" />
<copy toDir="${lib.target}">
<fileset refid="dependencies" />
<mapper type="flatten" />
</copy>
</target>
And inside the POM the dependency was specified as:
<dependency>
<groupId>org.xhtmlrenderer</groupId>
<artifactId>core-renderer</artifactId>
<version>R8pre2</version>
</dependency>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira