You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by �rico Teixeira <er...@yahoo.com.br> on 2008/04/24 21:27:43 UTC

Maven Struts 2 archetype not working

I'm trying to run the following command :
mvn archetype:create -DgroupId=tutorial 
-DartifactId=tutorial 
-DarchetypeGroupId=org.apache.struts 
-DarchetypeArtifactId=struts2-archetype-blank 
-DarchetypeVersion=2.0.9-SNAPSHOT 
-DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository

It returns the following error :
org.apache.maven.reactor.MavenExecutionException:
Could not find the model file
'/home/myhome/ejb/pom.xml'. for project unknown
...
Caused by:
org.apache.maven.project.ProjectBuildingException:
Could not find the model file
'/home/myhome/ejb/pom.xml'. for project unknown
...

I'm running it with my user in gnome terminal in a
debian etch 

maven version in my computer : 
# mvn -version
Maven version: 2.0.7
Java version: 1.6.0_04
OS name: "linux" version: "2.6.18-6-686" arch: "i386"

# echo $M2
/opt/java/maven-2.0.7/bin

# echo $M2_HOME
/opt/java/maven-2.0.7

echo $JAVA_HOME
/opt/java/jdk1.6.0_04

JAVA_HOME, M2 and M2_HOME environment variables are
declared in /etc/profile 

I'm I missing something in my environment so I can
create the project correctly ?








      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org