Maven項目打包local已有repo-jar時,,不需要配置私服再從私服去下載;否則,,會很慢,,超時異常,。
配置了私服,,我真真浪費掉6h來打包關(guān)聯(lián)的jar至lib,還失敗了/(ㄒoㄒ)/~~,。
Maven的pom.xml私服配置:
控制臺報錯:
PluginResolutionException( Failed-to-execute-goal-org-apache-maven-pluginsmaven-surefire-plugin2-19test) Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its dependencies could not be resolved:
Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3: Could not transfer
artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from/to central (http://repo1./maven2): Error transferring file: repo1.: Unknown host repo1. -> [Help 1] To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
"**[Help 1] http://cw
iki./confluence/display/MAVEN/PluginResolutionException"**
解決方案:
將私服注釋掉重新maven install,,打包就成功。
|