Cannot change version of project facet ear to 1.3 maven error in eclipse?

Jhansi Gupta picture Jhansi Gupta · Oct 5, 2015 · Viewed 11.3k times · Source

I am new to maven, I have created a maven project in Eclipse on Wildfly server. Its deploying fine and working fine but I have a compilation issue in work space as like below.

cannot change version of project facet ear to 1.3

No issue is there when i specify project facet EAR as 7.0 but in problems it is showing as in the images.

enter image description here

enter image description here

How can I fix this issue?

Answer

Arumugam Srinivasan picture Arumugam Srinivasan · Nov 2, 2015

I hope your using Wildfly server 8 or 9, try using version (jee version) to avoid this compile error

<build>
<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-ear-plugin</artifactId>
    <version>2.10.1</version>
    <configuration>
       <version>7</version>
    </configuration>
  </plugin>
</plugins>
</build>