maven使用本地私服报错
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 34.808 s
[INFO] Finished at: 2019-01-07T18:52:47+08:00
[INFO] Final Memory: 18M/327M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:purge-local-repository (default-cli) on project account-captcha: Failed to refresh project dependencies for: com.xh.account:account-captcha:jar:1.0.0-SNAPSHOT: required artifacts missing:
[ERROR] com.google.code.kaptcha:kaptcha:jar:jdk15:2.3
[ERROR]
[ERROR] for the artifact:
[ERROR] com.xh.account:account-captcha:jar:1.0.0-SNAPSHOT
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] nexus-localhost (http://localhost:8081/repository/maven-group/, releases=true, snapshots=false)
[ERROR] -> [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/MojoFailureException
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.437 s
[INFO] Finished at: 2019-01-07T19:06:03+08:00
[INFO] Final Memory: 15M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:cobertura-maven-plugin:2.7:instrument (default-cli) on project account-captcha: Execution default-cli of goal org.codehaus.mojo:cobertura-maven-plugin:2.7:instrument failed: Plugin org.codehaus.mojo:cobertura-maven-plugin:2.7 or one of its dependencies could not be resolved: Failed to collect dependencies at org.codehaus.mojo:cobertura-maven-plugin:jar:2.7 -> net.sourceforge.cobertura:cobertura:jar:2.1.1 -> org.mortbay.jetty:jetty:jar:6.1.14 -> org.mortbay.jetty:jetty-util:jar:6.1.14: Failed to read artifact descriptor for org.mortbay.jetty:jetty-util:jar:6.1.14: Could not transfer artifact org.mortbay.jetty:jetty-util:pom:6.1.14 from/to m1.java.net (http://download.java.net/maven/1): Cannot access http://download.java.net/maven/1 with type legacy using the available connector factories: BasicRepositoryConnectorFactory: Cannot access http://download.java.net/maven/1 with type legacy using the available layout factories: Maven2RepositoryLayoutFactory: Unsupported repository layout legacy -> [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
# 清空本地缓存
mvn dependency:purge-local-repository
修改settings.xml中的mirror解决。本地缓存尚未清除成功。
网友评论