summaryrefslogtreecommitdiffstats
path: root/archiva-docs
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2011-11-02 09:02:18 +0000
committerOlivier Lamy <olamy@apache.org>2011-11-02 09:02:18 +0000
commit771ce9de36d238de6b0e183a06941ba28fc0f71f (patch)
tree7af64fb6230fc5f39456b507937e9213f7473d93 /archiva-docs
parent57669c99f00069f5c47e5a96dcc54df0f56674bc (diff)
downloadarchiva-771ce9de36d238de6b0e183a06941ba28fc0f71f.tar.gz
archiva-771ce9de36d238de6b0e183a06941ba28fc0f71f.zip
[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
Diffstat (limited to 'archiva-docs')
-rw-r--r--archiva-docs/src/site/apt/customising/writing-consumer.apt.vm16
1 files changed, 16 insertions, 0 deletions
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,
<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