简体   繁体   English

从Ant Ivy Project导入Jar到Maven

[英]Import jar from ant ivy project to maven

I am working on an ant project and i want to use the jar created by it , in my maven project. 我正在开发一个ant项目,并且想在我的maven项目中使用它创建的jar。 The ant project employs ivy to manage its dependency. ant项目使用常春藤来管理其依赖项。

Is there any easy way to do this if possible without changing any code on their side. 是否有任何简单的方法可以做到这一点,而无需更改其端的任何代码。

It sounds like you want to be able to publish artefacts generated by your ivy-based project to a maven repo so they can be resolved by the mvn-based project. 听起来您希望能够将基于常春藤的项目生成的伪像发布到Maven存储库中,以便可以通过基于mvn的项目解决。

Try http://draconianoverlord.com/2010/07/18/publishing-to-maven-repos-with-ivy.html 尝试http://draconianoverlord.com/2010/07/18/publishing-to-maven-repos-with-ivy.html

Once the ivy-based project has published its artefacts to the mvn repo, then the mvn-based project should be able to resolve the published artefacts. 一旦基于常春藤的项目已将其文物发布到mvn回购中,则基于mvn的项目应能够解决已发布的文物。

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

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