2017-10-06 54 views
2

我试图通过命令提示符下执行以下命令:未能执行目标org.apache.maven.plugins:Maven的安装,插件:2.4:安装文件行家

mvn install:install-file -Dfile=scertcommon-07.01.08.04.jar -DgroupId=com.avaya.sce -DartifactId=scertcommon -Dversion=07.01.08.04 -Dpackaging=jar 

我正在以下当我执行上述命令时出错。

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file (default-cli) on project standalone-pom: Error installing artifact 'com.avaya.sce:scertcommon:jar?': Failed to install artifact com.avaya.sce:scertcommon:jar?:07.01.08.04: C:\Users\N0292812\.m2\repository\com\avaya\sce\scertcommon\07.01.08.04\scertcommon-07.01.08.04.jar? (The filename, directory name, or volume label syntax is incorrect) 

一项的附加点: 我不使用pom.xml文件和jar文件被保持在d:/xx/xxx.So我导航到的文件夹,并执行上述命令。 什么是确切的问题,我该如何纠正这个问题。我对Maven很陌生

回答

0

检查为什么有'?'在出错消息中的工件名称之后。

...安装artifact'com.avaya.sce:scertcommon:jar时出错? ...'

也许某些不可见的特殊字符在工件名称后面滑入了mvn命令。

我认为在Windows中字符'?'不能用于文件名/路径。

+0

谢谢。是的,这是一个看不见的特殊字符导致了问题 –

相关问题