无法执行目标 org.apache.maven.plugins:maven-install-plugin:2.4:ins



我尝试通过命令提示符执行以下命令:

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:UsersN0292812.m2repositorycomavayascescertcommon7.01.08.04scertcommon-07.01.08.04.jar? (The filename, directory name, or volume label syntax is incorrect)

补充一点:我不使用 pom.xml 文件,jar 文件保存在 D:/xx/xxx.所以我导航到该文件夹并执行了上述命令。确切的问题是什么,我该如何纠正问题。我对Maven很陌生

检查为什么错误消息中的工件名称后有"?"。

。安装工件'com.avaya.sce:scertcommon:jar时出错?...'

也许在工件名称之后,一些不可见的特殊字符已经滑入您的 mvn 命令。

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

最新更新