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>
20 <groupId>org.apache.archiva</groupId>
21 <artifactId>archiva-consumer-api</artifactId>
22 <version>${archiva.version}</version>
25 <groupId>org.apache.archiva</groupId>
26 <artifactId>archiva-configuration</artifactId>
27 <version>${archiva.version}</version>
30 <groupId>org.apache.archiva</groupId>
31 <artifactId>archiva-repository-layer</artifactId>
32 <version>${archiva.version}</version>
35 <groupId>org.apache.archiva</groupId>
36 <artifactId>archiva-indexer</artifactId>
37 <version>${archiva.version}</version>
40 <groupId>org.easymock</groupId>
41 <artifactId>easymock</artifactId>
42 <version>2.2</version>
46 <groupId>junit</groupId>
47 <artifactId>junit</artifactId>
48 <version>4.9</version>
52 <groupId>org.slf4j</groupId>
53 <artifactId>slf4j-api</artifactId>
54 <version>1.6.4</version>
57 <groupId>org.slf4j</groupId>
58 <artifactId>slf4j-log4j12</artifactId>
59 <version>1.6.4</version>
60 <scope>provided</scope>
63 <groupId>org.apache.archiva</groupId>
64 <artifactId>archiva-repository-admin-default</artifactId>
65 <version>${archiva.version}</version>
66 <scope>provided</scope>
69 <groupId>org.apache.archiva</groupId>
70 <artifactId>metadata-store-jcr</artifactId>
71 <version>${archiva.version}</version>
72 <scope>provided</scope>
75 <groupId>org.apache.jackrabbit</groupId>
76 <artifactId>jackrabbit-core</artifactId>
77 <version>${jackrabbit.version}</version>
78 <scope>provided</scope>
81 <groupId>commons-logging</groupId>
82 <artifactId>commons-logging</artifactId>
87 <groupId>org.springframework</groupId>
88 <artifactId>spring-core</artifactId>
89 <version>${spring.version}</version>
92 <groupId>commons-logging</groupId>
93 <artifactId>commons-logging</artifactId>
98 <groupId>org.springframework</groupId>
99 <artifactId>spring-beans</artifactId>
100 <version>${spring.version}</version>
103 <groupId>commons-logging</groupId>
104 <artifactId>commons-logging</artifactId>
109 <groupId>org.springframework</groupId>
110 <artifactId>spring-expression</artifactId>
111 <version>${spring.version}</version>
114 <groupId>commons-logging</groupId>
115 <artifactId>commons-logging</artifactId>
120 <groupId>org.springframework</groupId>
121 <artifactId>spring-test</artifactId>
122 <version>${spring.version}</version>
125 <groupId>commons-logging</groupId>
126 <artifactId>commons-logging</artifactId>
131 <groupId>org.codehaus.redback</groupId>
132 <artifactId>redback-common-test-resources</artifactId>
134 <version>${redback.version}</version>
137 <groupId>org.codehaus.redback</groupId>
138 <artifactId>redback-rbac-memory</artifactId>
140 <version>${redback.version}</version>
143 <groupId>org.codehaus.redback</groupId>
144 <artifactId>redback-rbac-cached</artifactId>
146 <version>${redback.version}</version>
149 <groupId>org.codehaus.redback</groupId>
150 <artifactId>redback-rbac-role-manager</artifactId>
152 <version>${redback.version}</version>
159 <groupId>org.apache.maven.plugins</groupId>
160 <artifactId>maven-clean-plugin</artifactId>
161 <version>2.4.1</version>
164 <groupId>org.apache.maven.plugins</groupId>
165 <artifactId>maven-compiler-plugin</artifactId>
166 <version>2.3.2</version>
169 <groupId>org.apache.maven.plugins</groupId>
170 <artifactId>maven-resources-plugin</artifactId>
171 <version>2.5</version>
174 <groupId>org.apache.maven.plugins</groupId>
175 <artifactId>maven-jar-plugin</artifactId>
176 <version>2.3.2</version>
179 <groupId>org.apache.maven.plugins</groupId>
180 <artifactId>maven-surefire-plugin</artifactId>
181 <version>2.11</version>
187 <groupId>org.apache.maven.plugins</groupId>
188 <artifactId>maven-antrun-plugin</artifactId>
189 <version>1.6</version>
193 <phase>package</phase>
197 Remember to add the the following to the knownconsumers section in your archiva.xml file
198 <knownContentConsumer>simple-artifact-consumer</knownContentConsumer>
209 <groupId>org.apache.maven.plugins</groupId>
210 <artifactId>maven-compiler-plugin</artifactId>
217 <groupId>org.apache.maven.plugins</groupId>
218 <artifactId>maven-surefire-plugin</artifactId>
220 <systemPropertyVariables>
221 <appserver.base>${project.build.directory}/appserver-base</appserver.base>
222 <archiva.user.configFileName>${project.build.directory}/archiva.xml</archiva.user.configFileName>
223 <test.resources.path>${project.build.testOutputDirectory}</test.resources.path>
224 <redback.jdbc.url>jdbc:derby:memory:users-test;create=true</redback.jdbc.url>
225 <redback.jdbc.driver.name>org.apache.derby.jdbc.EmbeddedDriver</redback.jdbc.driver.name>
226 <java.io.tmpdir>${project.build.directory}/temp</java.io.tmpdir>
227 </systemPropertyVariables>
234 <id>redback.snapshots</id>
235 <name>Codehaus Redback Snapshots Repository</name>
236 <url>http://snapshots.repository.codehaus.org/</url>
238 <enabled>false</enabled>
241 <enabled>true</enabled>