Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/382.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java mulesoft依赖项错误_Java_Mule - Fatal编程技术网

Java mulesoft依赖项错误

Java mulesoft依赖项错误,java,mule,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.

我是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

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

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


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

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

中心的
中心的
http://repo1.maven.org/maven2/
违约
mulesoft发布
MuleSoft发布存储库
http://repository.mulesoft.org/releases/
违约
mulesoft释放
mulesoft发布库
违约
http://repository.mulesoft.org/releases/
错误的

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

所有*-ee.jar依赖项都随许可证一起提供,请尝试购买许可证并将许可证密钥包含在设置xml中。

检查以下链接:您尝试过这样做吗?如果您仔细查看错误日志,它会显示-“无法将工件com.mulesoft.anypoint:api网关扩展:pom:3.8.3从/传输到mule ee版本():未授权,原因短语:未授权。->[Help 1]“这表明它与回购渠道有关,正如公认答案中已经指出的那样。