Author: olamy
Date: Thu Dec 20 21:39:48 2012
New Revision: 1424713
URL: http://svn.apache.org/viewvc?rev=1424713&view=rev
Log:
Apache Archiva Versionned docs for 1.4-M4-SNAPSHOT
Modified:
archiva/site-content/docs/1.4-M4-SNAPSHOT/customising/writing-consumer.html
Modified:
archiva/site-content/docs/1.4-M4-SNAPSHOT/customising/writing-consumer.html
URL:
http://svn.apache.org/viewvc/archiva/site-content/docs/1.4-M4-SNAPSHOT/customising/writing-consumer.html?rev=1424713&r1=1424712&r2=1424713&view=diff
==============================================================================
--- archiva/site-content/docs/1.4-M4-SNAPSHOT/customising/writing-consumer.html
(original)
+++ archiva/site-content/docs/1.4-M4-SNAPSHOT/customising/writing-consumer.html
Thu Dec 20 21:39:48 2012
@@ -9,7 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="Maria Odea Ching
Olivier Lamy" />
- <meta name="Date-Creation-yyyymmdd" content="20110916" />
+ <meta name="Date-Creation-yyyymmdd" content="20121220" />
<meta name="Date-Revision-yyyymmdd" content="20121220" />
<meta http-equiv="Content-Language" content="en" />
<title>Archiva Documentation - Writing a Consumer Plugin</title>
@@ -315,7 +315,7 @@ pageTracker._trackPageview();</script>
<div id="bodyColumn" class="span10" >
- <!-- Licensed to the Apache Software Foundation (ASF) under one
--><!-- or more contributor license agreements. See the NOTICE file --><!--
distributed with this work for additional information --><!-- regarding
copyright ownership. The ASF licenses this file --><!-- to you under the
Apache License, Version 2.0 (the --><!-- "License"); you may not use this file
except in compliance --><!-- with the License. You may obtain a copy of the
License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!--
--><!-- Unless required by applicable law or agreed to in writing, --><!--
software distributed under the License is distributed on an --><!-- "AS IS"
BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or
implied. See the License for the --><!-- specific language governing
permissions and limitations --><!-- under the License. --><!-- NOTE: For help
with the syntax of this file, see: --><!-- http://maven.apache.org/guides/mi
ni/guide-apt-format.html --><div class="section"><h2>Writing a Consumer
Plugin<a name="Writing_a_Consumer_Plugin"></a></h2><p>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.</p><div class="section"><h3>Writing
manually<a name="Writing_manually"></a></h3><div class="source"><pre
class="prettyprint">http://svn.apache.org/repos/asf/archiva/sandbox/archiva-consumer-plugin</pre></div><p>Below
are the steps on how to create a custom repository consumer and plug it in
Archiva:</p><ol style="list-style-type: decimal"><li>Create a project for your
component.</li><li>Declare your class or in this case, consumer as a component
as shown in the example below. This should be put at the class level.<div
class="source"><pre class="prettyprint">Ex.
+ <!-- Licensed to the Apache Software Foundation (ASF) under one
--><!-- or more contributor license agreements. See the NOTICE file --><!--
distributed with this work for additional information --><!-- regarding
copyright ownership. The ASF licenses this file --><!-- to you under the
Apache License, Version 2.0 (the --><!-- "License"); you may not use this file
except in compliance --><!-- with the License. You may obtain a copy of the
License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!--
--><!-- Unless required by applicable law or agreed to in writing, --><!--
software distributed under the License is distributed on an --><!-- "AS IS"
BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or
implied. See the License for the --><!-- specific language governing
permissions and limitations --><!-- under the License. --><!-- NOTE: For help
with the syntax of this file, see: --><!-- http://maven.apache.org/guides/mi
ni/guide-apt-format.html --><div class="section"><h2>Writing a Consumer
Plugin<a name="Writing_a_Consumer_Plugin"></a></h2><p>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.</p><div class="section"><h3>Writing
manually<a name="Writing_manually"></a></h3><p>Below are the steps on how to
create a custom repository consumer and plug it in Archiva:</p><ol
style="list-style-type: decimal"><li>Create a project for your
component.</li><li>Declare your class or in this case, consumer as a component
as shown in the example below. This should be put at the class level.<div
class="source"><pre class="prettyprint">Ex.
@Service("knownRepositoryContentConsumer#discover-new-artifact")
@Scope("prototype")