You realize of course that you're complaining about a SNAPSHOT version
of an archetype. Snapshots are, by their very nature, not stable and
thus prone to problems. Is there not a stable version you could use
instead?

Also, where did you get this "mvn archetype:create..." line? From a
book or tutorial online? Can you send back the webpage? I *really*
hope people aren't giving out snapshot repo urls (as you're using) in
tutorials for Maven newbies -- that's just a bad idea all around.

Finally, you're using Maven 2.0.7 -- can you try this with 2.0.9?

Wayne

On 4/26/08, Érico Teixeira <[EMAIL PROTECTED]> wrote:
>
> 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.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to