You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Apache Wiki <wi...@apache.org> on 2006/01/20 18:29:16 UTC

[Maven Wiki] Update of "M2UserDocs/042UsingMvn" by cseg

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Maven Wiki" for change notification.

The following page has been changed by cseg:
http://wiki.apache.org/maven/M2UserDocs/042UsingMvn

New page:
#format wiki
#language en
#pragma section-numbers off
[[Navigation(slides)]]
= Using mvn: Archetypes =

Maven2 uses application templates called '''''archetypes''''' to jump start the creation of a project directory.  Different types of applications use different archetypes.  For example, there are different archetypes for projects which produce a '''.jar''', '''.war''', or '''.ear''' artifact, or for '''Maven2 plugins'''.

Let's create a project which produces a '''.jar''' file (the default archetype).  Navigate to a directory '''above''' where you what your project directory to be created, and issue this command:
{{{
mvn archetype:create -DartifactId=myProjectDirName -DgroupId=com.mycompany.myproject
}}}

 * The '''archetype:create''' argument tells Maven2 that we will be using the '''archetype''' plugin and invoking its  '''create''' goal.
 * The '''artifactId''' property corresponds to the name of the project directory which will be created.  
 * The '''groupId''' property correspons to the package structure that will be created in your project directory.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org