Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.apache.maven.reactor.MavenExecutionException: Could not find the model file

 
Srimoyee Misra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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)

Please guide me about why it should be happening.

Thanks
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What version of Maven are you running and what Maven command are you running?
 
Jitmer Jijo
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

<artifactId>ad-common</artifactId>
<packaging>jar</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>ad-common</name>
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic