首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能执行目标org.apache.maven.plugins:maven-install-plugin:2.4:install-file maven

未能执行目标org.apache.maven.plugins:maven-install-plugin:2.4:install-file maven
EN

Stack Overflow用户
提问于 2017-10-06 12:10:08
回答 1查看 6.8K关注 0票数 2

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

代码语言:javascript
复制
mvn install:install-file -Dfile=scertcommon-07.01.08.04.jar -DgroupId=com.avaya.sce -DartifactId=scertcommon -Dversion=07.01.08.04 -Dpackaging=jar

执行上述命令时,将得到以下错误。

代码语言:javascript
复制
[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很陌生

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-10-07 08:20:31

检查一下为什么会有“?”在错误消息中的工件名称之后。

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

也许某个看不见的特殊角色已经在你的mvn命令中溜进了工件名之后。

我认为Windows字符“?”不能在文件名/路径中使用。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46605429

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档