简体   繁体   English

在Netbeans Ant项目中包含一个Netbeans Maven项目

[英]Include a Netbeans Maven project in a Netbeans Ant project

I have a Netbeans Ant project that uses a Jar file generated from a Netbeans Maven project. 我有一个Netbeans Ant项目,它使用从Netbeans Maven项目生成的Jar文件。 I would like to "include" the Maven project directly in the Ant project to be able to proper debug both projects. 我想将Maven项目直接“包含”在Ant项目中,以便能够正确调试两个项目。 The Maven project was converted from an Ant project and before the conversion this include was possible. Maven项目是从Ant项目转换而来的,在转换之前可以包含此项目。 I have control over both projects, but converting the Ant project to a Maven project is not really an option at this point. 我可以控制这两个项目,但是目前还不能将Ant项目转换为Maven项目。 What is the best approach to make an Ant based project and a Maven based project "work" together i Netbeans? 在Netbeans中使基于Ant的项目和基于Maven的项目一起“工作”的最佳方法是什么?

Thanks 谢谢

it should work if your ant project includes the maven local repository jar as dependency. 如果您的ant项目包含maven本地存储库jar作为依赖项,它应该可以工作。 Maven support does automatic binary->open project source conversion for local repo artifacts. Maven支持对本地存储库工件进行自动二进制->开放项目源转换。

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

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