在远程离线复制一个maven创建的spring-boot项目 install的时候报错:

使用maven在离线的情况下开发

项目是从我电脑复制到远程的, 对应的maven仓库也已经从本地复制到了远程.

"C:\Program Files\Java\jdk1.8.0_162\bin\java.exe" -Dmaven.multiModuleProjectDirectory=D:\xxxxxx\workspace\xxxxxx -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.home=D:\Hutao\programer\apache-maven-3.8.2 -Dclassworlds.conf=D:\Hutao\programer\apache-maven-3.8.2\bin\m2.conf "-Dmaven.ext.class.path=D:\Hutao\programer\IntelliJ IDEA 2020.1.3\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\Hutao\programer\IntelliJ IDEA 2020.1.3\lib\idea_rt.jar=54795:D:\xxxxxx\programer\IntelliJ IDEA 2020.1.3\bin" -Dfile.encoding=UTF-8 -classpath D:\Hutao\programer\apache-maven-3.8.2\boot\plexus-classworlds-2.6.0.jar;D:\Hutao\programer\apache-maven-3.8.2\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version2020.1.3 --offline -s C:\Users\Administrator\.m2\settings.xml -Dmaven.repo.local=C:\Users\Administrator\.m2\repository -DskipTests=true install
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------------< com.xxxxxx:xxxx >---------------------------
[INFO] Building xxxx 0.0.1-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.609 s
[INFO] Finished at: 2021-10-08T11:10:40+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project xxxxx: Could not resolve dependencies for project com.xxxxxxx:xxxx:war:0.0.1-SNAPSHOT: Failed to collect dependencies at org.springframework.boot:spring-boot-starter-test:jar:1.5.10.RELEASE: Failed to read artifact descriptor for org.springframework.boot:spring-boot-starter-test:jar:1.5.10.RELEASE: Cannot access aliyunmaven (https://maven.aliyun.com/repository/central) in offline mode and the artifact org.springframework.boot:spring-boot-starters:pom:1.5.10.RELEASE has not been downloaded from it before. -> [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/DependencyResolutionException
阅读 998
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题