我试图通过命令提示符执行以下命令:
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/xx中,所以我导航到文件夹并执行上面的命令。确切的问题是什么,我如何纠正这个问题?我对Maven很陌生
发布于 2017-10-07 08:20:31
检查一下为什么会有“?”在错误消息中的工件名称之后。
..。安装工件'com.avaya.sce:scertcommon:jar?‘时出错
也许某个看不见的特殊角色已经在你的mvn命令中溜进了工件名之后。
我认为Windows字符“?”不能在文件名/路径中使用。
https://stackoverflow.com/questions/46605429
复制相似问题