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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  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>javax.servlet</groupId>
  88. <artifactId>servlet-api</artifactId>
  89. <scope>provided</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>javax.servlet</groupId>
  93. <artifactId>jsp-api</artifactId>
  94. <scope>provided</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>opensymphony</groupId>
  98. <artifactId>sitemesh</artifactId>
  99. </dependency>
  100. <dependency>
  101. <groupId>taglibs</groupId>
  102. <artifactId>standard</artifactId>
  103. </dependency>
  104. <dependency>
  105. <groupId>javax.servlet</groupId>
  106. <artifactId>jstl</artifactId>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.codehaus.plexus</groupId>
  110. <artifactId>plexus-slf4j-logging</artifactId>
  111. <scope>runtime</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.slf4j</groupId>
  115. <artifactId>slf4j-log4j12</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>commons-lang</groupId>
  119. <artifactId>commons-lang</artifactId>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.apache.struts</groupId>
  123. <artifactId>struts2-core</artifactId>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.codehaus.plexus.registry</groupId>
  127. <artifactId>plexus-registry-api</artifactId>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.codehaus.plexus.registry</groupId>
  131. <artifactId>plexus-registry-commons</artifactId>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.codehaus.plexus.cache</groupId>
  135. <artifactId>plexus-cache-api</artifactId>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.codehaus.plexus.cache</groupId>
  139. <artifactId>plexus-cache-ehcache</artifactId>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.codehaus.plexus</groupId>
  143. <artifactId>plexus-component-api</artifactId>
  144. </dependency>
  145. <!-- Plexus Security Dependencies -->
  146. <dependency>
  147. <groupId>org.codehaus.redback</groupId>
  148. <artifactId>redback-struts2-content</artifactId>
  149. <type>war</type>
  150. <scope>runtime</scope>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.codehaus.redback</groupId>
  154. <artifactId>redback-struts2-integration</artifactId>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.codehaus.redback</groupId>
  158. <artifactId>redback-struts2-taglib</artifactId>
  159. </dependency>
  160. <!-- Other dependencies -->
  161. <dependency>
  162. <groupId>org.apache.archiva</groupId>
  163. <artifactId>archiva-webdav</artifactId>
  164. </dependency>
  165. <dependency>
  166. <groupId>org.apache.struts</groupId>
  167. <artifactId>struts2-spring-plugin</artifactId>
  168. <scope>runtime</scope>
  169. </dependency>
  170. <dependency>
  171. <groupId>commons-io</groupId>
  172. <artifactId>commons-io</artifactId>
  173. </dependency>
  174. <dependency>
  175. <groupId>org.springframework</groupId>
  176. <artifactId>spring-web</artifactId>
  177. </dependency>
  178. <dependency>
  179. <groupId>javax.mail</groupId>
  180. <artifactId>mail</artifactId>
  181. <scope>provided</scope>
  182. </dependency>
  183. <dependency>
  184. <groupId>javax.activation</groupId>
  185. <artifactId>activation</artifactId>
  186. <scope>provided</scope>
  187. </dependency>
  188. <dependency>
  189. <groupId>org.codehaus.plexus</groupId>
  190. <artifactId>plexus-quartz</artifactId>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.codehaus.plexus</groupId>
  194. <artifactId>plexus-taskqueue</artifactId>
  195. </dependency>
  196. <dependency>
  197. <groupId>commons-fileupload</groupId>
  198. <artifactId>commons-fileupload</artifactId>
  199. </dependency>
  200. <dependency>
  201. <groupId>commons-codec</groupId>
  202. <artifactId>commons-codec</artifactId>
  203. </dependency>
  204. <dependency>
  205. <groupId>stax</groupId>
  206. <artifactId>stax</artifactId>
  207. </dependency>
  208. <dependency>
  209. <groupId>org.apache.maven.wagon</groupId>
  210. <artifactId>wagon-http-lightweight</artifactId>
  211. <scope>runtime</scope>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.apache.maven.wagon</groupId>
  215. <artifactId>wagon-file</artifactId>
  216. <scope>runtime</scope>
  217. </dependency>
  218. <dependency>
  219. <groupId>commons-logging</groupId>
  220. <artifactId>commons-logging-api</artifactId>
  221. <version>1.1</version>
  222. </dependency>
  223. </dependencies>
  224. <build>
  225. <resources>
  226. <resource>
  227. <directory>src/main/resources</directory>
  228. </resource>
  229. <resource>
  230. <directory>src/main/filtered-resources</directory>
  231. <filtering>true</filtering>
  232. </resource>
  233. </resources>
  234. <plugins>
  235. <!--
  236. <plugin>
  237. <groupId>org.apache.maven.plugins</groupId>
  238. <artifactId>maven-surefire-plugin</artifactId>
  239. <configuration>
  240. <argLine>-agentlib:yjpagent</argLine>
  241. <excludes>
  242. <exclude>**/Abstract*</exclude>
  243. <exclude>**/*TestCase.java</exclude>
  244. <exclude>**/*Tests.java</exclude>
  245. <exclude>**/*TestSuite.java</exclude>
  246. </excludes>
  247. </configuration>
  248. </plugin>
  249. -->
  250. <plugin>
  251. <groupId>org.apache.maven.plugins</groupId>
  252. <artifactId>maven-clean-plugin</artifactId>
  253. <version>2.1.1</version>
  254. <!-- This configuration is added to cleanup from war:inplace -->
  255. <configuration>
  256. <filesets>
  257. <fileset>
  258. <directory>${basedir}/src/main/webapp</directory>
  259. <includes>
  260. <!-- TODO: META-INF shouldn't be required, seems to be an issue with the current war plugin -->
  261. <include>META-INF</include>
  262. <include>archiva-applet.jar</include>
  263. <include>images/redback</include>
  264. <!-- Images from other wars -->
  265. <include>template/redback</include>
  266. <!-- Templates from other wars -->
  267. <include>WEB-INF/classes</include>
  268. <!-- Classes and Resources from other wars -->
  269. <include>WEB-INF/lib</include>
  270. <!-- Dependencies from other wars -->
  271. <include>WEB-INF/database</include>
  272. <!-- Database location configured in application.xml -->
  273. <include>WEB-INF/logs</include>
  274. <!-- Log file location specified in application.xml -->
  275. <include>redback</include>
  276. <!-- plexus-security css and javascript -->
  277. <include>css/redback</include>
  278. <include>WEB-INF/jsp/redback</include>
  279. <!-- plexus-security jsps -->
  280. <include>WEB-INF/template/redback</include>
  281. <!-- plexus-security xwork templates -->
  282. <include>WEB-INF/logs</include>
  283. <!-- Directory created by jetty:run -->
  284. <include>WEB-INF/temp</include>
  285. <!-- Directory created by jetty:run -->
  286. <include>WEB-INF/jasperreports</include>
  287. <!-- Directory created by jasperreports-maven-plugin -->
  288. </includes>
  289. </fileset>
  290. </filesets>
  291. </configuration>
  292. </plugin>
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-war-plugin</artifactId>
  296. <version>2.0.1</version>
  297. <configuration>
  298. <!-- Some versions of maven-war-plugin (snapshots) have this incorrectly defaulted to true.
  299. Specifically setting this to false to avoid accidental jar file creation. -->
  300. <archiveClasses>false</archiveClasses>
  301. <dependentWarExcludes>META-INF/**,WEB-INF/web.xml,WEB-INF/classes/xwork.xml</dependentWarExcludes>
  302. <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>
  303. </configuration>
  304. <!-- TODO: would be good to make the jetty plugin aware of these and remove the below -->
  305. <executions>
  306. <execution>
  307. <phase>compile</phase>
  308. <goals>
  309. <!-- Needed to get the plexus-security war overlay to do its thing before jetty:run -->
  310. <goal>inplace</goal>
  311. </goals>
  312. </execution>
  313. </executions>
  314. </plugin>
  315. <plugin>
  316. <groupId>org.mortbay.jetty</groupId>
  317. <artifactId>jetty-maven-plugin</artifactId>
  318. <version>7.0.0pre3</version>
  319. <configuration>
  320. <scanIntervalSeconds>10</scanIntervalSeconds>
  321. <contextPath>/</contextPath>
  322. <jettyEnvXml>src/jetty-env.xml</jettyEnvXml>
  323. <webAppConfig>
  324. <contextPath>/</contextPath>
  325. <jettyEnvXmlFile>src/jetty-env.xml</jettyEnvXmlFile>
  326. </webAppConfig>
  327. <connectors>
  328. <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
  329. <port>9091</port>
  330. <maxIdleTime>60000</maxIdleTime>
  331. </connector>
  332. </connectors>
  333. <systemProperties>
  334. <systemProperty>
  335. <name>plexus.home</name>
  336. <value>${project.build.directory}/appserver-base</value>
  337. </systemProperty>
  338. <systemProperty>
  339. <name>appserver.base</name>
  340. <value>${project.build.directory}/appserver-base</value>
  341. </systemProperty>
  342. <systemProperty>
  343. <name>appserver.home</name>
  344. <value>${project.build.directory}/appserver-home</value>
  345. </systemProperty>
  346. <systemProperty>
  347. <name>derby.system.home</name>
  348. <value>${project.build.directory}/appserver-base/logs</value>
  349. </systemProperty>
  350. </systemProperties>
  351. </configuration>
  352. <dependencies>
  353. <dependency>
  354. <groupId>org.apache.derby</groupId>
  355. <artifactId>derby</artifactId>
  356. <version>10.1.3.1</version>
  357. </dependency>
  358. <!-- Enable the following if you want JSP 2.0 or JVM version < 1.5 <dependency>
  359. <groupId>commons-logging</groupId>
  360. <artifactId>commons-logging</artifactId>
  361. <version>1.1</version>
  362. <type>jar</type>
  363. </dependency>
  364. <dependency>
  365. <groupId>org.slf4j</groupId>
  366. <artifactId>slf4j-jcl</artifactId>
  367. <version>1.0.1</version>
  368. <type>jar</type>
  369. </dependency>
  370. <dependency>
  371. <groupId>log4j</groupId>
  372. <artifactId>log4j</artifactId>
  373. <version>1.2.14</version>
  374. <type>jar</type>
  375. </dependency>
  376. -->
  377. </dependencies>
  378. </plugin>
  379. <plugin>
  380. <groupId>org.apache.maven.plugins</groupId>
  381. <artifactId>maven-dependency-plugin</artifactId>
  382. <version>2.0</version>
  383. <executions>
  384. <execution>
  385. <id>copy</id>
  386. <phase>process-resources</phase>
  387. <goals>
  388. <goal>copy</goal>
  389. </goals>
  390. <configuration>
  391. <artifactItems>
  392. <artifactItem>
  393. <groupId>${project.groupId}</groupId>
  394. <artifactId>archiva-applet</artifactId>
  395. <version>${project.version}</version>
  396. <outputDirectory>src/main/webapp</outputDirectory>
  397. <destFileName>archiva-applet.jar</destFileName>
  398. </artifactItem>
  399. </artifactItems>
  400. </configuration>
  401. </execution>
  402. </executions>
  403. </plugin>
  404. <plugin>
  405. <groupId>org.codehaus.plexus</groupId>
  406. <artifactId>plexus-maven-plugin</artifactId>
  407. <configuration>
  408. <roleDefaults>
  409. <roleDefault>
  410. <role>com.opensymphony.xwork2.Action</role>
  411. <instantiation-strategy>per-lookup</instantiation-strategy>
  412. </roleDefault>
  413. </roleDefaults>
  414. </configuration>
  415. </plugin>
  416. <plugin>
  417. <artifactId>maven-antrun-plugin</artifactId>
  418. <version>1.1</version>
  419. <executions>
  420. <execution>
  421. <phase>generate-resources</phase>
  422. <goals>
  423. <goal>run</goal>
  424. </goals>
  425. <configuration>
  426. <tasks>
  427. <copy todir="${project.build.directory}/appserver-base">
  428. <fileset dir="src/appserver-base" />
  429. </copy>
  430. </tasks>
  431. </configuration>
  432. </execution>
  433. </executions>
  434. </plugin>
  435. </plugins>
  436. </build>
  437. <profiles>
  438. <profile>
  439. <id>mysql</id>
  440. <dependencies>
  441. <dependency>
  442. <groupId>mysql</groupId>
  443. <artifactId>mysql-connector-java</artifactId>
  444. <version>5.0.4</version>
  445. </dependency>
  446. </dependencies>
  447. <build>
  448. <plugins>
  449. <plugin>
  450. <groupId>org.mortbay.jetty</groupId>
  451. <artifactId>maven-jetty-plugin</artifactId>
  452. <configuration>
  453. <jettyEnvXml>src/jetty-env-mysql.xml</jettyEnvXml>
  454. </configuration>
  455. </plugin>
  456. </plugins>
  457. </build>
  458. </profile>
  459. <profile>
  460. <id>postgres</id>
  461. <dependencies>
  462. <dependency>
  463. <groupId>postgresql</groupId>
  464. <artifactId>postgresql</artifactId>
  465. <version>8.2-504.jdbc3</version>
  466. </dependency>
  467. </dependencies>
  468. <build>
  469. <plugins>
  470. <plugin>
  471. <groupId>org.mortbay.jetty</groupId>
  472. <artifactId>maven-jetty-plugin</artifactId>
  473. <configuration>
  474. <jettyEnvXml>src/jetty-env-postgres.xml</jettyEnvXml>
  475. </configuration>
  476. </plugin>
  477. </plugins>
  478. </build>
  479. </profile>
  480. <profile>
  481. <!--
  482. Inclusion of this profile brings in Jasper, which is not distributed by default due to ASF licensing policy
  483. regarding LGPL dependencies. A basic report is used instead.
  484. Note: in the future, it may be better to use the jasperreports plugin at all times (so the compiled report is
  485. included), so that we just require that the JAR be on the classpath to activate it. We haven't taken this step
  486. here because the jasperreports plugin is not yet released.
  487. See also: MRM-447
  488. -->
  489. <id>jasper</id>
  490. <dependencies>
  491. <dependency>
  492. <groupId>jasperreports</groupId>
  493. <artifactId>jasperreports</artifactId>
  494. <version>1.2.0</version>
  495. </dependency>
  496. </dependencies>
  497. <build>
  498. <plugins>
  499. <plugin>
  500. <groupId>org.codehaus.mojo</groupId>
  501. <artifactId>jasperreports-maven-plugin</artifactId>
  502. <version>1.0-SNAPSHOT</version>
  503. <executions>
  504. <execution>
  505. <phase>compile</phase>
  506. <goals>
  507. <goal>compile-reports</goal>
  508. </goals>
  509. </execution>
  510. </executions>
  511. <configuration>
  512. <targetDirectory>src/main/webapp/WEB-INF/jasperreports</targetDirectory>
  513. </configuration>
  514. </plugin>
  515. </plugins>
  516. </build>
  517. <pluginRepositories>
  518. <pluginRepository>
  519. <id>Codehaus Snapshots</id>
  520. <url>http://snapshots.repository.codehaus.org/</url>
  521. <snapshots>
  522. <enabled>true</enabled>
  523. </snapshots>
  524. <releases>
  525. <enabled>false</enabled>
  526. </releases>
  527. </pluginRepository>
  528. </pluginRepositories>
  529. </profile>
  530. </profiles>
  531. </project>