1 <?xml version="1.0" encoding="UTF-8"?>
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
11 ~ http://www.apache.org/licenses/LICENSE-2.0
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
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>
31 This is a simple consumer component which demonstrates how a
32 component can be plugged in Archiva.
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>
48 <groupId>org.apache.archiva</groupId>
49 <artifactId>archiva-consumer-api</artifactId>
50 <version>${archiva.version}</version>
53 <groupId>org.apache.archiva</groupId>
54 <artifactId>archiva-configuration</artifactId>
55 <version>${archiva.version}</version>
58 <groupId>org.apache.archiva</groupId>
59 <artifactId>archiva-repository-layer</artifactId>
60 <version>${archiva.version}</version>
63 <groupId>org.apache.archiva</groupId>
64 <artifactId>archiva-indexer</artifactId>
65 <version>${archiva.version}</version>
68 <groupId>org.apache.archiva</groupId>
69 <artifactId>maven2-repository</artifactId>
70 <version>${archiva.version}</version>
71 <scope>provided</scope>
74 <groupId>org.easymock</groupId>
75 <artifactId>easymock</artifactId>
76 <version>3.2</version>
80 <groupId>junit</groupId>
81 <artifactId>junit</artifactId>
82 <version>4.11</version>
86 <groupId>org.slf4j</groupId>
87 <artifactId>slf4j-api</artifactId>
88 <version>${slf4jVersion}</version>
91 <groupId>org.slf4j</groupId>
92 <artifactId>jcl-over-slf4j</artifactId>
93 <version>${slf4jVersion}</version>
97 <groupId>org.apache.logging.log4j</groupId>
98 <artifactId>log4j-core</artifactId>
99 <version>${log4jVersion}</version>
100 <scope>runtime</scope>
103 <groupId>org.apache.logging.log4j</groupId>
104 <artifactId>log4j-1.2-api</artifactId>
105 <version>${log4jVersion}</version>
106 <scope>runtime</scope>
109 <groupId>org.apache.logging.log4j</groupId>
110 <artifactId>log4j-slf4j-impl</artifactId>
111 <version>${log4jVersion}</version>
112 <scope>runtime</scope>
115 <groupId>org.apache.logging.log4j</groupId>
116 <artifactId>log4j-jcl</artifactId>
117 <version>${log4jVersion}</version>
118 <scope>runtime</scope>
122 <groupId>org.apache.archiva</groupId>
123 <artifactId>archiva-repository-admin-default</artifactId>
124 <version>${archiva.version}</version>
125 <scope>provided</scope>
128 <groupId>org.apache.archiva</groupId>
129 <artifactId>metadata-store-jcr</artifactId>
130 <version>${archiva.version}</version>
131 <scope>provided</scope>
134 <groupId>org.apache.jackrabbit</groupId>
135 <artifactId>jackrabbit-core</artifactId>
136 <version>${jackrabbit.version}</version>
137 <scope>provided</scope>
140 <groupId>commons-logging</groupId>
141 <artifactId>commons-logging</artifactId>
146 <groupId>org.springframework</groupId>
147 <artifactId>spring-core</artifactId>
148 <version>${spring.version}</version>
151 <groupId>commons-logging</groupId>
152 <artifactId>commons-logging</artifactId>
157 <groupId>org.springframework</groupId>
158 <artifactId>spring-beans</artifactId>
159 <version>${spring.version}</version>
162 <groupId>commons-logging</groupId>
163 <artifactId>commons-logging</artifactId>
168 <groupId>org.springframework</groupId>
169 <artifactId>spring-expression</artifactId>
170 <version>${spring.version}</version>
173 <groupId>commons-logging</groupId>
174 <artifactId>commons-logging</artifactId>
179 <groupId>org.springframework</groupId>
180 <artifactId>spring-test</artifactId>
181 <version>${spring.version}</version>
184 <groupId>commons-logging</groupId>
185 <artifactId>commons-logging</artifactId>
190 <groupId>org.apache.archiva.redback</groupId>
191 <artifactId>redback-common-test-resources</artifactId>
193 <version>${redback.version}</version>
196 <groupId>org.apache.archiva.redback</groupId>
197 <artifactId>redback-rbac-memory</artifactId>
199 <version>${redback.version}</version>
202 <groupId>org.apache.archiva.redback</groupId>
203 <artifactId>redback-rbac-cached</artifactId>
205 <version>${redback.version}</version>
208 <groupId>org.apache.archiva.redback</groupId>
209 <artifactId>redback-rbac-role-manager</artifactId>
211 <version>${redback.version}</version>
214 <groupId>org.apache.maven.wagon</groupId>
215 <artifactId>wagon-http</artifactId>
216 <version>${wagonVersion}</version>
220 <groupId>org.apache.httpcomponents</groupId>
221 <artifactId>httpcore</artifactId>
222 <version>${httpclientCoreVersion}</version>
225 <groupId>commons-logging</groupId>
226 <artifactId>commons-logging</artifactId>
231 <groupId>org.apache.maven.wagon</groupId>
232 <artifactId>wagon-http-lightweight</artifactId>
233 <version>${wagonVersion}</version>
237 <groupId>xerces</groupId>
238 <artifactId>xercesImpl</artifactId>
239 <version>2.11.0</version>
242 <groupId>org.apache.derby</groupId>
243 <artifactId>derby</artifactId>
244 <version>${derbyVersion}</version>
247 <groupId>commons-dbcp</groupId>
248 <artifactId>commons-dbcp</artifactId>
249 <version>1.4</version>
253 <groupId>commons-pool</groupId>
254 <artifactId>commons-pool</artifactId>
256 <version>${commons-pool.version}</version>
263 <groupId>org.apache.maven.plugins</groupId>
264 <artifactId>maven-clean-plugin</artifactId>
265 <version>2.5</version>
268 <groupId>org.apache.maven.plugins</groupId>
269 <artifactId>maven-compiler-plugin</artifactId>
270 <version>3.1</version>
273 <groupId>org.apache.maven.plugins</groupId>
274 <artifactId>maven-resources-plugin</artifactId>
275 <version>2.6</version>
278 <groupId>org.apache.maven.plugins</groupId>
279 <artifactId>maven-jar-plugin</artifactId>
280 <version>2.4</version>
283 <groupId>org.apache.maven.plugins</groupId>
284 <artifactId>maven-surefire-plugin</artifactId>
285 <version>2.17</version>
288 <groupId>org.apache.maven.plugins</groupId>
289 <artifactId>maven-antrun-plugin</artifactId>
290 <version>1.7</version>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-antrun-plugin</artifactId>
301 <phase>package</phase>
305 Remember to add the the following to the knownconsumers section in your archiva.xml file
306 <knownContentConsumer>simple-artifact-consumer</knownContentConsumer>
317 <groupId>org.apache.maven.plugins</groupId>
318 <artifactId>maven-compiler-plugin</artifactId>
325 <groupId>org.apache.maven.plugins</groupId>
326 <artifactId>maven-surefire-plugin</artifactId>
328 <systemPropertyVariables>
329 <appserver.base>${project.build.directory}/appserver-base</appserver.base>
330 <archiva.user.configFileName>${project.build.directory}/archiva.xml</archiva.user.configFileName>
331 <test.resources.path>${project.build.testOutputDirectory}</test.resources.path>
332 <redback.jdbc.url>jdbc:derby:memory:users-test;create=true</redback.jdbc.url>
333 <redback.jdbc.driver.name>org.apache.derby.jdbc.EmbeddedDriver</redback.jdbc.driver.name>
334 <java.io.tmpdir>${project.build.directory}/temp</java.io.tmpdir>
335 </systemPropertyVariables>
342 <id>archiva.snapshots</id>
343 <name>Archiva VM Snapshots Repository</name>
344 <url>https://archiva-repository.apache.org/archiva/repository/snapshots</url>
346 <enabled>false</enabled>
349 <enabled>true</enabled>