]> source.dussan.org Git - archiva.git/blob
16c70b34ed24f12b0f3beed6ec5361815567a028
[archiva.git] /
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Licensed to the Apache Software Foundation (ASF) under one
4   ~ or more contributor license agreements.  See the NOTICE file
5   ~ distributed with this work for additional information
6   ~ regarding copyright ownership.  The ASF licenses this file
7   ~ to you under the Apache License, Version 2.0 (the
8   ~ "License"); you may not use this file except in compliance
9   ~ with the License.  You may obtain a copy of the License at
10   ~
11   ~   http://www.apache.org/licenses/LICENSE-2.0
12   ~
13   ~ Unless required by applicable law or agreed to in writing,
14   ~ software distributed under the License is distributed on an
15   ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16   ~ KIND, either express or implied.  See the License for the
17   ~ specific language governing permissions and limitations
18   ~ under the License.
19   -->
20
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
24   <modelVersion>4.0.0</modelVersion>
25   <groupId>${groupId}</groupId>
26   <artifactId>${artifactId}</artifactId>
27   <version>${version}</version>
28   <packaging>jar</packaging>
29   <name>Simple Archiva Consumer</name>
30   <url>http://archiva.apache.org</url>
31   <description>
32     This is a simple consumer component which demonstrates how a
33     component can be plugged in Archiva.
34   </description>
35   <properties>
36     <archiva.version>${archivaVersion}</archiva.version>
37     <wagonVersion>${wagon.version}</wagonVersion>
38     <slf4jVersion>${slf4j.version}</slf4jVersion>
39     <log4jVersion>${log4j.version}</log4jVersion>
40   </properties>
41   <dependencies>
42     <dependency>
43       <groupId>org.apache.archiva</groupId>
44       <artifactId>archiva-consumer-api</artifactId>
45       <version>${archiva.version}</version>
46     </dependency>
47     <dependency>
48       <groupId>org.apache.archiva</groupId>
49       <artifactId>archiva-configuration</artifactId>
50       <version>${archiva.version}</version>
51     </dependency>
52     <dependency>
53       <groupId>org.apache.archiva</groupId>
54       <artifactId>archiva-repository-layer</artifactId>
55       <version>${archiva.version}</version>
56     </dependency>
57     <dependency>
58       <groupId>org.apache.archiva</groupId>
59       <artifactId>archiva-indexer</artifactId>
60       <version>${archiva.version}</version>
61     </dependency>
62     <dependency>
63       <groupId>org.apache.archiva</groupId>
64       <artifactId>maven2-repository</artifactId>
65       <version>${archiva.version}</version>
66       <scope>provided</scope>
67     </dependency>
68     <dependency>
69       <groupId>org.easymock</groupId>
70       <artifactId>easymock</artifactId>
71       <version>2.5.2</version>
72       <scope>test</scope>
73     </dependency>
74     <dependency>
75       <groupId>junit</groupId>
76       <artifactId>junit</artifactId>
77       <version>4.9</version>
78       <scope>test</scope>
79     </dependency>
80     <dependency>
81       <groupId>org.slf4j</groupId>
82       <artifactId>slf4j-api</artifactId>
83       <version>${slf4jVersion}</version>
84     </dependency>
85
86     <dependency>
87       <groupId>org.apache.logging.log4j</groupId>
88       <artifactId>log4j-core</artifactId>
89       <version>${log4jVersion}</version>
90       <scope>runtime</scope>
91     </dependency>
92     <dependency>
93       <groupId>org.apache.logging.log4j.adapters</groupId>
94       <artifactId>log4j12-api</artifactId>
95       <version>${log4jVersion}</version>
96       <scope>runtime</scope>
97     </dependency>
98     <dependency>
99       <groupId>org.apache.logging.log4j.adapters</groupId>
100       <artifactId>slf4j-impl</artifactId>
101       <version>${log4jVersion}</version>
102       <scope>runtime</scope>
103     </dependency>
104     <dependency>
105       <groupId>org.apache.logging.log4j.adapters</groupId>
106       <artifactId>log4j-jcl</artifactId>
107       <version>${log4jVersion}</version>
108       <scope>runtime</scope>
109     </dependency>
110
111     <dependency>
112       <groupId>org.apache.archiva</groupId>
113       <artifactId>archiva-repository-admin-default</artifactId>
114       <version>${archiva.version}</version>
115       <scope>provided</scope>
116     </dependency>
117     <dependency>
118       <groupId>org.apache.archiva</groupId>
119       <artifactId>metadata-store-jcr</artifactId>
120       <version>${archiva.version}</version>
121       <scope>provided</scope>
122     </dependency>
123     <dependency>
124       <groupId>org.apache.jackrabbit</groupId>
125       <artifactId>jackrabbit-core</artifactId>
126       <version>${jackrabbit.version}</version>
127       <scope>provided</scope>
128       <exclusions>
129         <exclusion>
130           <groupId>commons-logging</groupId>
131           <artifactId>commons-logging</artifactId>
132         </exclusion>
133       </exclusions>
134     </dependency>
135     <dependency>
136       <groupId>org.springframework</groupId>
137       <artifactId>spring-core</artifactId>
138       <version>${spring.version}</version>
139       <exclusions>
140         <exclusion>
141           <groupId>commons-logging</groupId>
142           <artifactId>commons-logging</artifactId>
143         </exclusion>
144       </exclusions>
145     </dependency>
146     <dependency>
147       <groupId>org.springframework</groupId>
148       <artifactId>spring-beans</artifactId>
149       <version>${spring.version}</version>
150       <exclusions>
151         <exclusion>
152           <groupId>commons-logging</groupId>
153           <artifactId>commons-logging</artifactId>
154         </exclusion>
155       </exclusions>
156     </dependency>
157     <dependency>
158       <groupId>org.springframework</groupId>
159       <artifactId>spring-expression</artifactId>
160       <version>${spring.version}</version>
161       <exclusions>
162         <exclusion>
163           <groupId>commons-logging</groupId>
164           <artifactId>commons-logging</artifactId>
165         </exclusion>
166       </exclusions>
167     </dependency>
168     <dependency>
169       <groupId>org.springframework</groupId>
170       <artifactId>spring-test</artifactId>
171       <version>${spring.version}</version>
172       <exclusions>
173         <exclusion>
174           <groupId>commons-logging</groupId>
175           <artifactId>commons-logging</artifactId>
176         </exclusion>
177       </exclusions>
178     </dependency>
179     <dependency>
180       <groupId>org.apache.archiva.redback</groupId>
181       <artifactId>redback-common-test-resources</artifactId>
182       <scope>test</scope>
183       <version>${redback.version}</version>
184     </dependency>
185     <dependency>
186       <groupId>org.apache.archiva.redback</groupId>
187       <artifactId>redback-rbac-memory</artifactId>
188       <scope>test</scope>
189       <version>${redback.version}</version>
190     </dependency>
191     <dependency>
192       <groupId>org.apache.archiva.redback</groupId>
193       <artifactId>redback-rbac-cached</artifactId>
194       <scope>test</scope>
195       <version>${redback.version}</version>
196     </dependency>
197     <dependency>
198       <groupId>org.apache.archiva.redback</groupId>
199       <artifactId>redback-rbac-role-manager</artifactId>
200       <scope>test</scope>
201       <version>${redback.version}</version>
202     </dependency>
203     <dependency>
204       <groupId>org.apache.maven.wagon</groupId>
205       <artifactId>wagon-http</artifactId>
206       <version>${wagonVersion}</version>
207       <scope>test</scope>
208     </dependency>
209     <dependency>
210       <groupId>org.apache.maven.wagon</groupId>
211       <artifactId>wagon-http-lightweight</artifactId>
212       <version>${wagonVersion}</version>
213       <scope>test</scope>
214     </dependency>
215     <dependency>
216       <groupId>xerces</groupId>
217       <artifactId>xercesImpl</artifactId>
218       <version>2.8.1</version>
219     </dependency>
220     <dependency>
221       <groupId>org.apache.derby</groupId>
222       <artifactId>derby</artifactId>
223       <version>${derbyVersion}</version>
224     </dependency>
225     <dependency>
226       <groupId>commons-dbcp</groupId>
227       <artifactId>commons-dbcp</artifactId>
228       <version>1.4</version>
229       <scope>test</scope>
230     </dependency>
231   </dependencies>
232   <build>
233     <pluginManagement>
234       <plugins>
235         <plugin>
236           <groupId>org.apache.maven.plugins</groupId>
237           <artifactId>maven-clean-plugin</artifactId>
238           <version>2.4.1</version>
239         </plugin>
240         <plugin>
241           <groupId>org.apache.maven.plugins</groupId>
242           <artifactId>maven-compiler-plugin</artifactId>
243           <version>2.3.2</version>
244         </plugin>
245         <plugin>
246           <groupId>org.apache.maven.plugins</groupId>
247           <artifactId>maven-resources-plugin</artifactId>
248           <version>2.5</version>
249         </plugin>
250         <plugin>
251           <groupId>org.apache.maven.plugins</groupId>
252           <artifactId>maven-jar-plugin</artifactId>
253           <version>2.3.2</version>
254         </plugin>
255         <plugin>
256           <groupId>org.apache.maven.plugins</groupId>
257           <artifactId>maven-surefire-plugin</artifactId>
258           <version>2.11</version>
259         </plugin>
260       </plugins>
261     </pluginManagement>
262     <plugins>
263       <plugin>
264         <groupId>org.apache.maven.plugins</groupId>
265         <artifactId>maven-antrun-plugin</artifactId>
266         <version>1.6</version>
267         <executions>
268           <execution>
269             <id>package</id>
270             <phase>package</phase>
271             <configuration>
272               <tasks>
273                 <echo>
274                 Remember to add the the following to the knownconsumers section in your archiva.xml file
275                  &lt;knownContentConsumer>simple-artifact-consumer&lt;/knownContentConsumer>
276                 </echo>
277               </tasks>
278             </configuration>
279             <goals>
280               <goal>run</goal>
281             </goals>
282           </execution>
283         </executions>
284       </plugin>
285       <plugin>
286         <groupId>org.apache.maven.plugins</groupId>
287         <artifactId>maven-compiler-plugin</artifactId>
288         <configuration>
289           <source>1.5</source>
290           <target>1.5</target>
291         </configuration>
292       </plugin>
293       <plugin>
294         <groupId>org.apache.maven.plugins</groupId>
295         <artifactId>maven-surefire-plugin</artifactId>
296         <version>2.12</version>
297         <configuration>
298           <systemPropertyVariables>
299             <appserver.base>${project.build.directory}/appserver-base</appserver.base>
300             <archiva.user.configFileName>${project.build.directory}/archiva.xml</archiva.user.configFileName>
301             <test.resources.path>${project.build.testOutputDirectory}</test.resources.path>
302             <redback.jdbc.url>jdbc:derby:memory:users-test;create=true</redback.jdbc.url>
303             <redback.jdbc.driver.name>org.apache.derby.jdbc.EmbeddedDriver</redback.jdbc.driver.name>
304             <java.io.tmpdir>${project.build.directory}/temp</java.io.tmpdir>
305           </systemPropertyVariables>
306         </configuration>
307       </plugin>
308     </plugins>
309   </build>
310   <!--repositories>
311     <repository>
312       <id>archiva.snapshots</id>
313       <name>Archiva VM Snapshots Repository</name>
314       <url>https://archiva-repository.apache.org/archiva/repository/snapshots</url>
315       <releases>
316         <enabled>false</enabled>
317       </releases>
318       <snapshots>
319         <enabled>true</enabled>
320       </snapshots>
321     </repository>
322   </repositories-->
323 </project>