java - org.apache.maven.plugins :maven-war-plugin:jar:3. 0 的 POM 丢失,没有可用的依赖信息

标签 java eclipse maven servlets slf4j

我在我的 Maven 项目中遇到了这个错误,但我无法解决。
怎么解决呢?

我通过右键单击项目尝试了所有可能的操作。
更新项目,下载源代码,...)。

我在 Maven 依赖项中获得了 slf4j-api-1.6.1.jar
为什么加载失败?

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    SLF4J: Defaulting to no-operation (NOP) logger implementation
    SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
    [INFO] Scanning for projects...
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building guacamole-tutorial 0.0.1-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [WARNING] The POM for org.apache.maven.plugins:maven-war-plugin:jar:3.0 is missing, no dependency information available
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 0.427s
    [INFO] Finished at: Wed Mar 25 10:51:17 EET 2015
    [INFO] Final Memory: 4M/76M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Plugin org.apache.maven.plugins:maven-war-plugin:3.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:jar:3.0: Failure to find org.apache.maven.plugins:maven-war-plugin:pom:3.0 in http://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 -> [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

最佳答案

您遇到的问题很简单,就是不存在 3.0 版本的 maven-war-plugin。

最新版本maven-war-plugin is 2.6

所有插件的概述可以在这里找到:http://maven.apache.org/plugins/

关于java - org.apache.maven.plugins :maven-war-plugin:jar:3. 0 的 POM 丢失,没有可用的依赖信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29251377/

相关文章:

c++ - 在 Eclipse Oxygen 中通过 Ctrl+click 的超链接导航不起作用

java - Spring Boot 1.5禁用oauth2安全

java - Android 上的实时蓝牙 SPP 数据流只能工作 5 秒

java - 使用 http ://www. hibernate.org/dtd 的 Hibernate 问题

java - 无法在Pig中使用最大值和求和函数

java - 无法在本地存储库中搜索依赖项

java - Maven 和 POM.xml 中的插件

当我尝试在 .ear 中构建存档 .sar 时,Maven 抛出 "Error injecting and NoClassDefFoundError"

javascript - Spring MVC - 从 Controller 发布到不同的 url

java - 将经过的毫秒数转换为正确的 Java 日期格式?