Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-16792

build for example authentication module fails

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6.5.2.3
    • Fix Version/s: None
    • Component/s: samples
    • Labels:
      None
    • Support Ticket IDs:

      Description

      Bug description

      Building the example authentication modules fails

      How to reproduce the issue

      1. Update maven settings.xml as documented in https://backstage.forgerock.com/knowledge/kb/article/a74096897
      2. Clone am-external git repository as documented in https://backstage.forgerock.com/knowledge/kb/article/a77633100#accesssource
      3. Checkout branch 'releases/6.5.2.3'
      4. Change into directory 'openam-samples/custom-authentication-module'
      5. Run 'mvn clean install'
      Expected behaviour
      Maven build should succeed.
      
      Current behaviour
      Maven build fails.
      
      Excerpt from build log
      ...
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.493 s
      [INFO] Finished at: 2020-09-15T08:39:11+02:00
      [INFO] Final Memory: 39M/397M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project custom-authentication-module: Compilation failure: Compilation failure:
      [ERROR] /Users/bernhard.thalmayr/workspace/am-external/openam-samples/custom-authentication-module/src/main/java/org/forgerock/openam/examples/SampleAuthPlugin.java:[19,36] cannot find symbol
      [ERROR]   symbol:   class AmPlugin
      [ERROR]   location: package org.forgerock.openam.plugins
      [ERROR] /Users/bernhard.thalmayr/workspace/am-external/openam-samples/custom-authentication-module/src/main/java/org/forgerock/openam/examples/SampleAuthPlugin.java:[20,36] cannot find symbol
      [ERROR]   symbol:   class PluginException
      [ERROR]   location: package org.forgerock.openam.plugins
      [ERROR] /Users/bernhard.thalmayr/workspace/am-external/openam-samples/custom-authentication-module/src/main/java/org/forgerock/openam/examples/SampleAuthPlugin.java:[21,36] cannot find symbol
      [ERROR]   symbol:   class PluginTools
      [ERROR]   location: package org.forgerock.openam.plugins
      [ERROR] /Users/bernhard.thalmayr/workspace/am-external/openam-samples/custom-authentication-module/src/main/java/org/forgerock/openam/examples/SampleAuthPlugin.java:[29,42] cannot find symbol
      [ERROR]   symbol: class AmPlugin
      [ERROR] /Users/bernhard.thalmayr/workspace/am-external/openam-samples/custom-authentication-module/src/main/java/org/forgerock/openam/examples/SampleAuthPlugin.java:[31,13] cannot find symbol
      [ERROR]   symbol:   class PluginTools
      [ERROR]   location: class org.forgerock.openam.examples.SampleAuthPlugin
      [ERROR] /Users/bernhard.thalmayr/workspace/am-external/openam-samples/custom-authentication-module/src/main/java/org/forgerock/openam/examples/SampleAuthPlugin.java:[34,29] cannot find symbol
      [ERROR]   symbol:   class PluginTools
      [ERROR]   location: class org.forgerock.openam.examples.SampleAuthPlugin
      [ERROR] /Users/bernhard.thalmayr/workspace/am-external/openam-samples/custom-authentication-module/src/main/java/org/forgerock/openam/examples/SampleAuthPlugin.java:[44,36] cannot find symbol
      [ERROR]   symbol:   class PluginException
      [ERROR]   location: class org.forgerock.openam.examples.SampleAuthPlugin
      [ERROR] /Users/bernhard.thalmayr/workspace/am-external/openam-samples/custom-authentication-module/src/main/java/org/forgerock/openam/examples/SampleAuthPlugin.java:[38,5] method does not override or implement a method from a supertype
      [ERROR] /Users/bernhard.thalmayr/workspace/am-external/openam-samples/custom-authentication-module/src/main/java/org/forgerock/openam/examples/SampleAuthPlugin.java:[43,5] method does not override or implement a method from a supertype
      ...
      

      Work around

      Update pom.xml with dependency

              <dependency>
                  <groupId>org.forgerock.am</groupId>
                  <artifactId>openam-plugin-framework</artifactId>
              </dependency>
      

      Code analysis

      openam-samples/custom-authentication-module/pom.xml
      ...
          <dependencies>
      ...
              <dependency>
                  <groupId>org.forgerock.am</groupId>
                  <artifactId>openam-plugin-framework</artifactId>
              </dependency>
      ...
      </dependencies>
      ...
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bthalmayr Bernhard Thalmayr
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: