开发者

Apache Ivy multiproject dependency declaration

I have 2 projects, but Apache Ivy is not able to detect dependency from one to other (I am doing something wrong, but I am not able to see what it is)

2 projects are in separate top level dirs as below

chainedresolvers-project

dep-project

project1 ivy

<ivy-module version="1.0">
    <info organisation="myreports" module="chained-resolvers" status="integration"/>
     <publications>
      <artifact name="myapp" type="jar" conf="default" />
    </publications>
    <dependencies>
        <dependency org="commons-lang" name="commons-lang" rev="2.0" conf="default"/>
        <dependency name="test" rev="1.0"/>
        <dependency name="rwrun" rev="latest"/>
    </dependencies> </ivy-module>

project2 ivy (dep on project1)

<ivy-module version="1.0">
    <info organisation="myreports" module="dep-project" status="integration"/>
    <dependencies>
        <dependency name="chained-resolvers" rev="latest.integration" conf="default"/>
    </dependencies>
</ivy-module>

when i run ant on the 2nd project

 ::::::::::::::::::::开发者_运维知识库::::::::::::::::::::::::::
 ::          UNRESOLVED DEPENDENCIES         ::
 ::::::::::::::::::::::::::::::::::::::::::::::
 :: myreports#chained-resolvers;latest.integration: not found 
 ::::::::::::::::::::::::::::::::::::::::::::::

pls comment what i could be doing wrong that it is not able to pickup the dependency ?


Due to

<publications>
      <artifact name="myapp" type="jar" conf="default" />
    </publications>

the name of your artifact is myapp therefore the dependency has to be:

<ivy-module version="1.0">
    <info organisation="myreports" module="dep-project" status="integration"/>
    <dependencies>
        <dependency organisation="myreports" name="myapp" rev="latest.integration" conf="default"/>
    </dependencies>
</ivy-module>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜