Switch from open-JDK to Sun JDK
After the project is checked out on the new Linux server today, the following problem occurs:
[Error] failed to execute goal Org. apache. maven. plugins: Maven-war-plugin: 2.1: War (default-war) on Project rendezvous: Error Handling ing war: failed to read filesystem attributes: /opt/dev1/test/target/test/WEB-INF/web. XML: failed to retrieve numeric file attributes using: '/bin/sh-C l s-1 nglad/opt/dev1/test/target/test/WEB-INF/web. XML ': Error while executing process. cannot run program "/bin/sh": Java. io. ioexception: Err OR = 12, cannot allocate memory-> [help 1]
Org. apache. maven. lifecycle. lifecycleexecutionexception: failed to execute goal Org. apache. maven. plugins: Maven-war-plugin: 2.1: War (default-war) on proj ect rendezvous: Error Handling ing war: failed to read filesystem attributes: /opt/dev1/test/target/dev1/WEB-INF/web. XML
At org.apache.maven.lifecycle.internal.mojoexecutor.exe cute (mojoexecutor. Java: 217)
At org.apache.maven.lifecycle.internal.mojoexecutor.exe cute (mojoexecutor. Java: 153)
At org.apache.maven.lifecycle.internal.mojoexecutor.exe cute (mojoexecutor. Java: 145)
At org. Apache. Maven. lifecycle. Internal. lifecyclemodulebuilder. buildproject (lifecyclemodulebuilder. Java: 84)
Google did not find any useful information in a circle, and finally asked the maven cool-man to guess it was caused by JDK. Because I installed open JDK. So I unmounted open JDK and downloaded and installed Sun JDK with a try attitude. Run MVN package-dmaven. Test. Skip = true, and the build success is displayed.
I suddenly remembered that there were other problems with open JDK, and sun was replaced. SoWe do not recommend you use OPEN-JDK.