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>2.3.0</version>
78 <scope>provided</scope>
81 <groupId>commons-logging</groupId>
82 <artifactId>commons-logging</artifactId>
87 <groupId>org.codehaus.redback</groupId>
88 <artifactId>redback-common-test-resources</artifactId>
90 <version>1.4-SNAPSHOT</version>
93 <groupId>org.codehaus.redback</groupId>
94 <artifactId>redback-rbac-memory</artifactId>
96 <version>1.4-SNAPSHOT</version>
99 <groupId>org.codehaus.redback</groupId>
100 <artifactId>redback-rbac-cached</artifactId>
102 <version>1.4-SNAPSHOT</version>
105 <groupId>org.codehaus.redback</groupId>
106 <artifactId>redback-rbac-role-manager</artifactId>
108 <version>1.4-SNAPSHOT</version>
114 <groupId>org.apache.maven.plugins</groupId>
115 <artifactId>maven-antrun-plugin</artifactId>
116 <version>1.6</version>
120 <phase>package</phase>
124 Remember to add the the following to the knownconsumers section in your archiva.xml file
125 <knownContentConsumer>simple-artifact-consumer</knownContentConsumer>
136 <groupId>org.apache.maven.plugins</groupId>
137 <artifactId>maven-compiler-plugin</artifactId>
138 <version>2.3.2</version>
145 <groupId>org.apache.maven.plugins</groupId>
146 <artifactId>maven-surefire-plugin</artifactId>
147 <version>2.10</version>
149 <systemPropertyVariables>
150 <appserver.base>${project.build.directory}/appserver-base</appserver.base>
151 <archiva.user.configFileName>${basedir}/target/archiva.xml</archiva.user.configFileName>
152 <test.resources.path>${project.build.testOutputDirectory}</test.resources.path>
153 <redback.jdbc.url>jdbc:derby:memory:users-test;create=true</redback.jdbc.url>
154 <redback.jdbc.driver.name>org.apache.derby.jdbc.EmbeddedDriver</redback.jdbc.driver.name>
155 </systemPropertyVariables>
162 <id>vmbuild.snapshots</id>
163 <url>http://vmbuild.apache.org/archiva/repository/snapshots</url>
165 <enabled>false</enabled>
168 <enabled>true</enabled>
172 <id>redback.snapshots</id>
173 <name>Codehaus Redback Snapshots Repository</name>
174 <url>http://snapshots.repository.codehaus.org/</url>
176 <enabled>false</enabled>
179 <enabled>true</enabled>