标签:
pom.xml
... </dependencies> <repositories> <repository> <id>sf-nexus</id> <name>sf-nexus</name> <url>http://10.202.34.32:8081/nexus/content/groups/public</url> </repository> <repository> <id>central</id> <name>central</name> <url>http://repo1.maven.org/maven2</url> </repository> </repositories> <distributionManagement> <repository> <id>nexus-releases</id> <name>Local Nexus Releases Repository</name> <url>http://10.202.34.32:8081/nexus/content/repositories/releases</url> <uniqueVersion>false</uniqueVersion> </repository> <snapshotRepository> <id>nexus-snapshot</id> <name>Local Nexus Snapshots Repository</name> <url>http://10.202.34.32:8081/nexus/content/repositories/snapshots</url> <uniqueVersion>false</uniqueVersion> </snapshotRepository> </distributionManagement> <build> ... ...
D:\shiva\omcs\code\cache>mvn package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.sf.omcs:omcs-cache:jar:0.0.1-SNAPSHO
T
[WARNING] ‘build.plugins.plugin.version‘ for org.apache.maven.plugins:maven-jar-plugin is missing. @ com.sf.omcs:omcs:0.
0.1-SNAPSHOT, D:\shiva\omcs\code\pom.xml, line 188, 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 cache 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/24/maven-parent-24.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:03 min
[INFO] Finished at: 2016-06-08T11:47:20+08:00
[INFO] Final Memory: 10M/150M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-dependency-plugin:2.9 or one of its dependencies could not be resolved: Fa
iled to read artifact descriptor for org.apache.maven.plugins:maven-dependency-plugin:jar:2.9: Could not transfer artifa
ct org.apache.maven:maven-parent:pom:24 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.ap
ache.org:443 [repo.maven.apache.org/23.235.43.215] failed: Read timed out -> [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/PluginResolutionException
D:\shiva\omcs\code\cache>
标签:
原文地址:http://www.cnblogs.com/duanxz/p/5569595.html