Maven build failing with 401 Unauthorized

This topic has 4 replies, 5 voices, and was last updated 5 years ago by [email protected].

  • Author
    Posts
  • #16452
     bikumar
    Participant

    Hi,

    I am trying to build OpenDJ source code using mvn clean install, but I am getting the following error.

    [[email protected] opendj-public]# mvn clean install
    [INFO] Scanning for projects…
    Downloading: http://maven.forgerock.org/repo/releases/org/forgerock/opendj/opendj-sdk-parent/3.0.0/opendj-sdk-parent-3.0.0.pom
    Downloading: https://repo.maven.apache.org/maven2/org/forgerock/opendj/opendj-sdk-parent/3.0.0/opendj-sdk-parent-3.0.0.pom
    [ERROR] [ERROR] Some problems were encountered while processing the POMs:
    [FATAL] Non-resolvable parent POM for org.forgerock.opendj:opendj-server-parent:3.0.0: Could not transfer artifact org.forgerock.opendj:opendj-sdk-parent:pom:3.0.0 from/to forgerock-staging-repository (http://maven.forgerock.org/repo/releases): Not authorized , ReasonPhrase:Unauthorized. and ‘parent.relativePath’ points at wrong local POM @ line 30, column 13
    @
    [ERROR] The build could not read 1 project -> [Help 1]
    [ERROR]
    [ERROR] The project org.forgerock.opendj:opendj-server-parent:3.0.0 (/mnt/Users/bikumar/OpenDJSourceCode/opendj-public/pom.xml) has 1 error
    [ERROR] Non-resolvable parent POM for org.forgerock.opendj:opendj-server-parent:3.0.0: Could not transfer artifact org.forgerock.opendj:opendj-sdk-parent:pom:3.0.0 from/to forgerock-staging-repository (http://maven.forgerock.org/repo/releases): Not authorized , ReasonPhrase:Unauthorized. and ‘parent.relativePath’ points at wrong local POM @ line 30, column 13 -> [Help 2]
    [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/ProjectBuildingException
    [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

    I have tried accessing http://maven.forgerock.org/repo/ using chrome and it is prompting to authenticate.

    I do not have the credentials, is there any way to build the project?

    Thanks,
    Sai

    #16458
     Ludo
    Moderator

    As discussed in another thread, the Maven repository is not accessible.

    Those with ForgeRock subscriptions should submit a support ticket, those without will need to wait a short while while we do some repository maintenance.

    #16616
     akgaurav1
    Participant

    Dear Ludo
    Good to see your reply.
    I am also facing the same error of Authentication while compiling OpenDJ source code.
    Are there any other maven mirror repository of OpenDJ which do not have authentication Issue??

    And also please let me know by when your repo maintenance will be completed and accessible to users.
    Actually i got stuck in my work.So please help to resolve this issue.

    Thanks in Advance!

    Regards
    Gaurav

    #17453
     rdoetjes
    Participant

    I have the same problem when I want to check out the archetypes for building a java connector.
    What is going on? This is impeding development.
    This keeps happening even when I added my username and password to the mvn settings.

    Also posting comments here seems to sometimes not work.

    • This reply was modified 5 years, 2 months ago by rdoetjes.
    #18341

    Dear Ludo

    I’m suffering the same issue. It would be highly appreciated. any update or ETA ?

    Many thanks.

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

You must be logged in to reply to this topic.

©2022 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?