Skip to main content

I'm trying to deploy a custom policy to anypoint platform using maven cmd commands.

First I package my project and works perfect.

Then, when I try to deploy, I'm getting a 401 Unauthorized.

 

This is the url to deploy:

https://maven.eu1.anypoint.mulesoft.com/api/v3/organizations/{orgId}/maven ( replacing {ordId} with my organization id ).

 

My user have "Exchange Administrators" role.

 

This is the error:

Failed to deploy artifacts: Could not transfer artifact {ordId}:Test_Policy:pom:1.0.0 from/to exchange-server (https://maven.eu1.anypoint.mulesoft.com/api/v3/organizations/{ordId}/maven): status code: 401, reason phrase: Unauthorized (401)

4 件の回答
  1. 2023年7月14日 10:38

    Hi @Manish Yadav​ ,

     

    I can't resolve it yet. I have an Exchange Contributor ( and Administrator ) Role and the pom has distribution management:

     

      <distributionManagement>

        <repository>

          <id>exchange-server</id>

          <name>Corporate Repository</name>

          <url>${exchange.url}</url>

          <layout>default</layout>

        </repository>

      </distributionManagement>

0/9000