出现错误-Maven依赖项解析-无法读取描述符

 收藏

我收到此错误-

[ERROR] Plugin Line=clean package org.apache.tomcat.maven:tomcat7-maven-plugin:2.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for Line=clean package org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.2: Could not transfer artifact Line=clean package org.apache.tomcat.maven:tomcat7-maven-plugin:pom:2.2 from/to w-maven-repo (http://s3.amazonaws.com/maven.w.com/release): Access denied to http://s3.amazonaws.com/maven.w.com/release/Line=clean+package+org/apache/tomcat/maven/tomcat7-maven-plugin/2.2/tomcat7-maven-plugin-2.2.pom. Error code 403, Forbidden -> [Help 1]

我假设maven无法像浏览器那样访问Internet。我没有防火墙

尝试在POM中添加依赖项,尝试使用其他版本的插件文件等。

感谢一些帮助和指导!

回复