OpenWIS / open-dj-am-install-scripts

0 stars 1 forks source link

Unable To Compile #8

Closed mgiannoni closed 6 years ago

mgiannoni commented 7 years ago

Attempt to compile OpenDJ:

[ivy:retrieve] http://download.oracle.com/maven/org/forgerock/opendj/opendj-server2x-adapter/2.6.0/opendj-server2x-adapter-2.6.0.pom [ivy:retrieve] -- artifact org.forgerock.opendj#opendj-server2x-adapter;2.6.0!opendj-server2x-adapter.jar: [ivy:retrieve] http://download.oracle.com/maven/org/forgerock/opendj/opendj-server2x-adapter/2.6.0/opendj-server2x-adapter-2.6.0.jar [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve] :: UNRESOLVED DEPENDENCIES :: [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve] :: org.forgerock.opendj#opendj-rest2ldap-servlet;2.6.0: not found [ivy:retrieve] :: org.forgerock.opendj#opendj-server2x-adapter;2.6.0: not found [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve] [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

Attempt to compile OpenAM:

[ERROR] Failed to execute goal on project openam-shared: Could not resolve dependencies for project org.forgerock.openam:openam-shared:jar:12.0.0: Failed to collect dependencies at org.forgerock.commons:json-fluent:jar:2.4.2: Failed to read artifact descriptor for org.forgerock.commons:json-fluent:jar:2.4.2: Could not transfer artifact org.forgerock.commons:json-fluent:pom:2.4.2 from/to forgerock-staging-repo (http://maven.forgerock.org/repo/releases): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]

There is a thread about about a similar problem compiling OpenAM and OpenDJ on the ForgeRock community:

https://forum.forgerock.com/topic/openam-source-code-compilation-error/

Since the ForgeRock products support a community version, the dounload and build should be allowed (doesn't break any licensing). There are two links in the thread to scripts that can perform the compile. They appear to build up the various components from several public GitHub resources, and avoid the authorization barrier.

OpenDJ Build: https://gist.github.com/aldaris/fe234d76f3940c42ae9bb5aa69b8e98e

OpenAM Build: https://gist.github.com/aldaris/6a630fb77ada352f4b3bb5f1144892df

mgiannoni commented 7 years ago

These two scripts appear to work. You may be interested in examining what they produce:

./openam/openam-public/openam-server/target/OpenAM-13.0.0.war ./openam/openam-public/openam-console/target/openam-console-13.0.0.war ./openam/openam-public/openam-server-only/target/OpenAM-ServerOnly-13.0.0.war ./openam/openam-public/openam-distribution/openam-distribution-fedlet-unconfigured/target/Fedlet-13.0.0.war ./openam/openam-public/openam-examples/openam-example-clientsdk-war/target/ExampleClientSDK-WAR-13.0.0.war ./openam/openam-public/openam-sts/openam-soap-sts/openam-soap-sts-server/target/openam-soap-sts-server-13.0.0.war ./openam/openam-public/openam-federation/OpenFM/target/test-classes/com/sun/identity/workflow/slim-openam-soap-sts-server.war ./openam/openam-public/openam-federation/OpenFM/src/test/resources/com/sun/identity/workflow/slim-openam-soap-sts-server.war ./openam/openam-public/openam-federation/openam-idpdiscovery-war/target/IDPDiscovery-13.0.0.war ./commons/forgerock-selfservice-public/forgerock-selfservice-example/target/forgerock-selfservice-example-1.0.3-servlet.war ./commons/forgerock-rest-public/json-resource-examples/target/json-resource-examples-4.0.3-servlet.war ./commons/forgerock-audit-public/forgerock-audit-servlet/target/forgerock-audit-servlet-4.1.1-servlet.war ./commons/forgerock-http-framework-public/http-examples/http-servlet-example/target/chf-http-servlet-example-3.0.1.war ./commons/forgerock-auth-filters-public/forgerock-authz-filter-parent/authz-framework-functional-tests/target/deploy/webapps/authz-framework.war ./commons/forgerock-auth-filters-public/forgerock-authz-filter-parent/authz-framework-functional-tests/target/deploy/webapps/cargocpc.war ./commons/forgerock-auth-filters-public/forgerock-authz-filter-parent/authz-framework-functional-tests/target/authz-framework.war ./commons/forgerock-auth-filters-public/forgerock-authz-filter-parent/authz-framework-functional-tests/target/extracts/apache-tomcat-7.0.47/apache-tomcat-7.0.47/webapps/docs/appdev/sample/sample.war ./opendj/opendj-public/opendj-dsml-servlet/target/OpenDJ-3.0.0-DSML.war ./opendj/opendj-public/opendj-rest2ldap-servlet/target/opendj-rest2ldap-servlet-3.0.0.war

rogers492 commented 7 years ago

Hi @mgiannoni Isn't this the ForgeRock closed repo problem?

mgiannoni commented 7 years ago

Paul:

Yes, I think so. The same problem is there for the ForgeRock's external developers - the community developers. So.... A ForgeRock (internal) developer responded with two scripts, one for OpenDJ and another for OpenAM which can successfully compile the system. Unfortunately, these are for OpenDJ-3.0.0 and OpenAM-13.0.0. I was not able to compile OpenAM-12.0.0, but I'm sure it's possible given the correct combination of repos and branches.

ForgeRock apparently closed their Maven repo, and now has all the sources available GitHub. These scripts use a series of git repositories plus a combination of different branches to perform the build. Have a look at the scripts, the collection of source components is not trivial.

I went ahead with a OpenDJ-3.0/OpenAM-13.0.0 deployment using Maven-3 and Java-8. The build with the newer ForgeRock components is successful with only one small change to a file I recognize from the last Java update. The authentication system appears to work, but I have one additional problem with the portal servelet process. (I ran the authentication tests with a portal running on Java-7.)

Question for you: Would you be interested in having this in the 3.14.8 release? I know this is a big change and will require some testing before we know everything is working.

On Fri, May 12, 2017 at 6:29 AM, Paul Rogers notifications@github.com wrote:

Hi @mgiannoni https://github.com/mgiannoni Isn't this the ForgeRock closed repo problem?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/OpenWIS/open-dj-am-install-scripts/issues/8#issuecomment-301042363, or mute the thread https://github.com/notifications/unsubscribe-auth/APFifmyjgi3mqgeUfJtz0-TsYzDC6MOHks5r5DSRgaJpZM4NYdwU .

rogers492 commented 6 years ago

Closed by PR for : https://github.com/OpenWIS/openwis/issues/278