自己搭建一个Maven私服后,随便找一个项目去测试,mvn install的时候出现下边的异常,怎么办??
注:这里只对问题做一个记录,琢磨出来解决方案后,我会在下边评论里边写出来的。
各位来访者如果有好的建议或者意见,也可以给评论下,感激不尽。
重要的事情说三遍
最新参考: https://yq.aliyun.com/articles/7427?spm=5176.100240.searchblog.32.77Ri6c
最新参考: https://yq.aliyun.com/articles/7427?spm=5176.100240.searchblog.32.77Ri6c
最新参考: https://yq.aliyun.com/articles/7427?spm=5176.100240.searchblog.32.77Ri6c
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for sy.demo:sypro:war:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.mortbay.jetty:maven-jetty-plugin is missing. @ line 151, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 141, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building sypro Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Downloading: http://192.168.1.100:8081/nexus/content/groups/public/org/springframework/spring-core/3.2.3.RELEASE/spring-core-3.2.3.RELEASE.jar
Downloading: http://192.168.1.100:8081/nexus/content/groups/public/org/springframework/spring-jdbc/3.2.3.RELEASE/spring-jdbc-3.2.3.RELEASE.jar
Downloading: http://192.168.1.100:8081/nexus/content/groups/public/org/springframework/spring-tx/3.2.3.RELEASE/spring-tx-3.2.3.RELEASE.jar
Downloading: http://192.168.1.100:8081/nexus/content/groups/public/net/sf/ehcache/ehcache/2.7.0/ehcache-2.7.0.jar
Downloading: http://192.168.1.100:8081/nexus/content/groups/public/org/javassist/javassist/3.15.0-GA/javassist-3.15.0-GA.jar
Downloading: http://192.168.1.100:8081/nexus/content/groups/public/junit/junit/4.11/junit-4.11.jar
Downloading: http://192.168.1.100:8081/nexus/content/groups/public/org/aspectj/aspectjweaver/1.7.2/aspectjweaver-1.7.2.jar
Downloading: http://192.168.1.100:8081/nexus/content/groups/public/com/alibaba/fastjson/1.1.31/fastjson-1.1.31.jar
Downloading: http://192.168.1.100:8081/nexus/content/groups/public/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.578s
[INFO] Finished at: Fri Dec 20 14:47:59 CST 2013
[INFO] Final Memory: 8M/100M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project sypro: Could not resolve dependencies for project sy.demo:sypro:war:0.0.1-SNAPSHOT: The following artifacts could not be resolved: org.springframework:spring-core:jar:3.2.3.RELEASE, org.springframework:spring-jdbc:jar:3.2.3.RELEASE, org.springframework:spring-tx:jar:3.2.3.RELEASE, net.sf.ehcache:ehcache:jar:2.7.0, org.javassist:javassist:jar:3.15.0-GA, junit:junit:jar:4.11, org.aspectj:aspectjweaver:jar:1.7.2, com.alibaba:fastjson:jar:1.1.31, javax.servlet:servlet-api:jar:2.5: Could not find artifact org.springframework:spring-core:jar:3.2.3.RELEASE in nexus (http://192.168.1.100:8081/nexus/content/groups/public/) -> [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