我们可以使用的pom.xml到ANT [英] Can we use pom.xml into ANT

查看:140
本文介绍了我们可以使用的pom.xml到ANT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道,我们可以很好地使用Ant和Maven共同打造project.We可通过Maven的pom.xml中运行Ant脚本。但我的问题是,我们可以通过ANT的build.xml运行的pom.xml?
即我们可以创建行家从build.xml构建

I know that, we can very well use ANT and Maven together to build the project.We can run ANT scripts through Maven's POM.xml. But my question is can we run pom.xml through ANT's build.xml ? i.e. can we create maven build from build.xml

推荐答案

是,使用 Maven的Ant任务

该页面会列出哪些可以集成到Ant构建脚本多个Maven的任务,从而既相结合的特点。举一个例子,有 MVN任务,该如记录可以做一个完整的Maven构建从蚂蚁。

The page lists out multiple maven tasks which can be integrated into an ant build script, thus combining the features of both. To take an example, there is the mvn task, which as documented can do a full maven build from ant.

  <artifact:mvn mavenHome="/path/to/maven-3.0.x">
     <arg value="install"/>
  </artifact:mvn>

除此之外,有


  • 依赖任务

  • 安装和部署任务

  • 双龙任务

用实例说明各

这篇关于我们可以使用的pom.xml到ANT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆