Maven build does not allow for aarch64 architecture and crashes on tests
Opened this issue · 2 comments
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]
Is this really docker related? To me it seems that this should fail even when being built by maven directly.
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.