简体   繁体   English

常春藤为什么不解决我的依赖关系?

[英]Why doesn't ivy resolve my dependencies?

I have this dependency declared: 我有这个依赖声明:

<dependency org="org.jboss.jbossas" name="jboss-as-parent" rev="6.0.0.20100216-M2"/>

And it just fetches the pom. 它只是获取绒球。 Other dependencies are resolved just fine. 其他依赖性也可以很好地解决。

I'm using ivy 2.2.0 rc1 and ant 1.6. 我正在使用ivy 2.2.0 rc1和ant 1.6。

If you take a look at the pom : http://repository.jboss.org/maven2/org/jboss/jbossas/jboss-as-parent/6.0.0.20100216-M2/jboss-as-parent-6.0.0.20100216-M2.pom 如果您查看pom: http : //repository.jboss.org/maven2/org/jboss/jbossas/jboss-as-parent/6.0.0.20100216-M2/jboss-as-parent-6.0.0.20100216-M2 .pom

then you'll see the line 然后你会看到线

-packaging -pom- -/packaging- -包装-pom--/包装-

In maven this means it's a pom project (as opposed to jar or war) and so doesn't have any jar to go with it. 在Maven中,这意味着它是一个pom项目(与jar或war相对),因此没有任何jar。 These are usually used to group dependencies / perform functions other than supplying a resource. 这些通常用于对依赖项进行分组/执行除提供资源以外的功能。

Hopefully that makes sense. 希望这是有道理的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM