You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "jaikiran pai (JIRA)" <ji...@apache.org> on 2016/12/08 05:19:58 UTC
[jira] [Commented] (IVY-1488) Apache IVY to Maven : Bug Excluding
Artifacts?
[ https://issues.apache.org/jira/browse/IVY-1488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15731141#comment-15731141 ]
jaikiran pai commented on IVY-1488:
-----------------------------------
[~Iker], [~lindavr22]
{quote}
<dependency org="org.apache.xmlgraphics" name="fop" rev="1.0" transitive="true" conf="compile->master">
<exclude org="org.apache.xmlgraphics" name="batik-awt-util" />
</dependency>
{quote}
{{name}} isn't the right attribute to use in {{exclude}} in this context. You should be using the {{module}} attribute instead. More details about that attribute can be found here https://ant.apache.org/ivy/history/latest-milestone/ivyfile/artifact-exclude.html
So it should look like:
{code}
<exclude org="org.apache.xmlgraphics" module="batik-awt-util" />
{code}
> Apache IVY to Maven : Bug Excluding Artifacts?
> ----------------------------------------------
>
> Key: IVY-1488
> URL: https://issues.apache.org/jira/browse/IVY-1488
> Project: Ivy
> Issue Type: Bug
> Components: Maven Compatibility
> Affects Versions: 2.3.0
> Reporter: Iker
> Labels: ivy, ivy-module, maven, pom.xml
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> I think there is a bug translating from ivy to maven "makepom" when the excursion set of artifacts:
> For example, this IVY xml :
> <dependency org="org.apache.xmlgraphics" name="fop" rev="1.0" transitive="true" conf="compile->master">
> <exclude org="org.apache.xmlgraphics" name="batik-awt-util" />
> </dependency>
> Is translated this way to POM
> <dependency>
> <groupId>org.apache.xmlgraphics</groupId>
> <artifactId>fop</artifactId>
> <version>1.0</version>
> <scope>compile</scope>
> <exclusions>
> <exclusion>
> <groupId>org.apache.xmlgraphics</groupId>
> <artifactId>*</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
> As seen, rather than exclude the artifact "batik-awt-util" , all artifacts (*) are excluded !!!!!!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)