简体   繁体   English

当蚂蚁构建文件位于不同目录中时,如何从Maven Pom开始构建蚂蚁?

[英]How do you start a ant build from a maven pom when ant build file is in different directory?

How do you start a ant build from a maven pom when ant build file is in different directory? 当蚂蚁构建文件位于不同目录中时,如何从Maven Pom开始构建蚂蚁?

I have a ant build file in the following location. 我在以下位置有一个ant生成文件。

src/main/resources/build/build.xml src / main / resources / build / build.xml

I have a pom.xml in the root of the project. 我在项目的根目录中有一个pom.xml。

I want to call the ant build from the maven build. 我想从Maven版本中调用ant版本。 Due to the build.xml being a legacy build it only runs from the command line when you are in the src/main/resources/build/ directory. 由于build.xml是旧版构建,因此只有在src / main / resources / build /目录中时,它才从命令行运行。 I want a quick way to kick of this ant build as though i am in that directory. 我想要一种快速启动该蚂蚁构建的方法,就像我在该目录中一样。 What is the best way to do this? 做这个的最好方式是什么?

Thanks, 谢谢,

Matt 马特

You should use the maven ant plugin. 您应该使用Maven ant插件。 Link 链接

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

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