You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-commits@incubator.apache.org by "Xavier Hanin (JIRA)" <ji...@apache.org> on 2007/03/07 21:11:24 UTC
[jira] Resolved: (IVY-418) Ivy doesn't recognize maven2 classifiers
[ https://issues.apache.org/jira/browse/IVY-418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xavier Hanin resolved IVY-418.
------------------------------
Resolution: Fixed
Fix Version/s: 1.5
I've added two junit tests for that (one only for parsing, and one with a real resolve) and fixed the problem. I had to introduce a new feature in Ivy to handle that properly (see IVY-419). The way to implement it is that when a dependency with a classifier is found, a dependency artifact is declared with assumePublished=true and an extra attribute, classifier, set to the classifier value. The pattern to use to benefit from this classifier is:
{code}
[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]
{code}
Note the presence of the classifier in a conditional part of the pattern (used only if classifier is defined).
The IBiblio resolver pattern with m2 compatible=true has also been updated.
> Ivy doesn't recognize maven2 classifiers
> ----------------------------------------
>
> Key: IVY-418
> URL: https://issues.apache.org/jira/browse/IVY-418
> Project: Ivy
> Issue Type: Improvement
> Reporter: Xavier Hanin
> Assigned To: Xavier Hanin
> Fix For: 1.5
>
>
> Maven2 allows to define a classifier when declaring a dependency. For instance:
> {code:xml}
> <dependency>
> <groupId>org.safehaus.jug</groupId>
> <artifactId>jug</artifactId>
> <version>2.0.0</version>
> <classifier>asl</classifier>
> </dependency>
> {code}
> In this case the artifact which should be downloaded is:
> http://repo1.maven.org/maven2/org/safehaus/jug/jug/2.0.0/jug-2.0.0-asl.jar
> As one can see, the classifier is appended after the revision. For the moment doesn't support this notion and fails, trying to download http://repo1.maven.org/maven2/org/safehaus/jug/jug/2.0.0/jug-2.0.0.jar
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.