You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Kenneth Preudhomme (JIRA)" <ji...@apache.org> on 2019/01/29 21:46:00 UTC

[jira] [Commented] (IVY-1505) Ivy can not correctly resolve hbase-client pom

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

Kenneth Preudhomme commented on IVY-1505:
-----------------------------------------

I'd like to report a similar issue.. We are defining an ivy dependency as follows:
{code:xml}
<dependency org="org" name="dependency-name" rev="1.0.0" />
{code}
 

Inside the pom file for that artifact is a transitive dependency:
{code:xml}
<dependencies>
    <dependency>
        <groupId>org</groupId>
        <artifactId>transitive-dependency-name</artifactId>
    </dependency>
    // other ...
</dependencies>{code}
 

The generated IVY file stored in my cache has the following reference:
{code:xml}
<dependency org="org" name="transitive-dependency-name" rev="1.0.0" force="true" conf="test->runtime(*),master(*)"/>
{code}
 

This appears to be wrong... When I remove the conf definition, the transitive dependency resolution works as intended.

 

> Ivy can not correctly resolve hbase-client pom
> ----------------------------------------------
>
>                 Key: IVY-1505
>                 URL: https://issues.apache.org/jira/browse/IVY-1505
>             Project: Ivy
>          Issue Type: Bug
>    Affects Versions: 2.3.0
>            Reporter: Talat UYARER
>            Priority: Major
>
> Hi,
> When I added hbase-client as a dependency like as:
> {panel}
> {code}
>  <dependency org="org.apache.hbase" name="hbase-client" rev="0.98.8-hadoop2" conf="*->default">
> {code}
> {panel}
> Ivy does not correctly map some dependencies of hbase-client. hbase-common and hbase-annotation should be in compile scope. In Ivy resolve xml they look like:
> {panel:title= ~/.ivy2/cache/org.apache.hbase/hbase-client/ivy-0.98.8-hadoop2.xml}
> {code}
> <dependency org="org.apache.hbase" name="hbase-annotations" rev="0.98.8-hadoop2" force="true" conf="test->runtime(*),master(*)"/>
> <dependency org="org.apache.hbase" name="hbase-annotations" rev="0.98.8-hadoop2" force="true" conf="test->runtime(*),master(*)">
>         <artifact name="hbase-annotations" type="test-jar" ext="jar" conf="" m:classifier="tests"/>
> </dependency>
> <dependency org="org.apache.hbase" name="hbase-common" rev="0.98.8-hadoop2" force="true" conf="test->runtime(*),master(*)"/>
> <dependency org="org.apache.hbase" name="hbase-common" rev="0.98.8-hadoop2" force="true" conf="test->runtime(*),master(*)">
>         <artifact name="hbase-common" type="test-jar" ext="jar" conf="" m:classifier="tests"/>
> </dependency>
> {code}
> {panel}
> I think this a bug. Can you help me how can i fix it ?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)