[ http://jira.codehaus.org/browse/ARCHETYPE-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138402#action_138402 ]
Raphaël Piéroni commented on ARCHETYPE-70: ------------------------------------------ IIRC, one can find this information in the documentation http://maven.apache.org/plugins/maven-archetype-plugin So first one can create an archetype by: - creating a sample project which that will turned into an archetype - call mvn archetype:create-from-project in the directory (with -Darchetype.properties=... with a property file contains the key=value pairs of properties or with -Dinteractive=true to enable the question mode) - go to the target/generated-sources/archetype directory - call mvn install Then use that archetype by: - going to a fresh directory (without a pom.xml) - call mvn archetype:generate -DarchetypeCatalog=local - the values are asked by the plugin (but first defaulted to the initial values) Also, this feature is not available to archetype:create (whith is here only for backward compatibility with old (without additional property) archetypes) > Add project description as a mojo parameter > ------------------------------------------- > > Key: ARCHETYPE-70 > URL: http://jira.codehaus.org/browse/ARCHETYPE-70 > Project: Maven Archetype > Issue Type: New Feature > Components: Plugin > Reporter: Michael Heuer > Priority: Minor > Fix For: 2.0-alpha-1 > > Attachments: patch.txt > > > For my archetype bundle, I require the project description as a parameter. > I use it in the pom.xml > <description>${description}</description> > in a license HEADER.txt > /* > ${artifactId} ${description} > Copyright ... > in a package.html > <html> > <body> > <p>${description}</p> > </body> > </html> > and so on. > The attached patch to MavenArchetypeMojo.java provides a project description > parameter in addition to project groupId, artifactId, and version: > $ mvn -X archetype:create > -DgroupId=foo > -DartifactId=bar > -Dversion=1.0-SNAPSHOT > -Ddescription="bar description." ... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira