Author: vsiveton
Date: Fri Aug 28 11:59:31 2009
New Revision: 808853
URL: http://svn.apache.org/viewvc?rev=808853&view=rev
Log:
o minor improvements
Modified:
maven/site/trunk/src/site/apt/guides/introduction/introduction-to-archetypes.apt
Modified:
maven/site/trunk/src/site/apt/guides/introduction/introduction-to-archetypes.apt
URL:
http://svn.apache.org/viewvc/maven/site/trunk/src/site/apt/guides/introduction/introduction-to-archetypes.apt?rev=808853&r1=808852&r2=808853&view=diff
==============================================================================
---
maven/site/trunk/src/site/apt/guides/introduction/introduction-to-archetypes.apt
(original)
+++
maven/site/trunk/src/site/apt/guides/introduction/introduction-to-archetypes.apt
Fri Aug 28 11:59:31 2009
@@ -33,56 +33,17 @@
* Using an Archetype
- To create a new project based on an Archetype, you need to call <<<mvn
archetype:create>>> goal, like the following:
+ To create a new project based on an Archetype, you need to call <<<mvn
archetype:generate>>> goal, like the following:
+---+
-mvn archetype:create \
- -DgroupId=com.mycompany.app \
- -DartifactId=myapp
+mvn archetype:generate
+---+
- For more informations on this goal, you could call <<<mvn archetype:help
-Ddetail>>>:
-
-+---+
-archetype:create
- The archetype creation goal looks for an archetype with a given groupId,
- artifactId, and version and retrieves it from the remote repository. Once
- the archetype is retrieved, it is then processed against a set of user
- parameters to create a working Maven project.
-
- Available parameters:
-
- archetypeArtifactId (Default: 'maven-archetype-quickstart')
- The Archetype Artifact Id to be used.
- archetypeGroupId (Default: 'org.apache.maven.archetypes')
- The Archetype Group Id to be used.
- archetypeVersion (Default: 'RELEASE')
- The Archetype Version to be used.
- artifactId
- The Artifact Id of the project to be build.
- basedir (Default: '${user.dir}')
- No description available.
- groupId
- The Group Id of the project to be build.
- localRepository
- Maven's local repository.
- packageName
- The Package Name of the project to be build.
- pomRemoteRepositories
- The remote repositories available for discovering dependencies and
- extensions as indicated by the POM.
- project
- The project to be created an archetype of.
- remoteRepositories
- Other remote repositories available for discovering dependencies and
- extensions.
- version (Default: '1.0-SNAPSHOT')
- The Version of the project to be build.
-+---+
+ Please refer to
{{{http://maven.apache.org/plugins/maven-archetype-plugin/usage.html}Archetype
Plugin Page}}.
* Provided Archetypes
- Maven provides several Achetype artifacts, to be used with the
<<<-DarchetypeArtifactId>>> parameter:
+ Maven provides several Achetype artifacts:
*-----------------------------+----------------+
|| Archetype ArtifactIds || Description ||
@@ -110,16 +71,6 @@
| maven-archetype-webapp | An archetype which contains a sample Maven
Webapp project. |
*-----------------------------+----------------+
- Example:
-
-+----+
-mvn archetype:create \
- -DarchetypeGroupId=org.apache.maven.archetypes \
- -DarchetypeArtifactId=maven-archetype-site \
- -DgroupId=com.mycompany.app \
- -DartifactId=my-app-site
-+----+
-
* What makes up an Archetype?
Archetypes are packaged up in a JAR and they consist of the archetype
metadata which describes the contents of