ant resolve时碰到如下错误a module is not authorized to depend on itself

a module is not authorized to depend on itself

这个错误产生的原因是 ivy.xml中依赖的一个项目就是自身。

例如,这个项目叫abc, ivy.xml中写


这样就会产生问题,把这个项目改为abc1, 依赖还是abc就可以了。

另外publish 时注意

<configurations>
        <conf name="dev" visibility="private" description="develop demo."/>
</configurations>

中的visibility属性。这样发布出去的话,其他项目是无法依赖 dev 这个model的。

  • 本文作者: 帐前卒
  • 本文链接: http://chillyc.info/2013/8595773/
  • 版权声明: 本博客所有文章除特别声明外,只能复制超链接地址,且必须注明出处!