]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1547] release an archetype to create consumer
authorOlivier Lamy <olamy@apache.org>
Wed, 2 Nov 2011 09:02:18 +0000 (09:02 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 2 Nov 2011 09:02:18 +0000 (09:02 +0000)
document how using the archetype.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1196511 13f79535-47bb-0310-9956-ffa450edef68

archiva-docs/src/site/apt/customising/writing-consumer.apt.vm

index 252cd998b484cb6115836c89771979082a9f6224..e39030d56e5ad2709988fdd5d32f349e5004aeb9 100644 (file)
@@ -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,
    <knownContentConsumer>)
 
  [[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