Failed to execute goal org. Apache. Maven. plugins: Maven-war-plugin: 2.1: War

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.