1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <modelVersion>4.0.0</modelVersion>
5 <groupId>${groupId}</groupId>
6 <artifactId>${artifactId}</artifactId>
7 <version>${version}</version>
8 <packaging>jar</packaging>
9 <name>Simple Archiva Consumer</name>
10 <url>http://archiva.apache.org</url>
12 This is a simple consumer component which demonstrates how a
13 component can be plugged in Archiva.
16 <archiva.version>${archivaVersion}</archiva.version>
17 <wagonVersion>${wagon.version}</wagonVersion>
21 <groupId>org.apache.archiva</groupId>
22 <artifactId>archiva-consumer-api</artifactId>
23 <version>${archiva.version}</version>
26 <groupId>org.apache.archiva</groupId>
27 <artifactId>archiva-configuration</artifactId>
28 <version>${archiva.version}</version>
31 <groupId>org.apache.archiva</groupId>
32 <artifactId>archiva-repository-layer</artifactId>
33 <version>${archiva.version}</version>
36 <groupId>org.apache.archiva</groupId>
37 <artifactId>archiva-indexer</artifactId>
38 <version>${archiva.version}</version>
41 <groupId>org.easymock</groupId>
42 <artifactId>easymock</artifactId>
43 <version>2.2</version>
47 <groupId>junit</groupId>
48 <artifactId>junit</artifactId>
49 <version>4.9</version>
53 <groupId>org.slf4j</groupId>
54 <artifactId>slf4j-api</artifactId>
55 <version>1.6.4</version>
58 <groupId>org.slf4j</groupId>
59 <artifactId>slf4j-log4j12</artifactId>
60 <version>1.6.4</version>
61 <scope>provided</scope>
64 <groupId>org.apache.archiva</groupId>
65 <artifactId>archiva-repository-admin-default</artifactId>
66 <version>${archiva.version}</version>
67 <scope>provided</scope>
70 <groupId>org.apache.archiva</groupId>
71 <artifactId>metadata-store-jcr</artifactId>
72 <version>${archiva.version}</version>
73 <scope>provided</scope>
76 <groupId>org.apache.jackrabbit</groupId>
77 <artifactId>jackrabbit-core</artifactId>
78 <version>${jackrabbit.version}</version>
79 <scope>provided</scope>
82 <groupId>commons-logging</groupId>
83 <artifactId>commons-logging</artifactId>
88 <groupId>org.springframework</groupId>
89 <artifactId>spring-core</artifactId>
90 <version>${spring.version}</version>
93 <groupId>commons-logging</groupId>
94 <artifactId>commons-logging</artifactId>
99 <groupId>org.springframework</groupId>
100 <artifactId>spring-beans</artifactId>
101 <version>${spring.version}</version>
104 <groupId>commons-logging</groupId>
105 <artifactId>commons-logging</artifactId>
110 <groupId>org.springframework</groupId>
111 <artifactId>spring-expression</artifactId>
112 <version>${spring.version}</version>
115 <groupId>commons-logging</groupId>
116 <artifactId>commons-logging</artifactId>
121 <groupId>org.springframework</groupId>
122 <artifactId>spring-test</artifactId>
123 <version>${spring.version}</version>
126 <groupId>commons-logging</groupId>
127 <artifactId>commons-logging</artifactId>
132 <groupId>org.codehaus.redback</groupId>
133 <artifactId>redback-common-test-resources</artifactId>
135 <version>${redback.version}</version>
138 <groupId>org.codehaus.redback</groupId>
139 <artifactId>redback-rbac-memory</artifactId>
141 <version>${redback.version}</version>
144 <groupId>org.codehaus.redback</groupId>
145 <artifactId>redback-rbac-cached</artifactId>
147 <version>${redback.version}</version>
150 <groupId>org.codehaus.redback</groupId>
151 <artifactId>redback-rbac-role-manager</artifactId>
153 <version>${redback.version}</version>
156 <groupId>org.apache.maven.wagon</groupId>
157 <artifactId>wagon-http</artifactId>
158 <version>${wagonVersion}</version>
162 <groupId>org.apache.maven.wagon</groupId>
163 <artifactId>wagon-http-lightweight</artifactId>
164 <version>${wagonVersion}</version>
172 <groupId>org.apache.maven.plugins</groupId>
173 <artifactId>maven-clean-plugin</artifactId>
174 <version>2.4.1</version>
177 <groupId>org.apache.maven.plugins</groupId>
178 <artifactId>maven-compiler-plugin</artifactId>
179 <version>2.3.2</version>
182 <groupId>org.apache.maven.plugins</groupId>
183 <artifactId>maven-resources-plugin</artifactId>
184 <version>2.5</version>
187 <groupId>org.apache.maven.plugins</groupId>
188 <artifactId>maven-jar-plugin</artifactId>
189 <version>2.3.2</version>
192 <groupId>org.apache.maven.plugins</groupId>
193 <artifactId>maven-surefire-plugin</artifactId>
194 <version>2.11</version>
200 <groupId>org.apache.maven.plugins</groupId>
201 <artifactId>maven-antrun-plugin</artifactId>
202 <version>1.6</version>
206 <phase>package</phase>
210 Remember to add the the following to the knownconsumers section in your archiva.xml file
211 <knownContentConsumer>simple-artifact-consumer</knownContentConsumer>
222 <groupId>org.apache.maven.plugins</groupId>
223 <artifactId>maven-compiler-plugin</artifactId>
230 <groupId>org.apache.maven.plugins</groupId>
231 <artifactId>maven-surefire-plugin</artifactId>
233 <systemPropertyVariables>
234 <appserver.base>${project.build.directory}/appserver-base</appserver.base>
235 <archiva.user.configFileName>${project.build.directory}/archiva.xml</archiva.user.configFileName>
236 <test.resources.path>${project.build.testOutputDirectory}</test.resources.path>
237 <redback.jdbc.url>jdbc:derby:memory:users-test;create=true</redback.jdbc.url>
238 <redback.jdbc.driver.name>org.apache.derby.jdbc.EmbeddedDriver</redback.jdbc.driver.name>
239 <java.io.tmpdir>${project.build.directory}/temp</java.io.tmpdir>
240 </systemPropertyVariables>
247 <id>redback.snapshots</id>
248 <name>Codehaus Redback Snapshots Repository</name>
249 <url>http://snapshots.repository.codehaus.org/</url>
251 <enabled>false</enabled>
254 <enabled>true</enabled>