我目前正在使用Nexus,但我对它很陌生。
我正在尝试构建一个EAR项目,我收到的错误如下。
http://localhost:8080/nexus/content/groups/public是包含Central的默认公共组存储库,在Central中,org.apache.maven工件的2.2.1版本远程存在。
但是,如果我查看本地存储,它就不存在,就像错误所示。
我认为在构建期间,它会使用必要的文件更新本地存储。我试过了-U强制更新。
赞赏任何指针
约翰。
[INFO]
[INFO] --- maven-ear-plugin:2.10:generate-application-xml (default-generate-application-xml) @ my-apps.ear ---
[WARNING] The POM for org.apache.maven:maven-project:jar:2.2.1 is missing, no dependency information available
[WARNING] The POM for org.apache.maven:maven-plugin-api:jar:2.2.1 is missing, no dependency information available
[WARNING] The POM for org.apache.maven:maven-artifact:jar:2.2.1 is missing, no dependency information available
[WARNING] The POM for org.apache.maven:maven-core:jar:2.2.1 is missing, no dependency information available
[WARNING] The POM for org.apache.maven:maven-archiver:jar:2.6 is missing, no dependency information available
[WARNING] The POM for org.codehaus.plexus:plexus-archiver:jar:2.9 is missing, no dependency information available
[WARNING] The POM for org.codehaus.plexus:plexus-utils:jar:3.0.20 is missing, no dependency information available
[WARNING] The POM for org.apache.maven.shared:maven-filtering:jar:1.3 is missing, no dependency information available
[WARNING] The POM for org.codehaus.plexus:plexus-interpolation:jar:1.22 is missing, no dependency information available
[WARNING] Failed to getClass for org.apache.maven.plugin.ear.GenerateApplicationXmlMojo
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.089 s
[INFO] Finished at: 2016-04-27T03:48:10+00:00
[INFO] Final Memory: 13M/107M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-ear-plugin:2.10:generate-application-xml (default-generate-application-xml) on project my-apps.ear: Execution default-generate-application-xml of goal org.apache.maven.plugins:maven-ear-plugin:2.10:generate-application-xml failed: Plugin org.apache.maven.plugins:maven-ear-plugin:2.10 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-project:jar:2.2.1, org.apache.maven:maven-plugin-api:jar:2.2.1, org.apache.maven:maven-artifact:jar:2.2.1, org.apache.maven:maven-core:jar:2.2.1, org.apache.maven:maven-archiver:jar:2.6, org.codehaus.plexus:plexus-archiver:jar:2.9, org.codehaus.plexus:plexus-utils:jar:3.0.20, org.apache.maven.shared:maven-filtering:jar:1.3, org.codehaus.plexus:plexus-interpolation:jar:1.22: Failure to find org.apache.maven:maven-project:jar:2.2.1 in http://localhost:8080/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of Nexus has elapsed or updates are forced -> [Help 1]