]> source.dussan.org Git - archiva.git/blob
6d15c51f7d4339a4c0319f17f8f3ff4de007fa5a
[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 <project xmlns="http://maven.apache.org/POM/4.0.0"
21   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
23   <modelVersion>4.0.0</modelVersion>
24   <groupId>${groupId}</groupId>
25   <artifactId>${artifactId}</artifactId>
26   <version>${version}</version>
27   <packaging>jar</packaging>
28   <name>Simple Archiva Consumer</name>
29   <url>http://archiva.apache.org</url>
30   <description>
31     This is a simple consumer component which demonstrates how a
32     component can be plugged in Archiva.
33   </description>
34   <properties>
35     <archiva.version>${archivaVersion}</archiva.version>
36     <wagonVersion>${wagonVersion}</wagonVersion>
37     <slf4jVersion>${slf4jVersion}</slf4jVersion>
38     <log4jVersion>${log4jVersion}</log4jVersion>
39     <jackrabbit.version>${jackrabbitVersion}</jackrabbit.version>
40     <spring.version>${springVersion}</spring.version>
41     <redback.version>${redbackVersion}</redback.version>
42     <derbyVersion>${derbyVersion}</derbyVersion>
43     <commons-pool.version>${commons-poolVersion}</commons-pool.version>
44     <httpclientCoreVersion>${httpclientCoreVersion}</httpclientCoreVersion>
45   </properties>
46   <dependencies>
47     <dependency>
48       <groupId>org.apache.archiva</groupId>
49       <artifactId>archiva-consumer-api</artifactId>
50       <version>${archiva.version}</version>
51     </dependency>
52     <dependency>
53       <groupId>org.apache.archiva</groupId>
54       <artifactId>archiva-configuration</artifactId>
55       <version>${archiva.version}</version>
56     </dependency>
57     <dependency>
58       <groupId>org.apache.archiva</groupId>
59       <artifactId>archiva-repository-layer</artifactId>
60       <version>${archiva.version}</version>
61     </dependency>
62     <dependency>
63       <groupId>org.apache.archiva</groupId>
64       <artifactId>archiva-indexer</artifactId>
65       <version>${archiva.version}</version>
66     </dependency>
67     <dependency>
68       <groupId>org.apache.archiva</groupId>
69       <artifactId>maven2-repository</artifactId>
70       <version>${archiva.version}</version>
71       <scope>provided</scope>
72     </dependency>
73     <dependency>
74       <groupId>org.easymock</groupId>
75       <artifactId>easymock</artifactId>
76       <version>3.2</version>
77       <scope>test</scope>
78     </dependency>
79     <dependency>
80       <groupId>junit</groupId>
81       <artifactId>junit</artifactId>
82       <version>4.11</version>
83       <scope>test</scope>
84     </dependency>
85     <dependency>
86       <groupId>org.slf4j</groupId>
87       <artifactId>slf4j-api</artifactId>
88       <version>${slf4jVersion}</version>
89     </dependency>
90     <dependency>
91       <groupId>org.slf4j</groupId>
92       <artifactId>jcl-over-slf4j</artifactId>
93       <version>${slf4jVersion}</version>
94     </dependency>
95
96     <dependency>
97       <groupId>org.apache.logging.log4j</groupId>
98       <artifactId>log4j-core</artifactId>
99       <version>${log4jVersion}</version>
100       <scope>runtime</scope>
101     </dependency>
102     <dependency>
103       <groupId>org.apache.logging.log4j</groupId>
104       <artifactId>log4j-1.2-api</artifactId>
105       <version>${log4jVersion}</version>
106       <scope>runtime</scope>
107     </dependency>
108     <dependency>
109       <groupId>org.apache.logging.log4j</groupId>
110       <artifactId>log4j-slf4j-impl</artifactId>
111       <version>${log4jVersion}</version>
112       <scope>runtime</scope>
113     </dependency>
114     <dependency>
115       <groupId>org.apache.logging.log4j</groupId>
116       <artifactId>log4j-jcl</artifactId>
117       <version>${log4jVersion}</version>
118       <scope>runtime</scope>
119     </dependency>
120
121     <dependency>
122       <groupId>org.apache.archiva</groupId>
123       <artifactId>archiva-repository-admin-default</artifactId>
124       <version>${archiva.version}</version>
125       <scope>provided</scope>
126     </dependency>
127     <dependency>
128       <groupId>org.apache.archiva</groupId>
129       <artifactId>metadata-store-jcr</artifactId>
130       <version>${archiva.version}</version>
131       <scope>provided</scope>
132     </dependency>
133     <dependency>
134       <groupId>org.apache.jackrabbit</groupId>
135       <artifactId>jackrabbit-core</artifactId>
136       <version>${jackrabbit.version}</version>
137       <scope>provided</scope>
138       <exclusions>
139         <exclusion>
140           <groupId>commons-logging</groupId>
141           <artifactId>commons-logging</artifactId>
142         </exclusion>
143       </exclusions>
144     </dependency>
145     <dependency>
146       <groupId>org.springframework</groupId>
147       <artifactId>spring-core</artifactId>
148       <version>${spring.version}</version>
149       <exclusions>
150         <exclusion>
151           <groupId>commons-logging</groupId>
152           <artifactId>commons-logging</artifactId>
153         </exclusion>
154       </exclusions>
155     </dependency>
156     <dependency>
157       <groupId>org.springframework</groupId>
158       <artifactId>spring-beans</artifactId>
159       <version>${spring.version}</version>
160       <exclusions>
161         <exclusion>
162           <groupId>commons-logging</groupId>
163           <artifactId>commons-logging</artifactId>
164         </exclusion>
165       </exclusions>
166     </dependency>
167     <dependency>
168       <groupId>org.springframework</groupId>
169       <artifactId>spring-expression</artifactId>
170       <version>${spring.version}</version>
171       <exclusions>
172         <exclusion>
173           <groupId>commons-logging</groupId>
174           <artifactId>commons-logging</artifactId>
175         </exclusion>
176       </exclusions>
177     </dependency>
178     <dependency>
179       <groupId>org.springframework</groupId>
180       <artifactId>spring-test</artifactId>
181       <version>${spring.version}</version>
182       <exclusions>
183         <exclusion>
184           <groupId>commons-logging</groupId>
185           <artifactId>commons-logging</artifactId>
186         </exclusion>
187       </exclusions>
188     </dependency>
189     <dependency>
190       <groupId>org.apache.archiva.redback</groupId>
191       <artifactId>redback-common-test-resources</artifactId>
192       <scope>test</scope>
193       <version>${redback.version}</version>
194     </dependency>
195     <dependency>
196       <groupId>org.apache.archiva.redback</groupId>
197       <artifactId>redback-rbac-memory</artifactId>
198       <scope>test</scope>
199       <version>${redback.version}</version>
200     </dependency>
201     <dependency>
202       <groupId>org.apache.archiva.redback</groupId>
203       <artifactId>redback-rbac-cached</artifactId>
204       <scope>test</scope>
205       <version>${redback.version}</version>
206     </dependency>
207     <dependency>
208       <groupId>org.apache.archiva.redback</groupId>
209       <artifactId>redback-rbac-role-manager</artifactId>
210       <scope>test</scope>
211       <version>${redback.version}</version>
212     </dependency>
213     <dependency>
214       <groupId>org.apache.maven.wagon</groupId>
215       <artifactId>wagon-http</artifactId>
216       <version>${wagonVersion}</version>
217       <scope>test</scope>
218     </dependency>
219     <dependency>
220       <groupId>org.apache.httpcomponents</groupId>
221       <artifactId>httpcore</artifactId>
222       <version>${httpclientCoreVersion}</version>
223       <exclusions>
224         <exclusion>
225           <groupId>commons-logging</groupId>
226           <artifactId>commons-logging</artifactId>
227         </exclusion>
228       </exclusions>
229     </dependency>
230     <dependency>
231       <groupId>org.apache.maven.wagon</groupId>
232       <artifactId>wagon-http-lightweight</artifactId>
233       <version>${wagonVersion}</version>
234       <scope>test</scope>
235     </dependency>
236     <dependency>
237       <groupId>xerces</groupId>
238       <artifactId>xercesImpl</artifactId>
239       <version>2.11.0</version>
240     </dependency>
241     <dependency>
242       <groupId>org.apache.derby</groupId>
243       <artifactId>derby</artifactId>
244       <version>${derbyVersion}</version>
245     </dependency>
246     <dependency>
247       <groupId>commons-dbcp</groupId>
248       <artifactId>commons-dbcp</artifactId>
249       <version>1.4</version>
250       <scope>test</scope>
251     </dependency>
252     <dependency>
253       <groupId>commons-pool</groupId>
254       <artifactId>commons-pool</artifactId>
255       <scope>test</scope>
256       <version>${commons-pool.version}</version>
257     </dependency>
258   </dependencies>
259   <build>
260     <pluginManagement>
261       <plugins>
262         <plugin>
263           <groupId>org.apache.maven.plugins</groupId>
264           <artifactId>maven-clean-plugin</artifactId>
265           <version>2.5</version>
266         </plugin>
267         <plugin>
268           <groupId>org.apache.maven.plugins</groupId>
269           <artifactId>maven-compiler-plugin</artifactId>
270           <version>3.1</version>
271         </plugin>
272         <plugin>
273           <groupId>org.apache.maven.plugins</groupId>
274           <artifactId>maven-resources-plugin</artifactId>
275           <version>2.6</version>
276         </plugin>
277         <plugin>
278           <groupId>org.apache.maven.plugins</groupId>
279           <artifactId>maven-jar-plugin</artifactId>
280           <version>2.4</version>
281         </plugin>
282         <plugin>
283           <groupId>org.apache.maven.plugins</groupId>
284           <artifactId>maven-surefire-plugin</artifactId>
285           <version>2.16</version>
286         </plugin>
287       </plugins>
288     </pluginManagement>
289     <plugins>
290       <plugin>
291         <groupId>org.apache.maven.plugins</groupId>
292         <artifactId>maven-antrun-plugin</artifactId>
293         <version>1.7</version>
294         <executions>
295           <execution>
296             <id>package</id>
297             <phase>package</phase>
298             <configuration>
299               <tasks>
300                 <echo>
301                 Remember to add the the following to the knownconsumers section in your archiva.xml file
302                  &lt;knownContentConsumer>simple-artifact-consumer&lt;/knownContentConsumer>
303                 </echo>
304               </tasks>
305             </configuration>
306             <goals>
307               <goal>run</goal>
308             </goals>
309           </execution>
310         </executions>
311       </plugin>
312       <plugin>
313         <groupId>org.apache.maven.plugins</groupId>
314         <artifactId>maven-compiler-plugin</artifactId>
315         <configuration>
316           <source>1.7</source>
317           <target>1.7</target>
318         </configuration>
319       </plugin>
320       <plugin>
321         <groupId>org.apache.maven.plugins</groupId>
322         <artifactId>maven-surefire-plugin</artifactId>
323         <configuration>
324           <systemPropertyVariables>
325             <appserver.base>${project.build.directory}/appserver-base</appserver.base>
326             <archiva.user.configFileName>${project.build.directory}/archiva.xml</archiva.user.configFileName>
327             <test.resources.path>${project.build.testOutputDirectory}</test.resources.path>
328             <redback.jdbc.url>jdbc:derby:memory:users-test;create=true</redback.jdbc.url>
329             <redback.jdbc.driver.name>org.apache.derby.jdbc.EmbeddedDriver</redback.jdbc.driver.name>
330             <java.io.tmpdir>${project.build.directory}/temp</java.io.tmpdir>
331           </systemPropertyVariables>
332         </configuration>
333       </plugin>
334     </plugins>
335   </build>
336   <!--repositories>
337     <repository>
338       <id>archiva.snapshots</id>
339       <name>Archiva VM Snapshots Repository</name>
340       <url>https://archiva-repository.apache.org/archiva/repository/snapshots</url>
341       <releases>
342         <enabled>false</enabled>
343       </releases>
344       <snapshots>
345         <enabled>true</enabled>
346       </snapshots>
347     </repository>
348   </repositories-->
349 </project>