Maven本地仓库导入jar包找不到pom文件解决办法

文章目录

解决方案

.\mvn install:install-file "-Dfile=d:\***.jar" "-DgroupId=***" "-DartifactId=***"  "-Dversion=1.0.0"  "-Dpackaging=jar"

错误提示

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.176 s
[INFO] Finished at: 2020-06-02T16:22:18+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (D:\apache-maven-3.6.1\bin). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException

猜你喜欢

转载自blog.csdn.net/qq_38438909/article/details/106499324