【发布时间】:2013-04-27 05:45:49
【问题描述】:
我在C:\Users\AArmijos\Desktop\Factura Electronica\MIyT\componentes-1.0.4\sources\pom.xml 中有一个pom.xml,我执行了:
mvn install:install-file -DgroupId=es.mityc.jumbo.adsi -DartifactId=xmlsec-1.4.2-ADSI -Dversion=1.0 -Dpackaging=jar -Dfile=C:\Users\AArmijos\Desktop\Factura Electronica\MIyT\componentes-1.0.4\core\xmlsec-1.4.2-ADSI-1.0.jar
但是它返回了以下错误:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.310s
[INFO] Finished at: Thu May 02 16:48:29 COT 2013
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM
in this directory (C:\Users\AArmijos). Please verify you invoked Maven from the
correct directory. -> [Help 1]
谁能解释为什么会失败?
【问题讨论】:
-
你检查过这里吗? maven.apache.org/plugins/maven-install-plugin/usage.html 您的模板似乎无效。我看到 .jar 文件出现在第一个参数中。
-
是的,这个命令在另一台电脑上可以正常运行,但是我的电脑上不行,我安装了最新版本的jdk和maven
-
好的,现在我更好地看到了错误。你在这个文件夹中有一个 pom.xml,你称之为 mvn install-install-file 吗?如果你有,你能更新你的问题吗?
-
是的,我有一个 pom.xml
-
将每个参数放在双引号中解决了我的问题。
标签: maven-3