You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 14KB

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