On Fri, 26 Feb 2021 at 15:26, robertlazarski <[email protected]> wrote:
> That's a maven error beyond the scope of axis2, but anyways what do these > commands show? > > ls -l /etc/maven/m2.conf > whoami > groups > On my linux mint 20 machine that file is a symbolic link to /etc/maven/m2.conf, a file to which everyone has read access. I've also updated the jre java security policy config to give everyone read access to this file. It makes no difference. > On Thu, Feb 25, 2021 at 11:45 PM Andrew Marlow <[email protected]> > wrote: > >> Hello Robert, thank you for your quick reply. But now there is another >> problem: >> >> I just tried building the latest via git clone and got this weird >> permission error: >> >> Building: AXIS2-5782/pom.xml >> The build exited with code 100. See >> /home/marlowa/mystuff/axis2-build/latest-from-git/axis-axis2-java-core/modules/tool/axis2-repo-maven-plugin/target/it/AXIS2-5782/build.log >> for details. >> AXIS2-5782/pom.xml ............................... FAILED >> >> That logfile has this error in it: >> >> java.security.AccessControlException: access denied >> ("java.io.FilePermission" "/usr/share/maven/bin/m2.conf" "read") >> >> On my linux mint 20 machine that file is a symbolic link to >> /etc/maven/m2.conf, a file to which everyone has read access. >> I have a feeling that the permissioned denied error is due to the >> violation of some java security policy, maybe because it requires access to >> this file which is outside of the build directory. Does anyone have any >> ideas please? >> >> >> On Thu, 25 Feb 2021 at 15:37, robertlazarski <[email protected]> >> wrote: >> >>> Axis2 1.7.9 will not build on JDK 11 for a few reasons such as the >>> removal of XDoclet. >>> >>> The latest Axis2 trunk from our git repo does build on JDK 11 ... maybe >>> later too, I haven't got to that yet. >>> >>> git clone https://github.com/apache/axis-axis2-java-core.git >>> >>> Currently in git the Javac source is set to 1.7, I tried setting it to >>> 1.8 and it built fine for me on JDK 11. >>> >>> I can't think of a good reason not to bump the source requirement up to >>> 1.8 so if there are no objections on this list I suggest we do that. >>> >>> >>> On Thu, Feb 25, 2021 at 4:12 AM Andrew Marlow <[email protected]> >>> wrote: >>> >>>> Hello everyone, >>>> >>>> I just tried to build axis2 1.7.9 on linux with openJDK11. I am running >>>> into some problems and need a little help/guidance please. >>>> >>>> First, I saw that in the top level pom we have: >>>> >>>> <plugin> >>>> <artifactId>maven-compiler-plugin</artifactId> >>>> <inherited>true</inherited> >>>> <configuration> >>>> <source>1.5</source> >>>> <target>1.5</target> >>>> </configuration> >>>> </plugin> >>>> >>>> I had to change the 1.5 to 1.8. Then I got the error: >>>> >>>> [ERROR] >>>> /home/marlowa/mystuff/axis2-build/axis2-1.7.9/modules/adb/src/org/apache/axis2/rpc/receivers/ejb/EJBUtil.java:[161,37] >>>> package javax.rmi does not exist >>>> >>>> I note that rmi is removed in JDK11. Does this mean that axis2 must be >>>> built in older versions, e.g. 1.8? >>>> >>>> -- >>>> Regards, >>>> >>>> Andrew Marlow >>>> http://www.andrewpetermarlow.co.uk >>>> >>>> >> >> -- >> Regards, >> >> Andrew Marlow >> http://www.andrewpetermarlow.co.uk >> >> -- Regards, Andrew Marlow http://www.andrewpetermarlow.co.uk
