我创建了一个带有宁静框架的新maven项目。我在我的新maven项目中遇到了这个错误。
无法解决org.apache.maven.plugins:maven-failsafe-plugin:2.22.1插件或其依赖项之一:无法读取org.apache.maven.plugins:maven-failsafe-plugin:jar:2.22.1:的工件描述符,无法将工件org.apache.maven.plugins:maven-failsafe-plugin:pom:2.22.1从/转到中央(http://jcenter.bintray.com):http://jcenter.bintray.com/org/apache/maven/plugins/maven-failsafe-plugin/2.22.1/maven-failsafe-plugin-2.22.1.pom 403禁忌的授权失败
发布于 2020-05-11 17:45:04
您需要将http更改为https,http://jcenter.bintray.com改为https://jcenter.bintray.com。
发布于 2020-02-19 08:56:32
我找到了这样的方法,只需在pom.xml中删除下面的行就可以了:
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray</name>
<url>http://jcenter.bintray.com</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray-plugins</name>
<url>http://jcenter.bintray.com</url>
</pluginRepository>
</pluginRepositories>发布于 2020-07-02 15:49:17
在我的例子中,我错误地从~/.m2/settings.xml中删除了jcenter配置,而我的组织特定的存储库。在添加之后就开始工作了。
<?xml version="1.0" encoding="UTF-8" ?>
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<servers>
...
</servers>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray</name>
<url>https://jcenter.bintray.com</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray-plugins</name>
<url>https://jcenter.bintray.com</url>
</pluginRepository>
</pluginRepositories>
<id>bintray</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>bintray</activeProfile>
</activeProfiles>
</settings>https://stackoverflow.com/questions/59726494
复制相似问题