首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法下载maven故障安全插件。给我一条错误信息

无法下载maven故障安全插件。给我一条错误信息
EN

Stack Overflow用户
提问于 2020-01-14 01:46:49
回答 3查看 1.8K关注 0票数 0

我创建了一个带有宁静框架的新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禁忌的授权失败

EN

回答 3

Stack Overflow用户

发布于 2020-05-11 17:45:04

您需要将http更改为https,http://jcenter.bintray.com改为https://jcenter.bintray.com

票数 2
EN

Stack Overflow用户

发布于 2020-02-19 08:56:32

我找到了这样的方法,只需在pom.xml中删除下面的行就可以了:

代码语言:javascript
复制
<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>
票数 1
EN

Stack Overflow用户

发布于 2020-07-02 15:49:17

在我的例子中,我错误地从~/.m2/settings.xml中删除了jcenter配置,而我的组织特定的存储库。在添加之后就开始工作了。

代码语言:javascript
复制
<?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>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59726494

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档