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 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  21. <modelVersion>4.0.0</modelVersion>
  22. <parent>
  23. <groupId>org.apache.archiva</groupId>
  24. <artifactId>archiva-web</artifactId>
  25. <version>1.2-SNAPSHOT</version>
  26. <relativePath>../pom.xml</relativePath>
  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.archiva</groupId>
  34. <artifactId>archiva-report-manager</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.apache.archiva</groupId>
  38. <artifactId>archiva-scheduled</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.apache.archiva</groupId>
  42. <artifactId>archiva-indexer</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.archiva</groupId>
  46. <artifactId>archiva-proxy</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.archiva</groupId>
  50. <artifactId>archiva-database</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.apache.archiva</groupId>
  54. <artifactId>archiva-repository-layer</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.apache.archiva</groupId>
  58. <artifactId>archiva-security</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.apache.archiva</groupId>
  62. <artifactId>archiva-core-consumers</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.apache.archiva</groupId>
  66. <artifactId>archiva-database-consumers</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.apache.archiva</groupId>
  70. <artifactId>archiva-lucene-consumers</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.apache.archiva</groupId>
  74. <artifactId>archiva-signature-consumers</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.apache.archiva</groupId>
  78. <artifactId>archiva-applet</artifactId>
  79. <!-- TODO: actually, just exclude from WAR plugin -->
  80. <scope>provided</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.apache.archiva</groupId>
  84. <artifactId>archiva-rss</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.apache.archiva</groupId>
  88. <artifactId>archiva-xmlrpc-api</artifactId>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.apache.archiva</groupId>
  92. <artifactId>archiva-xmlrpc-services</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.apache.archiva</groupId>
  96. <artifactId>archiva-xmlrpc-security</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>javax.servlet</groupId>
  100. <artifactId>servlet-api</artifactId>
  101. <scope>provided</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>javax.servlet</groupId>
  105. <artifactId>jsp-api</artifactId>
  106. <scope>provided</scope>
  107. </dependency>
  108. <dependency>
  109. <groupId>opensymphony</groupId>
  110. <artifactId>sitemesh</artifactId>
  111. </dependency>
  112. <dependency>
  113. <groupId>taglibs</groupId>
  114. <artifactId>standard</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>javax.servlet</groupId>
  118. <artifactId>jstl</artifactId>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.codehaus.plexus</groupId>
  122. <artifactId>plexus-slf4j-logging</artifactId>
  123. <scope>runtime</scope>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.slf4j</groupId>
  127. <artifactId>slf4j-log4j12</artifactId>
  128. </dependency>
  129. <dependency>
  130. <groupId>commons-lang</groupId>
  131. <artifactId>commons-lang</artifactId>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.apache.struts</groupId>
  135. <artifactId>struts2-core</artifactId>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.codehaus.plexus.registry</groupId>
  139. <artifactId>plexus-registry-api</artifactId>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.codehaus.plexus.registry</groupId>
  143. <artifactId>plexus-registry-commons</artifactId>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.codehaus.plexus.cache</groupId>
  147. <artifactId>plexus-cache-api</artifactId>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.codehaus.plexus.cache</groupId>
  151. <artifactId>plexus-cache-ehcache</artifactId>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.codehaus.plexus</groupId>
  155. <artifactId>plexus-component-api</artifactId>
  156. </dependency>
  157. <!-- Plexus Security Dependencies -->
  158. <dependency>
  159. <groupId>org.codehaus.redback</groupId>
  160. <artifactId>redback-struts2-content</artifactId>
  161. <type>war</type>
  162. <scope>runtime</scope>
  163. </dependency>
  164. <dependency>
  165. <groupId>org.codehaus.redback</groupId>
  166. <artifactId>redback-struts2-integration</artifactId>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.codehaus.redback</groupId>
  170. <artifactId>redback-common-integrations</artifactId>
  171. </dependency>
  172. <!-- Other dependencies -->
  173. <dependency>
  174. <groupId>org.apache.archiva</groupId>
  175. <artifactId>archiva-webdav</artifactId>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.apache.struts</groupId>
  179. <artifactId>struts2-spring-plugin</artifactId>
  180. <scope>runtime</scope>
  181. </dependency>
  182. <dependency>
  183. <groupId>commons-io</groupId>
  184. <artifactId>commons-io</artifactId>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.springframework</groupId>
  188. <artifactId>spring-web</artifactId>
  189. </dependency>
  190. <dependency>
  191. <groupId>javax.mail</groupId>
  192. <artifactId>mail</artifactId>
  193. <scope>provided</scope>
  194. </dependency>
  195. <dependency>
  196. <groupId>javax.activation</groupId>
  197. <artifactId>activation</artifactId>
  198. <scope>provided</scope>
  199. </dependency>
  200. <dependency>
  201. <groupId>org.codehaus.plexus</groupId>
  202. <artifactId>plexus-quartz</artifactId>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.codehaus.plexus</groupId>
  206. <artifactId>plexus-taskqueue</artifactId>
  207. </dependency>
  208. <dependency>
  209. <groupId>commons-fileupload</groupId>
  210. <artifactId>commons-fileupload</artifactId>
  211. </dependency>
  212. <dependency>
  213. <groupId>commons-codec</groupId>
  214. <artifactId>commons-codec</artifactId>
  215. </dependency>
  216. <dependency>
  217. <groupId>stax</groupId>
  218. <artifactId>stax</artifactId>
  219. </dependency>
  220. <dependency>
  221. <groupId>org.apache.maven.wagon</groupId>
  222. <artifactId>wagon-http-lightweight</artifactId>
  223. <scope>runtime</scope>
  224. </dependency>
  225. <dependency>
  226. <groupId>org.apache.maven.wagon</groupId>
  227. <artifactId>wagon-file</artifactId>
  228. <scope>runtime</scope>
  229. </dependency>
  230. <dependency>
  231. <groupId>commons-logging</groupId>
  232. <artifactId>commons-logging-api</artifactId>
  233. <version>1.1</version>
  234. </dependency>
  235. <dependency>
  236. <groupId>com.atlassian.xmlrpc</groupId>
  237. <artifactId>atlassian-xmlrpc-binder-server-spring</artifactId>
  238. <scope>runtime</scope>
  239. </dependency>
  240. </dependencies>
  241. <build>
  242. <resources>
  243. <resource>
  244. <directory>src/main/resources</directory>
  245. </resource>
  246. <resource>
  247. <directory>src/main/filtered-resources</directory>
  248. <filtering>true</filtering>
  249. </resource>
  250. </resources>
  251. <plugins>
  252. <!--
  253. <plugin>
  254. <groupId>org.apache.maven.plugins</groupId>
  255. <artifactId>maven-surefire-plugin</artifactId>
  256. <configuration>
  257. <argLine>-agentlib:yjpagent</argLine>
  258. <excludes>
  259. <exclude>**/Abstract*</exclude>
  260. <exclude>**/*TestCase.java</exclude>
  261. <exclude>**/*Tests.java</exclude>
  262. <exclude>**/*TestSuite.java</exclude>
  263. </excludes>
  264. </configuration>
  265. </plugin>
  266. -->
  267. <plugin>
  268. <groupId>org.apache.maven.plugins</groupId>
  269. <artifactId>maven-clean-plugin</artifactId>
  270. <version>2.1.1</version>
  271. <!-- This configuration is added to cleanup from war:inplace -->
  272. <configuration>
  273. <filesets>
  274. <fileset>
  275. <directory>${basedir}/src/main/webapp</directory>
  276. <includes>
  277. <!-- TODO: META-INF shouldn't be required, seems to be an issue with the current war plugin -->
  278. <include>META-INF</include>
  279. <include>archiva-applet.jar</include>
  280. <include>images/redback</include>
  281. <!-- Images from other wars -->
  282. <include>template/redback</include>
  283. <!-- Templates from other wars -->
  284. <include>WEB-INF/classes</include>
  285. <!-- Classes and Resources from other wars -->
  286. <include>WEB-INF/lib</include>
  287. <!-- Dependencies from other wars -->
  288. <include>WEB-INF/database</include>
  289. <!-- Database location configured in application.xml -->
  290. <include>WEB-INF/logs</include>
  291. <!-- Log file location specified in application.xml -->
  292. <include>redback</include>
  293. <!-- plexus-security css and javascript -->
  294. <include>css/redback</include>
  295. <include>WEB-INF/jsp/redback</include>
  296. <!-- plexus-security jsps -->
  297. <include>WEB-INF/template/redback</include>
  298. <!-- plexus-security xwork templates -->
  299. <include>WEB-INF/logs</include>
  300. <!-- Directory created by jetty:run -->
  301. <include>WEB-INF/temp</include>
  302. <!-- Directory created by jetty:run -->
  303. </includes>
  304. </fileset>
  305. </filesets>
  306. </configuration>
  307. </plugin>
  308. <plugin>
  309. <groupId>org.apache.maven.plugins</groupId>
  310. <artifactId>maven-war-plugin</artifactId>
  311. <version>2.0.1</version>
  312. <configuration>
  313. <!-- Some versions of maven-war-plugin (snapshots) have this incorrectly defaulted to true.
  314. Specifically setting this to false to avoid accidental jar file creation. -->
  315. <archiveClasses>false</archiveClasses>
  316. <dependentWarExcludes>META-INF/**,WEB-INF/web.xml,WEB-INF/classes/xwork.xml</dependentWarExcludes>
  317. <warSourceExcludes>WEB-INF/lib/xalan-*.jar,WEB-INF/lib/velocity-dep-*.jar,WEB-INF/lib/xml-apis-*.jar,WEB-INF/lib/wstx-asl-*.jar,WEB-INF/lib/stax-utils-*.jar,WEB-INF/lib/xercesImpl-*.jar</warSourceExcludes>
  318. </configuration>
  319. <!-- TODO: would be good to make the jetty plugin aware of these and remove the below -->
  320. <executions>
  321. <execution>
  322. <phase>compile</phase>
  323. <goals>
  324. <!-- Needed to get the plexus-security war overlay to do its thing before jetty:run -->
  325. <goal>inplace</goal>
  326. </goals>
  327. </execution>
  328. </executions>
  329. </plugin>
  330. <plugin>
  331. <groupId>org.mortbay.jetty</groupId>
  332. <artifactId>jetty-maven-plugin</artifactId>
  333. <version>7.0.0pre3</version>
  334. <configuration>
  335. <scanIntervalSeconds>10</scanIntervalSeconds>
  336. <contextPath>/</contextPath>
  337. <jettyEnvXml>src/jetty-env.xml</jettyEnvXml>
  338. <webAppConfig>
  339. <contextPath>/</contextPath>
  340. <jettyEnvXmlFile>src/jetty-env.xml</jettyEnvXmlFile>
  341. </webAppConfig>
  342. <connectors>
  343. <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
  344. <port>9091</port>
  345. <maxIdleTime>60000</maxIdleTime>
  346. </connector>
  347. </connectors>
  348. <systemProperties>
  349. <systemProperty>
  350. <name>plexus.home</name>
  351. <value>${project.build.directory}/appserver-base</value>
  352. </systemProperty>
  353. <systemProperty>
  354. <name>appserver.base</name>
  355. <value>${project.build.directory}/appserver-base</value>
  356. </systemProperty>
  357. <systemProperty>
  358. <name>appserver.home</name>
  359. <value>${project.build.directory}/appserver-home</value>
  360. </systemProperty>
  361. <systemProperty>
  362. <name>derby.system.home</name>
  363. <value>${project.build.directory}/appserver-base/logs</value>
  364. </systemProperty>
  365. </systemProperties>
  366. </configuration>
  367. <dependencies>
  368. <dependency>
  369. <groupId>org.apache.derby</groupId>
  370. <artifactId>derby</artifactId>
  371. <version>10.1.3.1</version>
  372. </dependency>
  373. <!-- Enable the following if you want JSP 2.0 or JVM version < 1.5 <dependency>
  374. <groupId>commons-logging</groupId>
  375. <artifactId>commons-logging</artifactId>
  376. <version>1.1</version>
  377. <type>jar</type>
  378. </dependency>
  379. <dependency>
  380. <groupId>org.slf4j</groupId>
  381. <artifactId>slf4j-jcl</artifactId>
  382. <version>1.0.1</version>
  383. <type>jar</type>
  384. </dependency>
  385. <dependency>
  386. <groupId>log4j</groupId>
  387. <artifactId>log4j</artifactId>
  388. <version>1.2.14</version>
  389. <type>jar</type>
  390. </dependency>
  391. -->
  392. </dependencies>
  393. </plugin>
  394. <plugin>
  395. <groupId>org.apache.maven.plugins</groupId>
  396. <artifactId>maven-dependency-plugin</artifactId>
  397. <version>2.0</version>
  398. <executions>
  399. <execution>
  400. <id>copy</id>
  401. <phase>process-resources</phase>
  402. <goals>
  403. <goal>copy</goal>
  404. </goals>
  405. <configuration>
  406. <artifactItems>
  407. <artifactItem>
  408. <groupId>${project.groupId}</groupId>
  409. <artifactId>archiva-applet</artifactId>
  410. <version>${project.version}</version>
  411. <outputDirectory>src/main/webapp</outputDirectory>
  412. <destFileName>archiva-applet.jar</destFileName>
  413. </artifactItem>
  414. </artifactItems>
  415. </configuration>
  416. </execution>
  417. </executions>
  418. </plugin>
  419. <plugin>
  420. <groupId>org.codehaus.plexus</groupId>
  421. <artifactId>plexus-maven-plugin</artifactId>
  422. <configuration>
  423. <roleDefaults>
  424. <roleDefault>
  425. <role>com.opensymphony.xwork2.Action</role>
  426. <instantiation-strategy>per-lookup</instantiation-strategy>
  427. </roleDefault>
  428. </roleDefaults>
  429. </configuration>
  430. </plugin>
  431. <plugin>
  432. <artifactId>maven-antrun-plugin</artifactId>
  433. <version>1.1</version>
  434. <executions>
  435. <execution>
  436. <phase>generate-resources</phase>
  437. <goals>
  438. <goal>run</goal>
  439. </goals>
  440. <configuration>
  441. <tasks>
  442. <copy todir="${project.build.directory}/appserver-base">
  443. <fileset dir="src/appserver-base" />
  444. </copy>
  445. </tasks>
  446. </configuration>
  447. </execution>
  448. </executions>
  449. </plugin>
  450. </plugins>
  451. </build>
  452. <profiles>
  453. <profile>
  454. <id>mysql</id>
  455. <dependencies>
  456. <dependency>
  457. <groupId>mysql</groupId>
  458. <artifactId>mysql-connector-java</artifactId>
  459. <version>5.0.4</version>
  460. </dependency>
  461. </dependencies>
  462. <build>
  463. <plugins>
  464. <plugin>
  465. <groupId>org.mortbay.jetty</groupId>
  466. <artifactId>maven-jetty-plugin</artifactId>
  467. <configuration>
  468. <jettyEnvXml>src/jetty-env-mysql.xml</jettyEnvXml>
  469. </configuration>
  470. </plugin>
  471. </plugins>
  472. </build>
  473. </profile>
  474. <profile>
  475. <id>postgres</id>
  476. <dependencies>
  477. <dependency>
  478. <groupId>postgresql</groupId>
  479. <artifactId>postgresql</artifactId>
  480. <version>8.2-504.jdbc3</version>
  481. </dependency>
  482. </dependencies>
  483. <build>
  484. <plugins>
  485. <plugin>
  486. <groupId>org.mortbay.jetty</groupId>
  487. <artifactId>maven-jetty-plugin</artifactId>
  488. <configuration>
  489. <jettyEnvXml>src/jetty-env-postgres.xml</jettyEnvXml>
  490. </configuration>
  491. </plugin>
  492. </plugins>
  493. </build>
  494. </profile>
  495. </profiles>
  496. </project>