This topic has 35 replies, 8 voices, and was last updated 5 years, 6 months ago by Sarankon Hiranphonlakrit.

  • Author
    Posts
  • #14355

    I can’t build OpenIDM 4.0.0, Some one please help.
    Thank you.
    ————————————————–

    Results :

    Failed tests:
    BundleHandlerTest.testUpdateBundle:234 ╗ InvalidPath Illegal char <:> at index…
    StaticFileUpdateTest.testReplaceDiffers:139 ╗ UnsupportedOperation
    StaticFileUpdateTest.testReplaceIsUnchanged:123 ╗ UnsupportedOperation

    Tests run: 23, Failures: 3, Errors: 0, Skipped: 0

    [INFO] ————————————————————————
    [INFO] Reactor Summary:
    [INFO]
    [INFO] OpenIDM project ……………………………… SUCCESS [ 3.828 s]
    [INFO] OpenIDM System Bundle ………………………… SUCCESS [ 9.288 s]
    [INFO] OpenIDM SmartEvent Bundle …………………….. SUCCESS [ 5.110 s]
    [INFO] OpenIDM Utility Bundle ……………………….. SUCCESS [ 6.700 s]
    [INFO] OpenIDM Router Bundle ………………………… SUCCESS [ 6.530 s]
    [INFO] OpenIDM Cryptography Bundle …………………… SUCCESS [ 3.456 s]
    [INFO] OpenIDM Enhanced Configuration Bundle ………….. SUCCESS [ 2.821 s]
    [INFO] OpenIDM repository common …………………….. SUCCESS [ 3.980 s]
    [INFO] OpenIDM Cluster Management Bundle ……………… SUCCESS [ 6.191 s]
    [INFO] OpenIDM Quartz Fragment ………………………. SUCCESS [ 4.167 s]
    [INFO] OpenIDM Core Bundle ………………………….. SUCCESS [ 12.640 s]
    [INFO] OpenIDM Audit Bundle …………………………. SUCCESS [ 7.366 s]
    [INFO] OpenIDM Configuration Bundle ………………….. SUCCESS [ 5.892 s]
    [INFO] OpenIDM External Email Bundle …………………. SUCCESS [ 3.385 s]
    [INFO] OpenIDM External REST Bundle ………………….. SUCCESS [ 1.018 s]
    [INFO] OpenIDM HTTP Bundle ………………………….. SUCCESS [ 17.234 s]
    [INFO] OpenIDM Script Bundle ………………………… SUCCESS [ 6.978 s]
    [INFO] OpenIDM Info Bundle ………………………….. SUCCESS [ 1.975 s]
    [INFO] OpenIDM Custom Endpoints Bundle ……………….. SUCCESS [ 1.745 s]
    [INFO] OpenIDM Jetty Fragment ……………………….. SUCCESS [ 0.884 s]
    [INFO] OpenIDM Policy Bundle ………………………… SUCCESS [ 1.099 s]
    [INFO] OpenIDM Provisioner System Bundle ……………… SUCCESS [ 3.711 s]
    [INFO] OpenIDM Provisioner System Bundle – OpenICF …….. SUCCESS [ 42.021 s]
    [INFO] OpenIDM Repository Bundle – JDBC ………………. SUCCESS [ 8.150 s]
    [INFO] OpenIDM Repository Bundle – OrientDB …………… SUCCESS [ 35.947 s]
    [INFO] OpenIDM servlet filter/filter registration handler . SUCCESS [ 1.525 s]
    [INFO] OpenIDM API servlet ………………………….. SUCCESS [ 5.921 s]
    [INFO] OpenIDM Authentication Filter …………………. SUCCESS [ 5.954 s]
    [INFO] OpenIDM Web Servlet ………………………….. SUCCESS [ 0.911 s]
    [INFO] OpenIDM scheduler ……………………………. SUCCESS [ 5.085 s]
    [INFO] OpenIDM fragment for jetty security ……………. SUCCESS [ 0.689 s]
    [INFO] OpenIDM Self-Service Bundle …………………… SUCCESS [ 1.590 s]
    [INFO] OpenIDM Felix Gogo Shell ……………………… SUCCESS [ 5.864 s]
    [INFO] OpenIDM security service ……………………… SUCCESS [ 6.798 s]
    [INFO] OpenIDM UI Parent ……………………………. SUCCESS [ 0.038 s]
    [INFO] OpenIDM UI Common ……………………………. SUCCESS [ 10.506 s]
    [INFO] OpenIDM UI Admin …………………………….. SUCCESS [ 53.262 s]
    [INFO] OpenIDM UI End-user ………………………….. SUCCESS [ 18.627 s]
    [INFO] OpenIDM Activiti BPMN 2.0 Integration ………….. SUCCESS [ 11.529 s]
    [INFO] OpenIDM Base Patch …………………………… SUCCESS [ 2.344 s]
    [INFO] OpenIDM maintenance, upgrade, and patching handler . FAILURE [ 24.416 s]
    [INFO] Custom Scripted Groovy Connector Bundler ……….. SKIPPED
    [INFO] OpenIDM ZIP file assembly …………………….. SKIPPED
    [INFO] ————————————————————————
    [INFO] BUILD FAILURE
    [INFO] ————————————————————————
    [INFO] Total time: 06:02 min
    [INFO] Finished at: 2016-11-19T20:16:31+07:00
    [INFO] Final Memory: 104M/511M
    [INFO] ————————————————————————
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project openidm-maintenance: There are test failures.
    [ERROR]
    [ERROR] Please refer to C:\Forgerock\OpenIDM-4.0.0\openidm-public\openidm-maintenance\target\surefire-reports for the individual test results.
    [ERROR] -> [Help 1]
    [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/MojoFailureException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn <goals> -rf :openidm-maintenance

    #14358
     Mike Jang
    Spectator

    Hi,

    I see that your error message

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project openidm-maintenance: There are test failures.

    relates to test failures. When such tests are not important to me, I include -DskipTests=true in my build command (ref http://maven.apache.org/surefire/maven-surefire-plugin/examples/skipping-test.html).

    Thanks,
    Mike

    #14359
     Jake Feasel
    Moderator

    IIRC there are problems with building on windows. I suggest building on a *nix system.

    #14361

    Thank you, I will try.

    #14380

    When I Build in linux

    [INFO] ————————————————————————
    [INFO] Reactor Summary:
    [INFO]
    [INFO] OpenIDM project ……………………………… SUCCESS [ 0.657 s]
    [INFO] OpenIDM System Bundle ………………………… SUCCESS [02:11 min]
    [INFO] OpenIDM SmartEvent Bundle …………………….. SUCCESS [01:22 min]
    [INFO] OpenIDM Utility Bundle ……………………….. FAILURE [01:08 min]
    [INFO] OpenIDM Router Bundle ………………………… SKIPPED
    [INFO] OpenIDM Cryptography Bundle …………………… SKIPPED
    [INFO] OpenIDM Enhanced Configuration Bundle ………….. SKIPPED
    [INFO] OpenIDM repository common …………………….. SKIPPED
    [INFO] OpenIDM Cluster Management Bundle ……………… SKIPPED
    [INFO] OpenIDM Quartz Fragment ………………………. SKIPPED
    [INFO] OpenIDM Core Bundle ………………………….. SKIPPED
    [INFO] OpenIDM Audit Bundle …………………………. SKIPPED
    [INFO] OpenIDM Configuration Bundle ………………….. SKIPPED
    [INFO] OpenIDM External Email Bundle …………………. SKIPPED
    [INFO] OpenIDM External REST Bundle ………………….. SKIPPED
    [INFO] OpenIDM HTTP Bundle ………………………….. SKIPPED
    [INFO] OpenIDM Script Bundle ………………………… SKIPPED
    [INFO] OpenIDM Info Bundle ………………………….. SKIPPED
    [INFO] OpenIDM Custom Endpoints Bundle ……………….. SKIPPED
    [INFO] OpenIDM Jetty Fragment ……………………….. SKIPPED
    [INFO] OpenIDM Policy Bundle ………………………… SKIPPED
    [INFO] OpenIDM Provisioner System Bundle ……………… SKIPPED
    [INFO] OpenIDM Provisioner System Bundle – OpenICF …….. SKIPPED
    [INFO] OpenIDM Repository Bundle – JDBC ………………. SKIPPED
    [INFO] OpenIDM Repository Bundle – OrientDB …………… SKIPPED
    [INFO] OpenIDM servlet filter/filter registration handler . SKIPPED
    [INFO] OpenIDM API servlet ………………………….. SKIPPED
    [INFO] OpenIDM Authentication Filter …………………. SKIPPED
    [INFO] OpenIDM Web Servlet ………………………….. SKIPPED
    [INFO] OpenIDM scheduler ……………………………. SKIPPED
    [INFO] OpenIDM fragment for jetty security ……………. SKIPPED
    [INFO] OpenIDM Self-Service Bundle …………………… SKIPPED
    [INFO] OpenIDM Felix Gogo Shell ……………………… SKIPPED
    [INFO] OpenIDM security service ……………………… SKIPPED
    [INFO] OpenIDM UI Parent ……………………………. SKIPPED
    [INFO] OpenIDM UI Common ……………………………. SKIPPED
    [INFO] OpenIDM UI Admin …………………………….. SKIPPED
    [INFO] OpenIDM UI End-user ………………………….. SKIPPED
    [INFO] OpenIDM Activiti BPMN 2.0 Integration ………….. SKIPPED
    [INFO] OpenIDM Base Patch …………………………… SKIPPED
    [INFO] OpenIDM maintenance, upgrade, and patching handler . SKIPPED
    [INFO] Custom Scripted Groovy Connector Bundler ……….. SKIPPED
    [INFO] OpenIDM ZIP file assembly …………………….. SKIPPED
    [INFO] ————————————————————————
    [INFO] BUILD FAILURE
    [INFO] ————————————————————————
    [INFO] Total time: 04:44 min
    [INFO] Finished at: 2016-11-22T15:40:45+07:00
    [INFO] Final Memory: 47M/391M
    [INFO] ————————————————————————
    [ERROR] Failed to execute goal on project openidm-util: Could not resolve dependencies for project org.forgerock.openidm:openidm-util:bundle:4.0.0: The following artifacts could not be resolved: javax.activation:activation:jar:1.1, org.apache.servicemix.bundles:org.apache.servicemix.bundles.javax-inject:jar:1_2, commons-codec:commons-codec:jar:1.8, org.apache.commons:commons-lang3:jar:3.4, org.apache.servicemix.bundles:org.apache.servicemix.bundles.rhino:jar:1.7R4_1: Could not transfer artifact javax.activation:activation:jar:1.1 from/to maven-restlet (http://maven.restlet.org): maven.restlet.org: No address associated with hostname -> [Help 1]
    [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/DependencyResolutionException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn <goals> -rf :openidm-util

    #14421

    I back to Windows and build with out maintenance, upgrade, and patching handler module.
    It work.
    Thank You.

    #14554
     tfreeman
    Participant

    How did you skip the maintenance, upgrade, and patching handler module in your build? I’m having the same issue.

    #14555

    I build in windows and comment “maintenance, upgrade, and patching handler module”.

    #14611
     dowdenc
    Participant

    Building on MacOS shows the same problem:

    [INFO] ————————————————————————
    [INFO] Building OpenIDM maintenance, upgrade, and patching handler 4.0.0
    [INFO] ————————————————————————
    [INFO] ————————————————————————
    [INFO] Reactor Summary:
    [INFO]
    [INFO] OpenIDM project ……………………………… SUCCESS [ 0.812 s]
    [INFO] OpenIDM System Bundle ………………………… SUCCESS [ 3.901 s]
    [INFO] OpenIDM SmartEvent Bundle …………………….. SUCCESS [ 2.483 s]
    [INFO] OpenIDM Utility Bundle ……………………….. SUCCESS [ 3.336 s]
    [INFO] OpenIDM Router Bundle ………………………… SUCCESS [ 1.765 s]
    [INFO] OpenIDM Cryptography Bundle …………………… SUCCESS [ 1.689 s]
    [INFO] OpenIDM Enhanced Configuration Bundle ………….. SUCCESS [ 1.190 s]
    [INFO] OpenIDM repository common …………………….. SUCCESS [ 1.478 s]
    [INFO] OpenIDM Cluster Management Bundle ……………… SUCCESS [ 3.895 s]
    [INFO] OpenIDM Quartz Fragment ………………………. SUCCESS [ 1.443 s]
    [INFO] OpenIDM Core Bundle ………………………….. SUCCESS [ 5.571 s]
    [INFO] OpenIDM Audit Bundle …………………………. SUCCESS [ 17.428 s]
    [INFO] OpenIDM Configuration Bundle ………………….. SUCCESS [ 7.880 s]
    [INFO] OpenIDM External Email Bundle …………………. SUCCESS [ 3.383 s]
    [INFO] OpenIDM External REST Bundle ………………….. SUCCESS [ 0.998 s]
    [INFO] OpenIDM HTTP Bundle ………………………….. SUCCESS [ 0.631 s]
    [INFO] OpenIDM Script Bundle ………………………… SUCCESS [ 6.406 s]
    [INFO] OpenIDM Info Bundle ………………………….. SUCCESS [ 0.516 s]
    [INFO] OpenIDM Custom Endpoints Bundle ……………….. SUCCESS [ 0.442 s]
    [INFO] OpenIDM Jetty Fragment ……………………….. SUCCESS [ 0.288 s]
    [INFO] OpenIDM Policy Bundle ………………………… SUCCESS [ 0.619 s]
    [INFO] OpenIDM Provisioner System Bundle ……………… SUCCESS [ 1.939 s]
    [INFO] OpenIDM Provisioner System Bundle – OpenICF …….. SUCCESS [ 27.071 s]
    [INFO] OpenIDM Repository Bundle – JDBC ………………. SUCCESS [ 3.259 s]
    [INFO] OpenIDM Repository Bundle – OrientDB …………… SUCCESS [ 6.712 s]
    [INFO] OpenIDM servlet filter/filter registration handler . SUCCESS [ 0.947 s]
    [INFO] OpenIDM API servlet ………………………….. SUCCESS [ 4.232 s]
    [INFO] OpenIDM Authentication Filter …………………. SUCCESS [ 3.544 s]
    [INFO] OpenIDM Web Servlet ………………………….. SUCCESS [ 0.400 s]
    [INFO] OpenIDM scheduler ……………………………. SUCCESS [ 3.413 s]
    [INFO] OpenIDM fragment for jetty security ……………. SUCCESS [ 0.305 s]
    [INFO] OpenIDM Self-Service Bundle …………………… SUCCESS [ 0.554 s]
    [INFO] OpenIDM Felix Gogo Shell ……………………… SUCCESS [ 3.013 s]
    [INFO] OpenIDM security service ……………………… SUCCESS [ 5.673 s]
    [INFO] OpenIDM UI Parent ……………………………. SUCCESS [ 0.044 s]
    [INFO] OpenIDM UI Common ……………………………. SUCCESS [ 5.984 s]
    [INFO] OpenIDM UI Admin …………………………….. SUCCESS [ 29.002 s]
    [INFO] OpenIDM UI End-user ………………………….. SUCCESS [ 10.248 s]
    [INFO] OpenIDM Activiti BPMN 2.0 Integration ………….. SUCCESS [ 6.233 s]
    [INFO] OpenIDM Base Patch …………………………… SUCCESS [ 1.152 s]
    [INFO] OpenIDM maintenance, upgrade, and patching handler . FAILURE [ 0.032 s]
    [INFO] Custom Scripted Groovy Connector Bundler ……….. SKIPPED
    [INFO] OpenIDM ZIP file assembly …………………….. SKIPPED
    [INFO] ————————————————————————
    [INFO] BUILD FAILURE
    [INFO] ————————————————————————
    [INFO] Total time: 03:02 min
    [INFO] Finished at: 2016-12-01T12:53:50-05:00
    [INFO] Final Memory: 181M/581M
    [INFO] ————————————————————————
    [ERROR] Failed to execute goal on project openidm-maintenance: Could not resolve dependencies for project org.forgerock.openidm:openidm-maintenance:bundle:4.0.0: Failed to collect dependencies at org.forgerock.commons:launcher:jar:1.2.0: Failed to read artifact descriptor for org.forgerock.commons:launcher:jar:1.2.0: Failure to find org.forgerock.commons:forgerock-bom:pom:1.0.0-SNAPSHOT in https://oss.sonatype.org/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of oss.sonatype.org has elapsed or updates are forced -> [Help 1]
    [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/DependencyResolutionException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn <goals> -rf :openidm-maintenance

    #14613

    in openidm-public at file pom.xml I comment this
    <module>openidm-maintenance</module>
    to
    <!–module>openidm-maintenance</module–>
    and rebuild it work for me

    #14615

    but, I’m not sure it can work correctly

    #15192
     CSanchezAustin
    Participant

    I am having a same problem in Linux. In my case I have a brand new Ubuntu 16.04 environment that I attempt to build OpenIDM. Here are the steps.

    sudo apt-get install default-jdk
    sudo apt-get install git
    sudo apt-get install maven
    git clone https://stash.forgerock.org/scm/openidm/openidm-public.git

    [email protected]:~/openidm-public$ mvn -version
    Apache Maven 3.3.9
    Maven home: /usr/share/maven
    Java version: 1.8.0_111, vendor: Oracle Corporation
    Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
    Default locale: en_US, platform encoding: UTF-8
    OS name: “linux”, version: “4.4.0-36-generic”, arch: “amd64”, family: “unix”

    cd openidm-public
    git checkout master # (fyi – I also tried git checkout -b releases/4.0.0 4.0.0)
    mvn clean install

    And I get the following errors:

    [INFO] OpenIDM Base Patch …………………………… SUCCESS [ 1.390 s]
    [INFO] OpenIDM maintenance, upgrade, and patching handler . FAILURE [ 0.081 s]
    [INFO] Custom Scripted Groovy Connector Bundler ……….. SKIPPED
    [INFO] OpenIDM ZIP file assembly …………………….. SKIPPED
    [INFO] ————————————————————————
    [INFO] BUILD FAILURE
    [INFO] ————————————————————————
    [INFO] Total time: 02:49 min
    [INFO] Finished at: 2017-01-05T17:18:24-06:00
    [INFO] Final Memory: 79M/235M
    [INFO] ————————————————————————
    [ERROR] Failed to execute goal on project openidm-maintenance: Could not resolve dependencies for project org.forgerock.openidm:openidm-maintenance:bundle:4.0.0: Failed to collect dependencies at org.forgerock.commons:launcher:jar:1.2.0: Failed to read artifact descriptor for org.forgerock.commons:launcher:jar:1.2.0: Failure to find org.forgerock.commons:forgerock-bom:pom:1.0.0-SNAPSHOT in https://oss.sonatype.org/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of oss.sonatype.org has elapsed or updates are forced -> [Help 1]
    [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/DependencyResolutionException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn <goals> -rf :openidm-maintenance

    Any ideas? I also tried to build on Mac OS X sierra with the exact same error.

    #15199
     tfreeman
    Participant

    Sarankon’s solution worked for me. You have to edit the pom.xml to exclude openidm-maintenance module.

    Change: <module>openidm-maintenance</module> to: <!–<module>openidm-maintenance</module>–>

    #15200

    Please try this

    use this repo
    $git clone https://stash.forgerock.org/scm/openidm/openidm-public.git

    edit line 301 at pom.xml comment like this, remove openidm-maintenance
    <!–module>openidm-maintenance</module–>

    use this command to build
    $git checkout -b releases/4.0.0 4.0.0
    $mvn clean install > build.log

    #15203
     CSanchezAustin
    Participant

    Yes, that will work around the problem, but that’s not really a fix. Is this module not supported? Out of the box OpenIDM can’t be built without changing the source. That’s bad. This needs to be fixed.

Viewing 15 posts - 1 through 15 (of 36 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?