You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Albert Parra (JIRA)" <ji...@apache.org> on 2016/01/19 23:28:39 UTC

[jira] [Comment Edited] (IVY-1528) Makepom ignores dependency classifiers

    [ https://issues.apache.org/jira/browse/IVY-1528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15107436#comment-15107436 ] 

Albert Parra edited comment on IVY-1528 at 1/19/16 10:28 PM:
-------------------------------------------------------------

Hi, i have the same issue, i'm trying to publish a dependency with the classifier but if i do this:
{code:xml}<dependency org="org" name="mod" rev="1.0.0.+" e:classifier="lib" conf="compile-&gt;lib; runtime-&gt;lib" />{code}
I got:
{code:xml}<dependency>
      <groupId>org</groupId>
      <artifactId>mod</artifactId>
      <version>1.0.0.1</version>
      <scope>runtime</scope>
    </dependency>{code}

BUT, after check the source, if i add an artifact, like this
{code:xml}<dependency org="org" name="mod" rev="1.0.0.+" conf="compile->lib; runtime->lib">
	<artifact name="mod" type="lib" ext="jar" e:classifier="lib" />
</dependency>{code}

I got:
{code:xml}<dependency>
      <groupId>org</groupId>
      <artifactId>mod</artifactId>
      <version>1.0.0.1</version>
      <type>lib</type>
      <classifier>lib</classifier>
      <scope>runtime</scope>
    </dependency>{code}

I think that the first snippet should work.



was (Author: alparras):
Hi, i have the same issue, i'm trying to publish a dependency with the classifier but if i do this:
{code:xml}<dependency org="org" name="mod" rev="1.0.0.+" conf="compile-&gt;lib; runtime-&gt;lib" />{code}
I got:
{code:xml}<dependency>
      <groupId>org</groupId>
      <artifactId>mod</artifactId>
      <version>1.0.0.1</version>
      <scope>runtime</scope>
    </dependency>{code}

BUT, after check the source, if i add an artifact, like this
{code:xml}<dependency org="org" name="mod" rev="1.0.0.+" conf="compile->lib; runtime->lib">
	<artifact name="mod" type="lib" ext="jar" e:classifier="lib" />
</dependency>{code}

I got:
{code:xml}<dependency>
      <groupId>org</groupId>
      <artifactId>mod</artifactId>
      <version>1.0.0.1</version>
      <type>lib</type>
      <classifier>lib</classifier>
      <scope>runtime</scope>
    </dependency>{code}




> Makepom ignores dependency classifiers
> --------------------------------------
>
>                 Key: IVY-1528
>                 URL: https://issues.apache.org/jira/browse/IVY-1528
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.4.0
>            Reporter: Matthias Hannen
>            Priority: Critical
>
> The classifier of a dependency like
> {code:xml}
> <dependency org="foo" name="bar" rev="1.0.0" conf="optional->default" m:classifier="wsdl" />
> {code}
> is ignored by the makepom task. I also checked the code of IvyMakePom.java. The method to set the classifier of a dependency is never called anywhere.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)