[
https://issues.apache.org/jira/browse/IVY-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15633227#comment-15633227
]
Nik Everett commented on IVY-1531:
----------------------------------
This issue broke dependency resolution for Elasticsearch's 5.0.0 release with
Ivy, Gradle, Grape, and all but the very newest versions of SBT. Here is the
issue: https://github.com/elastic/elasticsearch/issues/21170 We're going to
work around it *but* these wildcard excludes are going to be generated by newer
versions of gradle when it makes poms for dependencies that are configured to
exclude transitive dependencies. So Ivy is soon going to be incompatible *some*
uses of gradle by default.
> Translation of POM to Ivy XML with * exclusion is removing main artifact
> ------------------------------------------------------------------------
>
> Key: IVY-1531
> URL: https://issues.apache.org/jira/browse/IVY-1531
> Project: Ivy
> Issue Type: Bug
> Components: Maven Compatibility
> Affects Versions: 2.4.0
> Reporter: Eric Milles
> Labels: maven
>
> Using the change from issue 1470 (makepom with transitive=false dependency)
> we get a POM file with * for group and artifact exclusion. This may also
> occur naturally in POMs, but the main case for us is a library with
> transitive=false on a dependency.
> Ex:
> <dependency>
> <groupId>org.owasp.esapi</groupId>
> <artifactId>esapi</artifactId>
> <version>2.1.0</version>
> <exclusions>
> <exclusion>
> <groupId>*</groupId>
> <artifactId>*</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
> When we are consuming this library as a dependency out of Nexus, Ivy
> translates the above into:
> <dependency org="org.owasp.esapi" name="esapi" rev="2.1.0" force="true"
> conf="compile->compile(*),master(*);runtime->runtime(*)">
> <exclude org="*" module="*" name="*" type="*" ext="*" conf=""
> matcher="exact"/>
> </dependency>
> This is having the effect of excluding all artifacts, including the master
> jar. We are expecting to get the master jar, its sources and javadocs if
> they exist but no transitive dependencies.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)