我正在尝试使用以下POM文件部署Usergrid:https://github.com/apache/usergrid/blob/master/deployment/aws/pom.xml
最初,我遇到了一堆依赖问题,所以我跑了:
mvn dependency:resolve-plugins
在输出中,我得到一些错误和警告:
[WARNING] Could not transfer metadata org.codehaus.groovy:groovy-eclipse-batch/maven-metadata.xml from/to codehaus.org (http://repository.codehaus.org): repository.codehaus.org: unknown error
[WARNING] Could not transfer metadata org.codehaus.groovy:groovy-eclipse-batch/maven-metadata.xml from/to codehaus-snapshots (http://nexus.codehaus.org/snapshots/): nexus.codehaus.org: unknown error
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.usergrid:awscluster:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.codehaus.mojo:exec-maven-plugin @ line 178, column 21
[WARNING]
[INFO]
[INFO] -------------------< org.apache.usergrid:awscluster >-------------------
[INFO] Building awscluster 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.9:resolve-plugins (default-cli) @ awscluster ---
[INFO] Plugin Resolved: maven-jar-plugin-3.1.0.jar
[INFO] Plugin Dependency Resolved: maven-plugin-api-3.0.jar
[INFO] Plugin Dependency Resolved: maven-core-3.0.jar
[INFO] Plugin Dependency Resolved: maven-artifact-3.0.jar
[INFO] Plugin Dependency Resolved: maven-archiver-3.2.0.jar
[INFO] Plugin Dependency Resolved: plexus-archiver-3.5.jar
[INFO] Plugin Dependency Resolved: plexus-utils-3.1.0.jar
[INFO] Plugin Resolved: groovy-eclipse-compiler-2.6.0-01.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.350 s
[INFO] Finished at: 2018-08-17T13:49:11-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.9:resolve-plugins (default-cli) on project awscluster: Nested:: Failure to find org.codehaus.groovy:groovy-eclipse-batch:jar:[1.7.10-02,1.7.10-99],[1.8.2-01,1.9.0) in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
我尝试从此处下载并安装插件:
https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-eclipse-batch/1.8.2-01
使用:
$ mvn install:install-file -DgroupId=org.codehaus.groovy -DartifactId=groovy-eclipse-batch -Dversion=null -Dpackaging=jar -Dfile=groovy-eclipse-batch-1.8.2-01.jar
我运行了mvn deploy
,但仍然遇到依赖错误。
如何解决此问题?