赞
踩
环境:
C:\Users\hangludian>systeminfo | findstr Build
OS 版本: 10.0.19044 暂缺 Build 19044
C:\Users\hangludian>
mvn install:install-file -DgroupId=com.aliyun -DartifactId=aliyun-java-vod-upload -Dversion=1.4.11 -Dpackaging=jar -Dfile=aliyun-java-vod-upload-1.4.11.jar
(base) PS D:\webJava\Java\apache-maven-3.9.1\lib> mvn install:install-file -DgroupId=com.aliyun -DartifactId=aliyun-java-vod-upload -Dversion=1.4.11 -Dpackaging=jar -Dfile=aliyun-java-vod-upload-1.4.11.jar [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.065 s [INFO] Finished at: 2023-05-04T14:28:42+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (D:\webJava\Java\apache-maven-3.9.1\lib). 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 (base) PS D:\webJava\Java\apache-maven-3.9.1\lib> (base) PS D:\webJava\Java\apache-maven-3.9.1\lib>
mvn install:install-file -DgroupId="com.aliyun" -DartifactId="aliyun-java-vod-upload" -Dversion="1.4.11" -Dpackaging="jar" -Dfile="aliyun-java-vod-upload-1.4.11.jar"
(base) PS D:\webJava\Java\apache-maven-3.9.1\lib> mvn install:install-file -DgroupId="com.aliyun" -DartifactId="aliyun-java-vod-upload" -Dversion="1.4.11" -Dpackaging="jar" -Dfile="aliyun-java-vod-upload-1.4.11.jar" [INFO] Scanning for projects... [INFO] [INFO] ------------------< org.apache.maven:standalone-pom >------------------- [INFO] Building Maven Stub Project (No POM) 1 [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- install:3.1.0:install-file (default-cli) @ standalone-pom --- [INFO] Installing D:\webJava\Java\apache-maven-3.9.1\lib\aliyun-java-vod-upload-1.4.11.jar to C:\Users\hangludian\.m2\repository\com\aliyun\aliyun-java-vod-upload\1.4.11\aliyun-java-vod-upload-1.4.11.jar [INFO] Installing C:\Users\HANGLU~1\AppData\Local\Temp\aliyun-java-vod-upload-1.4.112331278762824322281.pom to C:\Users\hangludian\.m2\repository\com\aliyun\aliyun-java-vod-upload\1.4.11\aliyun-java-vod-upload-1.4.11.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.757 s [INFO] Finished at: 2023-05-04T14:35:52+08:00 [INFO] ------------------------------------------------------------------------ (base) PS D:\webJava\Java\apache-maven-3.9.1\lib>
maven install报错解决
https://blog.csdn.net/qq_51738873/article/details/126372542
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。