Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 787
Jhansi Gupta Avatar asked Oct 19 '22 01:10

Jhansi Gupta


1 Answers

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>
like image 135
Arumugam Srinivasan Avatar answered Oct 21 '22 16:10

Arumugam Srinivasan