You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by efe4it <ex...@sncf.fr> on 2012/05/22 18:09:38 UTC
Resolving source artefact altered by m:classifier
Hi
I recently tried to configure source artifact resolving in IvyDE and
noticed a side effect of m:classifier attribute of source-typed
artifact.
I use Ant-1.8.3, Ivy-2.2.0, IvyDE-2.2.0.beta1-201203282058-RELEASE
My project rely on an "entreprise repository", as suggested in IVY
tutorial, that I assemble from various public repo.
You may download the example (ivy and settings file included) by running:
svn co -r 272 --ignore-externals
https://efe4it-suite.googlecode.com/svn/trunk/BuildTools/IVY/fr.efe4it.ant.ivy.repoinstaller
When ivy:install-ing the module org.apache.ant#ant#1.8.3 (default target
of buildfile), the module is fetched from "repo1.maven.org" (see
attached ant.log file)
The following files are downloaded:
http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.3/ant-1.8.3.pom
http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.3/ant-1.8.3.jar ...
http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.3/ant-1.8.3-sources.jar
http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.3/ant-1.8.3-javadoc.jar
The following files are created in target repository
[ivy:install] published ant to
D:\[...]\ivysettings/_repository/20120516-180541/org.apache.ant/ant/1.8.3/jars/ant.jar
[ivy:install] published ant to
D:\[...]\ivysettings/_repository/20120516-180541/org.apache.ant/ant/1.8.3/javadocs/ant.jar
[ivy:install] published ant to
D:\[...]\ivysettings/_repository/20120516-180541/org.apache.ant/ant/1.8.3/sources/ant.jar
[ivy:install] published ivy to
D:\[...]\ivysettings/_repository/20120516-180541/org.apache.ant/ant/1.8.3/ivys/ivy.xml
Noticed all jars have been renamed to "ant.jar" but the ivy file contains
artifacts declaration including "m:classifier"
<artifact name="ant" type="jar" ext="jar" conf="master"/>
<artifact name="ant" type="source" ext="jar" conf="sources"
m:classifier="sources"/>
<artifact name="ant" type="javadoc" ext="jar" conf="javadoc"
m:classifier="javadoc"/>
I upgraded IvyDE to the last available distibution, but the problem also
occurs when using IVY from ANT.
The artefact definition using m:classifier="sources" make IVY look for the
file named ant-sources.jar while attempting
to resolve source-typed artefact.
I am wondering what I should modify in the installation step to either:
- get rid of m:classifier
- prevent ivy to rename the jars
What do you think?
Regards
--
View this message in context: http://old.nabble.com/Resolving-source-artefact-altered-by-m%3Aclassifier-tp33890292p33890292.html
Sent from the ivy-user mailing list archive at Nabble.com.