I am trying to create a EAR file instead of a WAR file and I have been able to create my EAR file but when I try to build the EAR file using Maven, I get the following error :
org.apache.maven.reactor.MavenExecutionException: Could not find the model file 'C:\Dev\EARProject\core'. for project unknown
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
In every module or project in the workspace make sure the <artifactId> and the <name> element in the pom.xml contain the same entries. In this example below it is ad-common. With this it should work.
Please post the pom.xml to the EAR project. My guess is that you have a <modules> entry that reference <module>code</module>, but either there is no core directory or there is no core/pom.xml.