【发布时间】:2012-11-30 00:51:37
【问题描述】:
这是我想在我的 Ant 脚本末尾运行的命令:
mvn install:install-file -Dfile=C:\dev\common\somejar.jar -DgroupId=com.myco.gt -DartifactId=somejar-Dversion=1.0.0 -Dpackaging=jar -DgeneratePOM=true
如果我在 Ant 脚本的末尾输入以下目标:
<target name='install_mvn_dependencies' depends='build_jars'>
<exec executable="mvn">
<arg value="install:install-file"/>
<arg value="-Dfile=c:\dev\common\somejar.jar"/>
<arg value ="-DgroupId=com.myco.gt"/>
<arg value="-DartifactId=somejar"/>
<arg value="-Dversion=1.2.0"/>
<arg value="-Dpackaging=jar"/>
<arg value="-DgeneratePOM=true"/>
</exec>
</target>
我收到CreateProcess error=2. The system cannot find the path specified.
即使我可以在命令行上运行 mvn。什么给了?
【问题讨论】:
标签: maven ant maven-ant-tasks