WrenSecurity / wrenam

Community fork of OpenAM, an authentication and authorization system originally developed by ForgeRock.
Other
43 stars 27 forks source link

Maven build does not allow for aarch64 architecture and crashes on tests #79

Open minnoroth opened 1 year ago

minnoroth commented 1 year ago

At the moment, docker has no emulation for aarch64 architecture running Apple Silicon chips. When i try to run Wren:AM via docker, build fails.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-test) on project openam-installtools: There are test failures.

`[ERROR] com.sun.identity.install.tools.util.OSCheckerTest.testArchitecture Time elapsed: 0.005 s <<< FAILURE!

12 175.6 java.lang.AssertionError: Expected aarch64 to be one of [i386, i686, x86, x86_64, amd64, PowerPC, ppc, ppc64, sparc] expected [1] but found [0]`

pavelhoral commented 1 year ago

Is this really docker related? To me it seems that this should fail even when being built by maven directly.

minnoroth commented 1 year ago

As @pavelhoral truthfully mentioned above, this is not docker related.

The maven build crashes on: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-test) on project openam-installtools: There are test failures

The most probable cause is that my aarch64 (linux/arm64/v8) architecture is not registered in the project and therefore the com.sun.identity.install.tools.util.OSCheckerTest.testArchitecture causes the build to crash.