I ran into similar errors the other day. Build as root until we figure this
out.

Andreas, I suspect this commit since the stacktrace indicates the problem
originates in com.github.veithen.hermetic.HermeticSecurityManager.

commit cb808543997b4e5c0fd66b1b8922374b1ae1ee7a
Author: Andreas Veithen <[email protected]>
Date:   Wed Dec 30 18:55:39 2020 +0000

    Execute tests hermetically

On Wed, Mar 10, 2021 at 3:50 AM Andrew Marlow <[email protected]>
wrote:

> Hello everyone,
>
> I just did a git clone to get the latest (what will presumably become
> 1.8.0) and tried "mvn install". I got the error shown below. I don't get it
> when I run the build as root but IMO building as root should not be a
> requirement.
>
> /home/marlowa/mystuff/axis2-build/latest-from-git/axis-axis2-java-core:
> cat
> /home/marlowa/mystuff/axis2-build/latest-from-git/axis-axis2-java-core/modules/tool/axis2-repo-maven-plugin/target/it/AXIS2-5782/build.log
> java.security.AccessControlException: access denied
> ("java.io.FilePermission" "/usr/share/maven/bin/m2.conf" "read")
> at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
> at
> java.security.AccessController.checkPermission(AccessController.java:886)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
> at
> com.github.veithen.hermetic.HermeticSecurityManager.checkPermission(HermeticSecurityManager.java:58)
> at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
> at java.io.FileInputStream.<init>(FileInputStream.java:127)
> at java.io.FileInputStream.<init>(FileInputStream.java:93)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:381)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
>
> --
> Regards,
>
> Andrew Marlow
> http://www.andrewpetermarlow.co.uk
>
>

Reply via email to