ivy解析多模块apache maven POM.xml
如果我在这个架构中有用 maven pom.xml 编写的多模块项目
pom.xml -main
---module1/pom.xml
---module2/pom.xml
,并且主 pom.xml 看起来像这样
<modelVersion>4.0.0</modelVersion>
<groupId>My group id</groupId>
<artifactId>my artifact</artifactId>
<packaging>pom</packaging>
<version>1.2</version>
<modules>
<module>module1</module>
<module>module2</module>
</modules>
,并且每个模块都有自己的依赖项。
我如何解决并通过 IVY 检索所有这些依赖项以使用 Ivy+Ant 构建我的项目。 问题仅出现在多模块项目中,因为当项目仅生成 1 个 jar/war 时,没有问题可以解决和检索 ivy+ant 的依赖关系,
但是在运行时创建了 ejb.jar ejb.client.jar 和 2 -4个其他模块,ivy无法解析
If i have multi module project written in maven pom.xml in this architechture
pom.xml -main
---module1/pom.xml
---module2/pom.xml
and main pom.xml looks like this
<modelVersion>4.0.0</modelVersion>
<groupId>My group id</groupId>
<artifactId>my artifact</artifactId>
<packaging>pom</packaging>
<version>1.2</version>
<modules>
<module>module1</module>
<module>module2</module>
</modules>
and each module have it own dependencies.
How can i resolve, and retrieve all these dependencies via IVY to build my project using Ivy+Ant.
Problem is only in multi module project, because when there is only 1 jar/war produced by project there are no probelm to resolve and retrieve dependencies with ivy+ant
But when during runtime there are created ejb.jar ejb.client.jar and 2-4 other modules , ivy just can't dont resolve
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太确定你在做什么(据我所知检索没有 file="" 属性)。你的例子很难理解。
我建议阅读 ivy 和多个项目的文档:
http: //ant.apache.org/ivy/history/latest-milestone/tutorial/multiproject.html
http://ant.apache.org/ivy/history/latest-milestone/tutorial/conf.html
I am not quite sure of what you are doing (as far as I know retrieve does not have a file="" attribute). Your example is hard to understand.
I'd suggest reading the documentation for ivy and multiple projects:
http://ant.apache.org/ivy/history/latest-milestone/tutorial/multiproject.html
http://ant.apache.org/ivy/history/latest-milestone/tutorial/conf.html