]> source.dussan.org Git - archiva.git/blob
1c0588316ea9cb21da016574fa172aaa564250cb
[archiva.git] /
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://maven.apache.org</url>
11   <description>
12     This is a simple consumer component which demonstrates how a
13     component can be plugged in Archiva.
14   </description>
15   <properties>
16     <archiva.version>${archivaVersion}</archiva.version>
17   </properties>
18   <dependencies>
19     <dependency>
20       <groupId>org.apache.archiva</groupId>
21       <artifactId>archiva-consumer-api</artifactId>
22       <version>${archiva.version}</version>
23     </dependency>
24     <dependency>
25       <groupId>org.apache.archiva</groupId>
26       <artifactId>archiva-configuration</artifactId>
27       <version>${archiva.version}</version>
28     </dependency>
29     <dependency>
30       <groupId>org.apache.archiva</groupId>
31       <artifactId>archiva-repository-layer</artifactId>
32       <version>${archiva.version}</version>
33     </dependency>
34     <dependency>
35       <groupId>org.apache.archiva</groupId>
36       <artifactId>archiva-indexer</artifactId>
37       <version>${archiva.version}</version>
38     </dependency>
39     <dependency>
40       <groupId>org.easymock</groupId>
41       <artifactId>easymock</artifactId>
42       <version>2.2</version>
43       <scope>test</scope>
44     </dependency>
45     <dependency>
46       <groupId>junit</groupId>
47       <artifactId>junit</artifactId>
48       <version>4.9</version>
49       <scope>test</scope>
50     </dependency>
51   </dependencies>
52   <build>
53     <plugins>
54       <plugin>
55         <groupId>org.apache.maven.plugins</groupId>
56         <artifactId>maven-antrun-plugin</artifactId>
57         <executions>
58           <execution>
59             <id>package</id>
60             <phase>package</phase>
61             <configuration>
62               <tasks>
63                 <echo>
64                 Remember to add the the following to the knownconsumers section in ~/.m2/archiva.xml 
65                  &lt;knownContentConsumer>simple-artifact-consumer&lt;/knownContentConsumer>
66                 </echo>
67               </tasks>
68             </configuration>
69             <goals>
70               <goal>run</goal>
71             </goals>
72           </execution>
73         </executions>
74       </plugin>
75       <plugin>
76         <groupId>org.apache.maven.plugins</groupId>
77         <artifactId>maven-compiler-plugin</artifactId>
78         <configuration>
79           <source>1.5</source>
80           <target>1.5</target>
81         </configuration>
82       </plugin>
83     </plugins>
84   </build>
85   <repositories>
86     <repository>
87       <id>vmbuild.snapshots</id>
88       <url>http://vmbuild.apache.org/archiva/repository/snapshots</url>
89       <releases>
90         <enabled>false</enabled>
91       </releases>
92       <snapshots>
93         <enabled>true</enabled>
94       </snapshots>
95     </repository>
96   </repositories>
97 </project>