aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes  org.apache.maven.reactor.MavenExecutionException: Could not find the model file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark " org.apache.maven.reactor.MavenExecutionException: Could not find the model file" Watch " org.apache.maven.reactor.MavenExecutionException: Could not find the model file" New topic
Author

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

Srimoyee Misra
Greenhorn

Joined: Apr 01, 2010
Posts: 6
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

Joined: Jun 24, 2003
Posts: 3274
    
    5

What version of Maven are you running and what Maven command are you running?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Jitmer Jijo
Greenhorn

Joined: Oct 17, 2010
Posts: 6
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

Joined: May 14, 2008
Posts: 5830
    
    7

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.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.apache.maven.reactor.MavenExecutionException: Could not find the model file