]> source.dussan.org Git - archiva.git/blob
8304d2dd0d2905a245731d3d50b47f6b2c108fcf
[archiva.git] /
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
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
10   ~
11   ~   http://www.apache.org/licenses/LICENSE-2.0
12   ~
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
18   ~ under the License.
19   -->
20
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
23   <modelVersion>4.0.0</modelVersion>
24   <parent>
25     <groupId>org.apache.maven.archiva</groupId>
26     <artifactId>archiva</artifactId>
27     <version>1.0-SNAPSHOT</version>
28   </parent>
29   <artifactId>archiva-webapp</artifactId>
30   <packaging>war</packaging>
31   <name>Archiva Web Application</name>
32   <dependencies>
33     <dependency>
34       <groupId>javax.servlet</groupId>
35       <artifactId>servlet-api</artifactId>
36       <version>2.4</version>
37       <scope>provided</scope>
38     </dependency>
39     <dependency>
40       <groupId>javax.servlet</groupId>
41       <artifactId>jsp-api</artifactId>
42       <version>2.0</version>
43       <scope>provided</scope>
44     </dependency>
45     <dependency>
46       <groupId>opensymphony</groupId>
47       <artifactId>sitemesh</artifactId>
48       <version>2.2.1</version>
49     </dependency>
50     <dependency>
51       <groupId>taglibs</groupId>
52       <artifactId>standard</artifactId>
53       <version>1.1.2</version>
54     </dependency>
55     <dependency>
56       <groupId>javax.servlet</groupId>
57       <artifactId>jstl</artifactId>
58       <version>1.1.2</version>
59     </dependency>
60     <dependency>
61       <groupId>org.apache.maven.shared</groupId>
62       <artifactId>maven-app-configuration-model</artifactId>
63     </dependency>
64     <dependency>
65       <groupId>org.apache.maven.shared</groupId>
66       <artifactId>maven-app-configuration-web</artifactId>
67     </dependency>
68     <dependency>
69       <groupId>org.codehaus.plexus</groupId>
70       <artifactId>plexus-log4j-logging</artifactId>
71       <version>1.1-alpha-2</version>
72       <scope>runtime</scope>
73     </dependency>
74     <dependency>
75       <groupId>commons-logging</groupId>
76       <artifactId>commons-logging</artifactId>
77       <version>1.0.4</version>
78       <scope>runtime</scope>
79     </dependency>
80     <dependency>
81       <groupId>commons-lang</groupId>
82       <artifactId>commons-lang</artifactId>
83       <version>2.2</version>
84     </dependency>
85     <dependency>
86       <groupId>org.apache.maven.wagon</groupId>
87       <artifactId>wagon-http-lightweight</artifactId>
88       <scope>runtime</scope>
89     </dependency>
90     <dependency>
91       <groupId>org.apache.maven.wagon</groupId>
92       <artifactId>wagon-file</artifactId>
93       <scope>runtime</scope>
94     </dependency>
95     <dependency>
96       <groupId>opensymphony</groupId>
97       <artifactId>webwork</artifactId>
98       <version>2.2.4</version>
99     </dependency>
100     <dependency>
101       <groupId>org.codehaus.plexus.registry</groupId>
102       <artifactId>plexus-registry-commons</artifactId>
103       <version>1.0-SNAPSHOT</version>
104     </dependency>
105     <dependency>
106       <groupId>org.codehaus.plexus</groupId>
107       <artifactId>plexus-component-api</artifactId>
108     </dependency>
109     <dependency>
110       <groupId>org.codehaus.plexus</groupId>
111       <artifactId>plexus-container-default</artifactId>
112     </dependency>
113     <dependency>
114       <groupId>org.apache.maven.archiva</groupId>
115       <artifactId>archiva-proxy</artifactId>
116     </dependency>
117     <dependency>
118       <groupId>org.apache.maven.archiva</groupId>
119       <artifactId>archiva-core</artifactId>
120     </dependency>
121     <dependency>
122       <groupId>org.apache.maven.archiva</groupId>
123       <artifactId>archiva-common</artifactId>
124     </dependency>
125     <dependency>
126       <groupId>org.apache.maven.archiva</groupId>
127       <artifactId>archiva-security</artifactId>
128     </dependency>
129     <dependency>
130       <groupId>org.apache.maven.archiva</groupId>
131       <artifactId>archiva-applet</artifactId>
132       <!-- TODO: actually, just exclude from WAR plugin -->
133       <scope>provided</scope>
134     </dependency>
135     <dependency>
136       <groupId>org.apache.maven</groupId>
137       <artifactId>maven-project</artifactId>
138     </dependency>
139     <dependency>
140       <groupId>org.apache.maven.shared</groupId>
141       <artifactId>maven-dependency-tree</artifactId>
142       <version>1.0-alpha-2</version>
143     </dependency>
144     <!-- Plexus Security Dependencies -->
145     <dependency>
146       <groupId>org.codehaus.plexus.security</groupId>
147       <artifactId>plexus-security-ui-web</artifactId>
148       <type>war</type>
149       <scope>runtime</scope>
150     </dependency>
151     <dependency>
152       <groupId>org.codehaus.plexus.security</groupId>
153       <artifactId>plexus-security-ui-web-taglib</artifactId>
154     </dependency>
155     <!-- Other dependencies -->
156     <dependency>
157       <groupId>org.codehaus.plexus.webdav</groupId>
158       <artifactId>plexus-webdav-simple</artifactId>
159       <version>1.0-alpha-1-SNAPSHOT</version>
160     </dependency>
161     <dependency>
162       <groupId>org.codehaus.plexus</groupId>
163       <artifactId>plexus-xwork-integration</artifactId>
164       <version>1.0-alpha-5</version>
165     </dependency>
166     <dependency>
167       <groupId>org.codehaus.plexus</groupId>
168       <artifactId>plexus-utils</artifactId>
169     </dependency>
170     <dependency>
171       <groupId>org.apache.derby</groupId>
172       <artifactId>derby</artifactId>
173       <version>10.1.3.1</version>
174       <scope>provided</scope>
175     </dependency>
176     <dependency>
177       <groupId>javax.mail</groupId>
178       <artifactId>mail</artifactId>
179       <version>1.4</version>
180       <scope>provided</scope>
181     </dependency>
182     <dependency>
183       <groupId>javax.activation</groupId>
184       <artifactId>activation</artifactId>
185       <version>1.1</version>
186       <scope>provided</scope>
187     </dependency>
188   </dependencies>
189   <build>
190     <plugins>
191       <plugin>
192         <groupId>org.apache.maven.plugins</groupId>
193         <artifactId>maven-clean-plugin</artifactId>
194         <version>2.1.1</version>
195         <!-- This configuration is added to cleanup from war:inplace -->
196         <configuration>
197           <filesets>
198             <fileset>
199               <directory>${basedir}/src/main/webapp</directory>
200               <includes>
201                 <!-- TODO: META-INF shouldn't be required, seems to be an issue with the current war plugin -->
202                 <include>META-INF</include>
203                 <include>images/pss</include>
204                 <!-- Images from other wars -->
205                 <include>template/pss</include>
206                 <!-- Templates from other wars -->
207                 <include>WEB-INF/classes</include>
208                 <!-- Classes and Resources from other wars -->
209                 <include>WEB-INF/lib</include>
210                 <!-- Dependencies from other wars -->
211                 <include>WEB-INF/database</include>
212                 <!-- Database location configured in application.xml -->
213                 <include>WEB-INF/logs</include>
214                 <!-- Log file location specified in application.xml -->
215                 <include>pss</include>
216                 <!-- plexus-security css and javascript -->
217                 <include>css/pss</include>
218                 <include>WEB-INF/jsp/pss</include>
219                 <!-- plexus-security jsps -->
220                 <include>WEB-INF/template/pss</include>
221                 <!-- plexus-security xwork templates -->
222                 <include>WEB-INF/logs</include>
223                 <!-- Directory created by jetty:run -->
224                 <include>WEB-INF/temp</include>
225                 <!-- Directory created by jetty:run -->
226               </includes>
227             </fileset>
228           </filesets>
229         </configuration>
230       </plugin>
231       <plugin>
232         <groupId>org.apache.maven.plugins</groupId>
233         <artifactId>maven-war-plugin</artifactId>
234         <version>2.0.1</version>
235         <configuration>
236           <!-- Some versions of maven-war-plugin (snapshots) have this incorrectly defaulted to true.
237                Specifically setting this to false to avoid accidental jar file creation. -->
238           <archiveClasses>false</archiveClasses>
239           <dependentWarExcludes>META-INF/**,WEB-INF/web.xml,WEB-INF/classes/xwork.xml</dependentWarExcludes>
240         </configuration>
241         <!-- TODO: would be good to make the jetty plugin aware of these and remove the below -->
242         <executions>
243           <execution>
244             <phase>compile</phase>
245             <goals>
246               <!-- Needed to get the plexus-security war overlay to do its thing before jetty:run -->
247               <goal>inplace</goal>
248             </goals>
249           </execution>
250         </executions>
251       </plugin>
252       <plugin>
253         <groupId>org.mortbay.jetty</groupId>
254         <artifactId>maven-jetty-plugin</artifactId>
255         <version>6.1.1</version>
256         <configuration>
257           <scanIntervalSeconds>10</scanIntervalSeconds>
258           <contextPath>/</contextPath>
259           <jettyEnvXml>src/jetty-env.xml</jettyEnvXml>
260           <connectors>
261             <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
262               <port>9091</port>
263               <maxIdleTime>60000</maxIdleTime>
264             </connector>
265           </connectors>
266           <systemProperties>
267             <systemProperty>
268               <name>appserver.base</name>
269               <value>${project.build.directory}/appserver-base</value>
270             </systemProperty>
271             <systemProperty>
272               <name>derby.system.home</name>
273               <value>${project.build.directory}/appserver-base/logs</value>
274             </systemProperty>
275           </systemProperties>
276         </configuration>
277         <dependencies>
278           <dependency>
279             <groupId>org.apache.derby</groupId>
280             <artifactId>derby</artifactId>
281             <version>10.1.3.1</version>
282           </dependency>
283         </dependencies>
284       </plugin>
285       <plugin>
286         <groupId>org.codehaus.mojo</groupId>
287         <artifactId>dependency-maven-plugin</artifactId>
288         <executions>
289           <execution>
290             <id>copy</id>
291             <phase>process-resources</phase>
292             <goals>
293               <goal>copy</goal>
294             </goals>
295             <configuration>
296               <artifactItems>
297                 <artifactItem>
298                   <groupId>${project.groupId}</groupId>
299                   <artifactId>archiva-applet</artifactId>
300                   <version>${project.version}</version>
301                   <outputDirectory>src/main/webapp</outputDirectory>
302                   <destFileName>archiva-applet.jar</destFileName>
303                 </artifactItem>
304               </artifactItems>
305             </configuration>
306           </execution>
307         </executions>
308       </plugin>
309       <plugin>
310         <groupId>org.codehaus.plexus</groupId>
311         <artifactId>plexus-maven-plugin</artifactId>
312         <configuration>
313           <roleDefaults>
314             <roleDefault>
315               <role>com.opensymphony.xwork.Action</role>
316               <instantiation-strategy>per-lookup</instantiation-strategy>
317             </roleDefault>
318           </roleDefaults>
319         </configuration>
320       </plugin>
321       <plugin>
322         <groupId>org.codehaus.mojo</groupId>
323         <artifactId>cobertura-maven-plugin</artifactId>
324         <configuration>
325           <instrumentation>
326             <excludes>
327               <exclude>**/**</exclude>
328             </excludes>
329           </instrumentation>
330         </configuration>
331       </plugin>
332     </plugins>
333   </build>
334 </project>