[英]Error with mvn install local jar: Failed to execute goal org.apache.maven.plugins:maven-install-plugin…(Is a directory) -> [Help 1]
i am trying to install a local jar to my maven project, i am running this command from my project folder : 我正在尝试将本地jar安装到我的Maven项目中,我正在从我的项目文件夹中运行以下命令:
mvn install:install-file -Dfile= ~/Downloads/<jar_path> -DgroupId=<groupId> -DartifactId=<artifactId> -Dversion=<version> -Dpackaging=jar -DgeneratePom=false
and i am getting this error: 我收到此错误:
Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file (default-cli) on project my-project: Error installing artifact 'my-artifact': Failed to install artifact groupId:artifactId:jar:version: /Users/my-project-path (Is a directory) -> [Help 1]
There is a space in your command, after -Dfile=
! -Dfile=
之后,您的命令中有一个空格!
mvn install:install-file -Dfile= ~/Downloads/<jar_path> -DgroupId=<groupId> -DartifactId=<artifactId> -Dversion=<version> -Dpackaging=jar -DgeneratePom=false
try 尝试
mvn install:install-file -Dfile=~/Downloads/<jar_path> -DgroupId=<groupId> -DartifactId=<artifactId> -Dversion=<version> -Dpackaging=jar -DgeneratePom=false
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.