Loading

Issue downloading assets from repository when deploying, "Could not resolve dependencies for project"

Дата публикации: Mar 2, 2024
Решение

SYMPTOM

After Incident-950 on September 16, 2021, MuleSoft moved all assets held in public repositories to the Exchange repository. For example, if you were previously expecting to download a connector or partner connector from our Nexus repository, it may no longer be available and you will have to reference the Exchange libraries instead.

Here is an example error of a connector issue:
 

[ERROR] Failed to execute goal on project proc-claim-receipts-api-v2: Could not resolve dependencies for project test-project:mule-application:1.0.0: Could not find artifact org.mule.modules:azure-storage-connector:jar:mule-plugin:2.1.0 in MuleRepository (https://repository.mulesoft.org/nexus-ee/content/repositories/releases-ee/) -> [Help 1]
 

CAUSE

Customers will have to re-configure their pom.xml file to reference the Exchange repository. This affects all applications which have their dependencies configured to be downloaded from the public repository.


SOLUTION 

1. Please add this line to your pom.xml:

<repository>
    <id>exchange-prod</id>
    <name>MuleSoft Exchange US Production Environment</name>
    <url>https://maven.anypoint.mulesoft.com/api/v1/organizations/68ef9520-24e9-4cf2-b2f5-620025690913/maven</url>
</repository>
 

2. Please review your settings.xml and pom.xml with the article, How to use Enterprise Maven Repository credentials with settings.xml and pom.xml example.

Номер статьи базы знаний

001122696

 
Загрузка
Salesforce Help | Article