为什么在使用 mvn install:install-file 将本地 jar 添加到 Maven Spring Boot 项目时出错
Why getting error while adding Local jar into Maven Spring Boot project uisng mvn install:install-file
我正在尝试将本地 jar 添加到 maven spring 引导项目中,但出现如下错误:
我执行的命令如下:
mvn install:install-file –Dfile='D:\WS\APP_Latest\app\lib\Services.jar' -DgroupId=Services -DartifactId=Services -Dversion=1.0 -Dpackaging=jar
在 POM.xml 目录和 D:\WS\APP_Latest\app\lib\Services.jar 路径中存在的本地 jar(Services.jar) 中执行上述命令。
错误如下:
[ERROR] No plugin found for prefix 'ûDfile='D' in the current project and in the
plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the
repositories [local (C:\Users\***\.m2\repository), central (https://repo.mav
en.apache.org/maven2)] -> [Help 1]
任何人都可以帮助解决这个问题。
您可能从某处复制并粘贴了 -Dfile
,而您行中的破折号 -
不是 "real" 破折号,而是其他一些破折号。尝试重新输入表达式中的所有 -
。
尝试删除 -Dfile
参数中的 ```:
mvn install:install-file -Dfile=D:\WS\APP_Latest\app\lib\Services.jar -Dg
roupId=Services -DartifactId=Services -Dversion=1.0 -Dpackaging=jar
我正在尝试将本地 jar 添加到 maven spring 引导项目中,但出现如下错误:
我执行的命令如下:
mvn install:install-file –Dfile='D:\WS\APP_Latest\app\lib\Services.jar' -DgroupId=Services -DartifactId=Services -Dversion=1.0 -Dpackaging=jar
在 POM.xml 目录和 D:\WS\APP_Latest\app\lib\Services.jar 路径中存在的本地 jar(Services.jar) 中执行上述命令。
错误如下:
[ERROR] No plugin found for prefix 'ûDfile='D' in the current project and in the
plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the
repositories [local (C:\Users\***\.m2\repository), central (https://repo.mav
en.apache.org/maven2)] -> [Help 1]
任何人都可以帮助解决这个问题。
您可能从某处复制并粘贴了 -Dfile
,而您行中的破折号 -
不是 "real" 破折号,而是其他一些破折号。尝试重新输入表达式中的所有 -
。
尝试删除 -Dfile
参数中的 ```:
mvn install:install-file -Dfile=D:\WS\APP_Latest\app\lib\Services.jar -Dg
roupId=Services -DartifactId=Services -Dversion=1.0 -Dpackaging=jar