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
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>
32 This is a simple consumer component which demonstrates how a
33 component can be plugged in Archiva.
36 <archiva.version>${archivaVersion}</archiva.version>
37 <wagonVersion>${wagon.version}</wagonVersion>
38 <slf4jVersion>${slf4j.version}</slf4jVersion>
39 <log4jVersion>${log4j.version}</log4jVersion>
43 <groupId>org.apache.archiva</groupId>
44 <artifactId>archiva-consumer-api</artifactId>
45 <version>${archiva.version}</version>
48 <groupId>org.apache.archiva</groupId>
49 <artifactId>archiva-configuration</artifactId>
50 <version>${archiva.version}</version>
53 <groupId>org.apache.archiva</groupId>
54 <artifactId>archiva-repository-layer</artifactId>
55 <version>${archiva.version}</version>
58 <groupId>org.apache.archiva</groupId>
59 <artifactId>archiva-indexer</artifactId>
60 <version>${archiva.version}</version>
63 <groupId>org.apache.archiva</groupId>
64 <artifactId>maven2-repository</artifactId>
65 <version>${archiva.version}</version>
66 <scope>provided</scope>
69 <groupId>org.easymock</groupId>
70 <artifactId>easymock</artifactId>
71 <version>2.5.2</version>
75 <groupId>junit</groupId>
76 <artifactId>junit</artifactId>
77 <version>4.9</version>
81 <groupId>org.slf4j</groupId>
82 <artifactId>slf4j-api</artifactId>
83 <version>${slf4jVersion}</version>
87 <groupId>org.apache.logging.log4j</groupId>
88 <artifactId>log4j-core</artifactId>
89 <version>${log4jVersion}</version>
90 <scope>runtime</scope>
93 <groupId>org.apache.logging.log4j.adapters</groupId>
94 <artifactId>log4j12-api</artifactId>
95 <version>${log4jVersion}</version>
96 <scope>runtime</scope>
99 <groupId>org.apache.logging.log4j.adapters</groupId>
100 <artifactId>log4j-slf4j-impl</artifactId>
101 <version>${log4jVersion}</version>
102 <scope>runtime</scope>
105 <groupId>org.apache.logging.log4j.adapters</groupId>
106 <artifactId>log4j-jcl</artifactId>
107 <version>${log4jVersion}</version>
108 <scope>runtime</scope>
112 <groupId>org.apache.archiva</groupId>
113 <artifactId>archiva-repository-admin-default</artifactId>
114 <version>${archiva.version}</version>
115 <scope>provided</scope>
118 <groupId>org.apache.archiva</groupId>
119 <artifactId>metadata-store-jcr</artifactId>
120 <version>${archiva.version}</version>
121 <scope>provided</scope>
124 <groupId>org.apache.jackrabbit</groupId>
125 <artifactId>jackrabbit-core</artifactId>
126 <version>${jackrabbit.version}</version>
127 <scope>provided</scope>
130 <groupId>commons-logging</groupId>
131 <artifactId>commons-logging</artifactId>
136 <groupId>org.springframework</groupId>
137 <artifactId>spring-core</artifactId>
138 <version>${spring.version}</version>
141 <groupId>commons-logging</groupId>
142 <artifactId>commons-logging</artifactId>
147 <groupId>org.springframework</groupId>
148 <artifactId>spring-beans</artifactId>
149 <version>${spring.version}</version>
152 <groupId>commons-logging</groupId>
153 <artifactId>commons-logging</artifactId>
158 <groupId>org.springframework</groupId>
159 <artifactId>spring-expression</artifactId>
160 <version>${spring.version}</version>
163 <groupId>commons-logging</groupId>
164 <artifactId>commons-logging</artifactId>
169 <groupId>org.springframework</groupId>
170 <artifactId>spring-test</artifactId>
171 <version>${spring.version}</version>
174 <groupId>commons-logging</groupId>
175 <artifactId>commons-logging</artifactId>
180 <groupId>org.apache.archiva.redback</groupId>
181 <artifactId>redback-common-test-resources</artifactId>
183 <version>${redback.version}</version>
186 <groupId>org.apache.archiva.redback</groupId>
187 <artifactId>redback-rbac-memory</artifactId>
189 <version>${redback.version}</version>
192 <groupId>org.apache.archiva.redback</groupId>
193 <artifactId>redback-rbac-cached</artifactId>
195 <version>${redback.version}</version>
198 <groupId>org.apache.archiva.redback</groupId>
199 <artifactId>redback-rbac-role-manager</artifactId>
201 <version>${redback.version}</version>
204 <groupId>org.apache.maven.wagon</groupId>
205 <artifactId>wagon-http</artifactId>
206 <version>${wagonVersion}</version>
210 <groupId>org.apache.maven.wagon</groupId>
211 <artifactId>wagon-http-lightweight</artifactId>
212 <version>${wagonVersion}</version>
216 <groupId>xerces</groupId>
217 <artifactId>xercesImpl</artifactId>
218 <version>2.8.1</version>
221 <groupId>org.apache.derby</groupId>
222 <artifactId>derby</artifactId>
223 <version>${derbyVersion}</version>
226 <groupId>commons-dbcp</groupId>
227 <artifactId>commons-dbcp</artifactId>
228 <version>1.4</version>
236 <groupId>org.apache.maven.plugins</groupId>
237 <artifactId>maven-clean-plugin</artifactId>
238 <version>2.4.1</version>
241 <groupId>org.apache.maven.plugins</groupId>
242 <artifactId>maven-compiler-plugin</artifactId>
243 <version>2.3.2</version>
246 <groupId>org.apache.maven.plugins</groupId>
247 <artifactId>maven-resources-plugin</artifactId>
248 <version>2.5</version>
251 <groupId>org.apache.maven.plugins</groupId>
252 <artifactId>maven-jar-plugin</artifactId>
253 <version>2.3.2</version>
256 <groupId>org.apache.maven.plugins</groupId>
257 <artifactId>maven-surefire-plugin</artifactId>
258 <version>2.11</version>
264 <groupId>org.apache.maven.plugins</groupId>
265 <artifactId>maven-antrun-plugin</artifactId>
266 <version>1.6</version>
270 <phase>package</phase>
274 Remember to add the the following to the knownconsumers section in your archiva.xml file
275 <knownContentConsumer>simple-artifact-consumer</knownContentConsumer>
286 <groupId>org.apache.maven.plugins</groupId>
287 <artifactId>maven-compiler-plugin</artifactId>
294 <groupId>org.apache.maven.plugins</groupId>
295 <artifactId>maven-surefire-plugin</artifactId>
296 <version>2.12</version>
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>
312 <id>archiva.snapshots</id>
313 <name>Archiva VM Snapshots Repository</name>
314 <url>https://archiva-repository.apache.org/archiva/repository/snapshots</url>
316 <enabled>false</enabled>
319 <enabled>true</enabled>