【问题标题】:mulesoft Dependencies Errormulesoft 依赖项错误
【发布时间】:2017-10-30 00:59:59
【问题描述】:

我是一名新人,目前正在研究 mulesoft,我面临依赖问题,但我交叉检查了我的 pom 文件中的所有依赖项。

[ERROR] Failed to execute goal on project panduit-sapi-01: Could not resolve dependencies for project com.panduit:panduit-sapi-01:mule:1.0.0-SNAPSHOT: Failed to collect dependencies at com.mulesoft.anypoint:api-gateway-client:jar:3.8.3: Failed to read artifact descriptor for com.mulesoft.anypoint:api-gateway-client:jar:3.8.3: Could not transfer artifact com.mulesoft.anypoint:api-gateway-extensions:pom:3.8.3 from/to mule-ee-releases (https://repository-master.mulesoft.org/nexus/content/repositories/releases-ee/): Not authorized , ReasonPhrase:Unauthorized. -> [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/DependencyResolutionException

【问题讨论】:

标签: java mule


【解决方案1】:

您需要在由企业存储库组成的 Maven Nexus 上拥有一个帐户。购买许可证时提供帐户。获得凭据后,将其添加到 maven 的 setting.xml 中。

有关如何添加凭据,请参阅下面的参考,

https://books.sonatype.com/nexus-book/reference/_adding_credentials_to_your_maven_settings.html

为了继续,删除企业存储库,一切都应该正常工作。

【讨论】:

    【解决方案2】:

    在你的 pom 中试试这个。

    <repositories>
              <repository>
                <id>Central</id>
                <name>Central</name>
                <url>http://repo1.maven.org/maven2/</url>
                <layout>default</layout>
            </repository>
            <repository>
                <id>mulesoft-releases</id>
                <name>MuleSoft Releases Repository</name>
                <url>http://repository.mulesoft.org/releases/</url>
                <layout>default</layout>
            </repository>
        </repositories>
        <pluginRepositories>
            <pluginRepository>
                <id>mulesoft-release</id>
                <name>mulesoft release repository</name>
                <layout>default</layout>
                <url>http://repository.mulesoft.org/releases/</url>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
            </pluginRepository>
        </pluginRepositories>
    

    【讨论】:

      【解决方案3】:

      请尝试将已安装 JRE 的首选项设置为 1.8 JDK。它应该可以解决问题。

      【讨论】:

      • 你试过了吗?
      • 如果您仔细观察错误日志,它会显示-“无法将工件 com.mulesoft.anypoint:api-gateway-extensions:pom:3.8.3 从/到 mule-ee-releases ( repository-master.mulesoft.org/nexus/content/repositories/…):未授权,ReasonPhrase:未授权。-> [Help 1]" 这表明它与已接受的答案中已指出的回购访问有关。
      【解决方案4】:

      所有 *-ee.jar 依赖项都可通过许可证获得,请尝试购买许可证并将许可证密钥包含在设置 xml 中。

      【讨论】:

        猜你喜欢
        • 2012-11-18
        • 1970-01-01
        • 1970-01-01
        • 2019-02-04
        • 2017-12-03
        • 2011-09-12
        • 2015-11-16
        • 2017-03-28
        • 2014-12-25
        相关资源
        最近更新 更多