Solutions
ForgeRock Identity Platform
Does not apply to Identity Cloud

Could not transfer artifact org.forgerock.commons:commons-bom:pom error when building ForgeRock Identity Platform 6.5.x

Last updated May 25, 2022

The purpose of this article is to provide assistance if building AM, DS, IDM or IG from source fails with a "Non-resolvable import POM: Could not transfer artifact org.forgerock.commons:commons-bom:pom" error.


Symptoms

The following error is shown when the AM 6.5 build fails:

[ERROR] Non-resolvable import POM: Could not transfer artifact org.forgerock.commons:commons-bom:pom:24.0.1 from/to forgerock-internal-releases (http://maven.forgerock.org/artifactory/internal-releases): Not authorized , ReasonPhrase: Unauthorized. @ org.forgerock.am:openam-bom:6.5.0, /Users/workspace/openam/openam/openam-bom/pom.xml, line 39, column 25

A similar error will be shown for DS, IDM and IG.

Commons version

The commons version referenced in the error (24.0.1 in the above snippet) will depend on what version you are building.

Recent Changes

N/A

Causes

Changes have been made in ForgeRock Identity Platform 6.5 to utilize dependency repositories for all products. These dependency repositories include all third-party dependencies and ForgeRock dependencies; they are release-specific. The advantage of these repositories is that they contain exactly the same versions that were used to build the release initially and means you do not need to download third-party libraries from the internet.

Solution

This issue can be resolved by regenerating your settings.xml file. See How do I access the ForgeRock protected Maven repositories? for further information.

See Also

Source code in ForgeRock products

Related Training

N/A

Related Issue Tracker IDs

N/A


Copyright and Trademarks Copyright © 2022 ForgeRock, all rights reserved.