gpt4 book ai didi

java - Maven:org.codehaus.mojo:tomcat-maven-plugin:jar:2.2 的 POM 在哪里?

转载 作者:行者123 更新时间:2023-12-02 05:17:32 25 4
gpt4 key购买 nike

$ mvn tomcat:run
[INFO] Scanning for projects...
Downloading: http://objectstyle.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/2.9/maven-eclipse-plugin-2.9.pom
Downloading/Downloaded: ... [Many more POMs and JARs]
[WARNING] The POM for org.codehaus.mojo:tomcat-maven-plugin:jar:2.2 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.151s
[INFO] Finished at: Thu Nov 06 17:07:49 PST 2014
[INFO] Final Memory: 13M/322M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.codehaus.mojo:tomcat-maven-plugin:2.2 or one of its
dependencies could not be resolved: Failed to read artifact descriptor for
org.codehaus.mojo:tomcat-maven-plugin:jar:2.2: Failure to find
org.codehaus.mojo:tomcat-maven-plugin:pom:2.2 in
http://objectstyle.org/maven2/ was cached in the local repository,
resolution will not be reattempted until the update interval of objectstyle
has elapsed or updates are forced -> [Help 1]

主 pom.xml 文件位于 http://kopy.io/Nfcic

什么是“本地存储库”?

简而言之,我现在该怎么办?

最佳答案

您的 POM 指定这些存储库:

    <repositories>
<repository>
<id>spring-release</id>
<name>Spring Framework Release Repository</name>
<url>http://maven.springframework.org/release</url>
</repository>
<repository>
<id>spring-milestone</id>
<name>Spring Framework Milestone Repository</name>
<url>http://maven.springframework.org/milestone</url>
</repository>
<repository>
<!-- necessary for Spring Security OAuth SNAPSHOT dependency -->
<id>spring-snapshost</id>
<name>Spring Framework Maven Snapshot Repository</name>
<url>http://maven.springframework.org/snapshot</url>
</repository>
<repository>
<id>objectstyle</id>
<name>ObjectStyle.org Repository</name>
<url>http://objectstyle.org/maven2/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>

这些存储库都不包含您尝试下载的插件。您需要向包含插件的 pom 添加其他存储库,或者需要将插件存储在存储库中,以便 Maven 可以找到它。

尝试添加 http://maven.apache.org/repository/

本地存储库是maven存储它下载的文件的地方。该消息告诉您该 jar 尚未下载。

关于java - Maven:org.codehaus.mojo:tomcat-maven-plugin:jar:2.2 的 POM 在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26792533/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com