mulesoft依赖性错误

时间:2017-05-02 05:35:40

标签: java mule

我是一位刚刚在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

4 个答案:

答案 0 :(得分:2)

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

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

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

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

答案 1 :(得分:0)

在你的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>

答案 2 :(得分:-1)

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

答案 3 :(得分:-1)

所有* -ee.jar依赖项都可以使用许可证,请尝试购买许可证并在xml设置中包含许可证密钥。