Access Denied error to forgerock’s private release repo via maven

This topic has 2 replies, 2 voices, and was last updated 4 years, 4 months ago by aazeem100.

  • Author
    Posts
  • #17232
     aazeem100
    Participant

    Hi,

    I am able to access http://maven.forgerock.org/repo/private-releases/ from the web browser after entering my backstage credentials, but when i try to access it from maven, i am getting the following Access Denied error:

    Could not transfer artifact org.forgerock.opendj:opendj-parent:pom:3.5.2 from/to forgerock-private-releases (http://maven.forgerock.org/repo/private-releases/): Access denied to: http://maven.forgerock.org/repo/private-releases/org/forgerock/opendj/opendj-parent/3.5.2/opendj-parent-3.5.2.pom , ReasonPhrase:Forbidden.s/

    Can someone please let me know where i am wrong? Here are my maven settings:

    <server>
    <id>forgerock-private-releases</id>
    <username>aazeem100</username>
    <password>mypassword</password>
    </server>
    <server>
    <id>forgerock-staging-repository</id>
    <username>aazeem100</username>
    <password>mypassword</password>
    </server>
    <server>
    <id>forgerock-plugins-repository</id>
    <username>aazeem100</username>
    <password>mypassword </password>
    </server>

    I also tried passing in the Base64 Encoded password without any luck:

    <server>
    <id>forgerock-private-releases</id>
    <configuration>
    <httpHeaders>
    <property>
    <name>Authorization</name>
    <value>Basic BASE64ENCODEDPASSWORD</value>
    </property>
    </httpHeaders>
    </configuration>
    </server>

    #17243
     b.lavit
    Participant

    Hi Arshad,

    I did a quick check in Artifactory (our Maven repository manager) and your user (aazeem100) has a read access on the private-releases repo.

    I’ve uploaded a template for the settings.xml file here:
    http://maven.forgerock.org/repo/private-releases/settings.xml

    Can you try to download this file in your ~/.m2 folder and make a new try?

    Thanks,
    Bruno, release engineering manager

    #17244
     aazeem100
    Participant

    I was able to download the artifacts from private-releases repo by generating the API key from https://maven.forgerock.org/repo/webapp/#/profile and passing it as a value for “X-JFrog-Art-Api” header. The other change I had to make was to add our organization’s proxy information to <proxies> tag in settings.xml.

    Here is my <server> entry in settings.xml:

    <server>
    <id>forgerock-private-releases</id>
    <configuration>
    <httpHeaders>
    <!– Pass the API Key generated from https://maven.forgerock.org/repo/webapp/#/profile as “X-JFrog-Art-Api” header –>
    <property>
    <name>X-JFrog-Art-Api</name>
    <value>MY_API_KEY_VALUE </value>
    </property>
    </httpHeaders>
    </configuration>
    </server>

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

©2021 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?