maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Maven Wiki] Update of "M2UserDocs/042UsingMvn" by cseg
Date Fri, 20 Jan 2006 17:29:16 GMT
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


Mime
View raw message