From: Olivier Lamy Date: Wed, 2 Nov 2011 09:02:18 +0000 (+0000) Subject: [MRM-1547] release an archetype to create consumer X-Git-Tag: archiva-1.4-M2~194 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=771ce9de36d238de6b0e183a06941ba28fc0f71f;p=archiva.git [MRM-1547] release an archetype to create consumer document how using the archetype. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1196511 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-docs/src/site/apt/customising/writing-consumer.apt.vm b/archiva-docs/src/site/apt/customising/writing-consumer.apt.vm index 252cd998b..e39030d56 100644 --- a/archiva-docs/src/site/apt/customising/writing-consumer.apt.vm +++ b/archiva-docs/src/site/apt/customising/writing-consumer.apt.vm @@ -32,6 +32,8 @@ Writing a Consumer Plugin For a sample custom consumer, you can checkout the archiva-consumer-plugin at the archiva sandbox in the SVN repository: Prior to release 1.4, plexus components are not anymore supported, you must use Spring components. +* Writing manually + +----+ http://svn.apache.org/repos/asf/archiva/sandbox/archiva-consumer-plugin +----+ @@ -66,3 +68,17 @@ where, ) [[8]] Start up Archiva again. + +* Use the archetype + + Prior to version 1.4-M2, you can use an archetype. + ++----+ +mvn archetype:generate \ + -DarchetypeRepository=repo1.maven.org \ + -DarchetypeGroupId=org.apache.archiva \ + -DarchetypeArtifactId=archiva-consumer-archetype \ + -DarchetypeVersion=${project.version} ++----+ + + Note: if you want to use a SNAPSHOT version, replace with the following parameter: -DarchetypeRepository=http://vmbuild.apache.org/archiva/repository/snapshots \ \ No newline at end of file