In my pom.xml:
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<version>${maven-ear-plugin.version}</version>
<configuration>
<version>6</version>
<fileNameMapping>no-version</fileNameMapping>
<packagingIncludes>META-INF/**,**/${project.artifactId}-ejb.jar</packagingIncludes>
<jboss>
<version>4.2</version>
<loader-repository>
com.terradatum:loader=metrics-server
</loader-repository>
<loader-repository-config>
java2ParentDelegation=false
</loader-repository-config>
</jboss>
</configuration>
</plugin>
When I import the project, I get numerous errors "Cannot change version of project facet EAR to 6.0". When I go to the project properties and try to change it from 7.0 to 6.0, I get the same error. When I go to the XML file within the ".settings" directory and change:
jst.ear="7.0"
TO
jst.ear="6.0"
This is overwritten the very next time I re-import the Maven project. I've disabled the Maven Java EE Integration to no avail.
As a result of this, I cannot Add/Remove the EAR files to my configured JBoss 4.2 server - it won't accept EAR 7.0 artifacts.
Is there a way to determine EXACTLY what is causing this craziness? This has wasted an inordinate amount of lost time.
Oh, and I can absolutely deploy and use these EARs into JBoss 4.2.3.