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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036
  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.archiva</groupId>
  25. <artifactId>archiva-web</artifactId>
  26. <version>1.4-M1-SNAPSHOT</version>
  27. </parent>
  28. <artifactId>archiva-webapp</artifactId>
  29. <packaging>war</packaging>
  30. <name>Archiva Web :: Application</name>
  31. <properties>
  32. <jettyVersion>7.4.5.v20110725</jettyVersion>
  33. <archiva.baseRestUrl></archiva.baseRestUrl>
  34. <rest.admin.pwd></rest.admin.pwd>
  35. </properties>
  36. <dependencies>
  37. <dependency>
  38. <groupId>org.apache.archiva</groupId>
  39. <artifactId>generic-metadata-support</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.apache.archiva</groupId>
  43. <artifactId>npanday-support</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.apache.archiva</groupId>
  47. <artifactId>repository-statistics</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.apache.archiva</groupId>
  51. <artifactId>problem-reports</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.archiva</groupId>
  55. <artifactId>audit</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.apache.archiva</groupId>
  59. <artifactId>archiva-scheduler-repository</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.apache.archiva</groupId>
  63. <artifactId>archiva-indexer</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.archiva</groupId>
  67. <artifactId>archiva-proxy</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.apache.archiva</groupId>
  71. <artifactId>archiva-repository-layer</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.apache.archiva</groupId>
  75. <artifactId>archiva-xml-tools</artifactId>
  76. <exclusions>
  77. <exclusion>
  78. <groupId>xerces</groupId>
  79. <artifactId>xercesImpl</artifactId>
  80. </exclusion>
  81. </exclusions>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.apache.archiva</groupId>
  85. <artifactId>archiva-security</artifactId>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.apache.archiva</groupId>
  89. <artifactId>archiva-core-consumers</artifactId>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.apache.archiva</groupId>
  93. <artifactId>archiva-configuration</artifactId>
  94. <!-- TODO uncomment when repository admin will be finished
  95. <scope>runtime</scope>
  96. -->
  97. </dependency>
  98. <dependency>
  99. <groupId>org.apache.archiva</groupId>
  100. <artifactId>archiva-metadata-consumer</artifactId>
  101. <scope>runtime</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.apache.archiva</groupId>
  105. <artifactId>archiva-lucene-consumers</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.apache.archiva</groupId>
  109. <artifactId>stage-repository-merge</artifactId>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.apache.archiva</groupId>
  113. <artifactId>archiva-signature-consumers</artifactId>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.apache.archiva</groupId>
  117. <artifactId>archiva-applet</artifactId>
  118. <!-- TODO: actually, just exclude from WAR plugin -->
  119. <scope>provided</scope>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.apache.archiva</groupId>
  123. <artifactId>archiva-rss</artifactId>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.apache.archiva</groupId>
  127. <artifactId>archiva-xmlrpc-api</artifactId>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.apache.archiva</groupId>
  131. <artifactId>archiva-xmlrpc-services</artifactId>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.apache.archiva</groupId>
  135. <artifactId>archiva-xmlrpc-security</artifactId>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.apache.archiva</groupId>
  139. <artifactId>archiva-rest-services</artifactId>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.apache.archiva</groupId>
  143. <artifactId>archiva-rest-api</artifactId>
  144. </dependency>
  145. <dependency>
  146. <groupId>javax.servlet</groupId>
  147. <artifactId>servlet-api</artifactId>
  148. <scope>provided</scope>
  149. </dependency>
  150. <dependency>
  151. <groupId>javax.servlet</groupId>
  152. <artifactId>jsp-api</artifactId>
  153. <scope>provided</scope>
  154. </dependency>
  155. <dependency>
  156. <groupId>opensymphony</groupId>
  157. <artifactId>sitemesh</artifactId>
  158. </dependency>
  159. <dependency>
  160. <groupId>taglibs</groupId>
  161. <artifactId>standard</artifactId>
  162. </dependency>
  163. <dependency>
  164. <groupId>javax.servlet</groupId>
  165. <artifactId>jstl</artifactId>
  166. </dependency>
  167. <dependency>
  168. <groupId>org.codehaus.plexus</groupId>
  169. <artifactId>plexus-slf4j-logging</artifactId>
  170. <scope>runtime</scope>
  171. <exclusions>
  172. <exclusion>
  173. <groupId>org.codehaus.plexus</groupId>
  174. <artifactId>plexus-component-api</artifactId>
  175. </exclusion>
  176. </exclusions>
  177. </dependency>
  178. <dependency>
  179. <groupId>org.slf4j</groupId>
  180. <artifactId>slf4j-log4j12</artifactId>
  181. <scope>runtime</scope>
  182. </dependency>
  183. <dependency>
  184. <groupId>httpunit</groupId>
  185. <artifactId>httpunit</artifactId>
  186. <scope>test</scope>
  187. </dependency>
  188. <dependency>
  189. <groupId>commons-lang</groupId>
  190. <artifactId>commons-lang</artifactId>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.apache.commons</groupId>
  194. <artifactId>commons-compress</artifactId>
  195. </dependency>
  196. <dependency>
  197. <groupId>commons-configuration</groupId>
  198. <artifactId>commons-configuration</artifactId>
  199. <exclusions>
  200. <exclusion>
  201. <groupId>commons-logging</groupId>
  202. <artifactId>commons-logging</artifactId>
  203. </exclusion>
  204. </exclusions>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.apache.cxf</groupId>
  208. <artifactId>cxf-bundle-jaxrs</artifactId>
  209. <exclusions>
  210. <exclusion>
  211. <groupId>org.eclipse.jetty</groupId>
  212. <artifactId>jetty-server</artifactId>
  213. </exclusion>
  214. <exclusion>
  215. <groupId>commons-logging</groupId>
  216. <artifactId>commons-logging</artifactId>
  217. </exclusion>
  218. <exclusion>
  219. <groupId>org.apache.geronimo.specs</groupId>
  220. <artifactId>geronimo-servlet_3.0_spec</artifactId>
  221. </exclusion>
  222. <exclusion>
  223. <groupId>org.apache.geronimo.specs</groupId>
  224. <artifactId>geronimo-javamail_1.4_spec</artifactId>
  225. </exclusion>
  226. </exclusions>
  227. </dependency>
  228. <dependency>
  229. <groupId>ognl</groupId>
  230. <artifactId>ognl</artifactId>
  231. <version>3.0.2</version>
  232. </dependency>
  233. <dependency>
  234. <groupId>org.apache.struts</groupId>
  235. <artifactId>struts2-core</artifactId>
  236. </dependency>
  237. <dependency>
  238. <groupId>org.apache.struts</groupId>
  239. <artifactId>struts2-sitemesh-plugin</artifactId>
  240. <version>${struts.version}</version>
  241. </dependency>
  242. <dependency>
  243. <groupId>org.codehaus.redback.components.registry</groupId>
  244. <artifactId>spring-registry-api</artifactId>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.codehaus.redback.components.registry</groupId>
  248. <artifactId>spring-registry-commons</artifactId>
  249. </dependency>
  250. <dependency>
  251. <groupId>org.codehaus.redback.components.cache</groupId>
  252. <artifactId>spring-cache-api</artifactId>
  253. </dependency>
  254. <dependency>
  255. <groupId>org.codehaus.redback.components</groupId>
  256. <artifactId>spring-jdo2</artifactId>
  257. </dependency>
  258. <dependency>
  259. <groupId>org.codehaus.redback.components.cache</groupId>
  260. <artifactId>spring-cache-ehcache</artifactId>
  261. <exclusions>
  262. <exclusion>
  263. <groupId>commons-logging</groupId>
  264. <artifactId>commons-logging</artifactId>
  265. </exclusion>
  266. </exclusions>
  267. </dependency>
  268. <dependency>
  269. <groupId>net.sf.ehcache</groupId>
  270. <artifactId>ehcache-core</artifactId>
  271. <exclusions>
  272. <exclusion>
  273. <groupId>commons-logging</groupId>
  274. <artifactId>commons-logging</artifactId>
  275. </exclusion>
  276. </exclusions>
  277. </dependency>
  278. <!-- Redback Dependencies -->
  279. <dependency>
  280. <groupId>org.codehaus.redback</groupId>
  281. <artifactId>redback-struts2-content</artifactId>
  282. <type>war</type>
  283. <scope>runtime</scope>
  284. </dependency>
  285. <dependency>
  286. <groupId>org.codehaus.redback</groupId>
  287. <artifactId>redback-struts2-integration</artifactId>
  288. </dependency>
  289. <dependency>
  290. <groupId>org.codehaus.redback</groupId>
  291. <artifactId>redback-common-integrations</artifactId>
  292. </dependency>
  293. <dependency>
  294. <groupId>org.codehaus.redback</groupId>
  295. <artifactId>redback-xmlrpc-services</artifactId>
  296. <scope>runtime</scope>
  297. </dependency>
  298. <dependency>
  299. <groupId>org.codehaus.redback</groupId>
  300. <artifactId>redback-xmlrpc-security</artifactId>
  301. <scope>runtime</scope>
  302. </dependency>
  303. <dependency>
  304. <groupId>org.codehaus.redback</groupId>
  305. <artifactId>redback-keys-memory</artifactId>
  306. <exclusions>
  307. <exclusion>
  308. <groupId>commons-logging</groupId>
  309. <artifactId>commons-logging</artifactId>
  310. </exclusion>
  311. </exclusions>
  312. </dependency>
  313. <dependency>
  314. <groupId>org.codehaus.redback</groupId>
  315. <artifactId>redback-rest-services</artifactId>
  316. <exclusions>
  317. <exclusion>
  318. <groupId>commons-logging</groupId>
  319. <artifactId>commons-logging</artifactId>
  320. </exclusion>
  321. </exclusions>
  322. </dependency>
  323. <!-- Other dependencies -->
  324. <dependency>
  325. <groupId>org.apache.archiva</groupId>
  326. <artifactId>archiva-webdav</artifactId>
  327. </dependency>
  328. <dependency>
  329. <groupId>org.apache.struts</groupId>
  330. <artifactId>struts2-spring-plugin</artifactId>
  331. <scope>runtime</scope>
  332. </dependency>
  333. <dependency>
  334. <groupId>commons-io</groupId>
  335. <artifactId>commons-io</artifactId>
  336. </dependency>
  337. <dependency>
  338. <groupId>org.springframework</groupId>
  339. <artifactId>spring-web</artifactId>
  340. </dependency>
  341. <dependency>
  342. <groupId>javax.mail</groupId>
  343. <artifactId>mail</artifactId>
  344. <scope>provided</scope>
  345. </dependency>
  346. <dependency>
  347. <groupId>javax.activation</groupId>
  348. <artifactId>activation</artifactId>
  349. <scope>provided</scope>
  350. </dependency>
  351. <dependency>
  352. <groupId>org.codehaus.redback.components</groupId>
  353. <artifactId>spring-taskqueue</artifactId>
  354. </dependency>
  355. <dependency>
  356. <groupId>org.codehaus.redback.components</groupId>
  357. <artifactId>spring-quartz</artifactId>
  358. </dependency>
  359. <dependency>
  360. <groupId>org.quartz-scheduler</groupId>
  361. <artifactId>quartz</artifactId>
  362. <exclusions>
  363. <exclusion>
  364. <groupId>c3p0</groupId>
  365. <artifactId>c3p0</artifactId>
  366. </exclusion>
  367. <exclusion>
  368. <groupId>javax.transaction</groupId>
  369. <artifactId>jta</artifactId>
  370. </exclusion>
  371. </exclusions>
  372. </dependency>
  373. <dependency>
  374. <groupId>commons-fileupload</groupId>
  375. <artifactId>commons-fileupload</artifactId>
  376. </dependency>
  377. <dependency>
  378. <groupId>commons-codec</groupId>
  379. <artifactId>commons-codec</artifactId>
  380. </dependency>
  381. <dependency>
  382. <groupId>stax</groupId>
  383. <artifactId>stax</artifactId>
  384. <exclusions>
  385. <exclusion>
  386. <groupId>stax</groupId>
  387. <artifactId>stax-api</artifactId>
  388. </exclusion>
  389. </exclusions>
  390. </dependency>
  391. <dependency>
  392. <groupId>org.apache.maven.wagon</groupId>
  393. <artifactId>wagon-http</artifactId>
  394. <scope>runtime</scope>
  395. </dependency>
  396. <dependency>
  397. <groupId>org.apache.maven.wagon</groupId>
  398. <artifactId>wagon-file</artifactId>
  399. <scope>runtime</scope>
  400. </dependency>
  401. <dependency>
  402. <groupId>commons-logging</groupId>
  403. <artifactId>commons-logging-api</artifactId>
  404. <version>1.1</version>
  405. <!-- provided by jcl-over-slf4j, don't want this in the webapp -->
  406. <scope>provided</scope>
  407. </dependency>
  408. <dependency>
  409. <groupId>com.atlassian.xmlrpc</groupId>
  410. <artifactId>atlassian-xmlrpc-binder-server-spring</artifactId>
  411. <scope>runtime</scope>
  412. </dependency>
  413. <dependency>
  414. <groupId>org.apache.archiva</groupId>
  415. <artifactId>metadata-model</artifactId>
  416. </dependency>
  417. <dependency>
  418. <groupId>org.apache.maven</groupId>
  419. <artifactId>maven-model</artifactId>
  420. <version>${maven3x.version}</version>
  421. </dependency>
  422. <dependency>
  423. <groupId>org.apache.maven</groupId>
  424. <artifactId>maven-model-builder</artifactId>
  425. <version>${maven3x.version}</version>
  426. </dependency>
  427. <dependency>
  428. <groupId>org.sonatype.sisu</groupId>
  429. <artifactId>sisu-inject-plexus</artifactId>
  430. </dependency>
  431. <dependency>
  432. <groupId>org.sonatype.sisu</groupId>
  433. <artifactId>sisu-guice</artifactId>
  434. </dependency>
  435. <dependency>
  436. <groupId>org.apache.archiva</groupId>
  437. <artifactId>archiva-plexus-bridge</artifactId>
  438. </dependency>
  439. <dependency>
  440. <groupId>org.apache.archiva</groupId>
  441. <artifactId>archiva-repository-admin-api</artifactId>
  442. </dependency>
  443. <dependency>
  444. <groupId>org.apache.archiva</groupId>
  445. <artifactId>archiva-repository-admin-default</artifactId>
  446. </dependency>
  447. <dependency>
  448. <groupId>org.apache.archiva</groupId>
  449. <artifactId>metadata-repository-api</artifactId>
  450. </dependency>
  451. <dependency>
  452. <groupId>org.apache.archiva</groupId>
  453. <artifactId>metadata-store-jcr</artifactId>
  454. <scope>runtime</scope>
  455. </dependency>
  456. <dependency>
  457. <groupId>org.apache.jackrabbit</groupId>
  458. <artifactId>jackrabbit-core</artifactId>
  459. <exclusions>
  460. <exclusion>
  461. <groupId>commons-logging</groupId>
  462. <artifactId>commons-logging</artifactId>
  463. </exclusion>
  464. </exclusions>
  465. </dependency>
  466. <dependency>
  467. <groupId>org.apache.velocity</groupId>
  468. <artifactId>velocity-tools</artifactId>
  469. <version>1.3</version>
  470. <scope>runtime</scope>
  471. <exclusions>
  472. <exclusion>
  473. <groupId>commons-logging</groupId>
  474. <artifactId>commons-logging</artifactId>
  475. </exclusion>
  476. <exclusion>
  477. <groupId>velocity</groupId>
  478. <artifactId>velocity-dep</artifactId>
  479. </exclusion>
  480. <exclusion>
  481. <groupId>struts</groupId>
  482. <artifactId>struts</artifactId>
  483. </exclusion>
  484. </exclusions>
  485. </dependency>
  486. <dependency>
  487. <groupId>org.apache.archiva</groupId>
  488. <!-- FIXME: temporary coupling to plugin, should be runtime -->
  489. <artifactId>maven2-repository</artifactId>
  490. </dependency>
  491. <dependency>
  492. <groupId>org.mockito</groupId>
  493. <artifactId>mockito-all</artifactId>
  494. <scope>test</scope>
  495. </dependency>
  496. <dependency>
  497. <groupId>org.apache.struts</groupId>
  498. <artifactId>struts2-junit-plugin</artifactId>
  499. <scope>test</scope>
  500. <version>${struts.version}</version>
  501. </dependency>
  502. <dependency>
  503. <groupId>jpox</groupId>
  504. <artifactId>jpox-ehcache</artifactId>
  505. <exclusions>
  506. <exclusion>
  507. <groupId>commons-logging</groupId>
  508. <artifactId>commons-logging</artifactId>
  509. </exclusion>
  510. <exclusion>
  511. <groupId>ehcache</groupId>
  512. <artifactId>ehcache</artifactId>
  513. </exclusion>
  514. </exclusions>
  515. </dependency>
  516. <dependency>
  517. <groupId>org.eclipse.jetty</groupId>
  518. <artifactId>jetty-server</artifactId>
  519. <version>${jettyVersion}</version>
  520. <scope>test</scope>
  521. </dependency>
  522. <dependency>
  523. <groupId>org.eclipse.jetty</groupId>
  524. <artifactId>jetty-plus</artifactId>
  525. <version>${jettyVersion}</version>
  526. <scope>test</scope>
  527. </dependency>
  528. <dependency>
  529. <groupId>org.codehaus.redback</groupId>
  530. <artifactId>redback-rest-services</artifactId>
  531. <classifier>tests</classifier>
  532. <scope>test</scope>
  533. </dependency>
  534. </dependencies>
  535. <build>
  536. <resources>
  537. <resource>
  538. <directory>src/main/resources</directory>
  539. </resource>
  540. <resource>
  541. <directory>src/main/filtered-resources</directory>
  542. <filtering>true</filtering>
  543. </resource>
  544. </resources>
  545. <plugins>
  546. <plugin>
  547. <groupId>org.apache.maven.plugins</groupId>
  548. <artifactId>maven-surefire-plugin</artifactId>
  549. <configuration>
  550. <runOrder>alphabetical</runOrder>
  551. <systemPropertyVariables>
  552. <appserver.base>${project.build.directory}/appserver-base</appserver.base>
  553. <plexus.home>${project.build.directory}/appserver-base</plexus.home>
  554. <derby.system.home>${project.build.directory}/appserver-base</derby.system.home>
  555. <archiva.baseRestUrl>${archiva.baseRestUrl}</archiva.baseRestUrl>
  556. <rest.admin.pwd>${rest.admin.pwd}</rest.admin.pwd>
  557. <archiva.user.configFileName>${basedir}/target/archiva.xml</archiva.user.configFileName>
  558. <basedir>${basedir}</basedir>
  559. </systemPropertyVariables>
  560. </configuration>
  561. </plugin>
  562. <!-- hack for jetty:run, archiva web config files are checked in /WEB-INF/ dir -->
  563. <plugin>
  564. <groupId>org.apache.maven.plugins</groupId>
  565. <artifactId>maven-antrun-plugin</artifactId>
  566. <executions>
  567. <execution>
  568. <id>copy-web-config-files</id>
  569. <goals>
  570. <goal>run</goal>
  571. </goals>
  572. <phase>compile</phase>
  573. <configuration>
  574. <tasks>
  575. <mkdir dir="${basedir}/target/archiva/WEB-INF/"/>
  576. <copy todir="${basedir}/target/archiva/WEB-INF/">
  577. <fileset dir="${basedir}/target" includes="classes/" excludes="**/struts.xml,**/ehcache.xml"/>
  578. </copy>
  579. </tasks>
  580. </configuration>
  581. </execution>
  582. <execution>
  583. <phase>generate-resources</phase>
  584. <goals>
  585. <goal>run</goal>
  586. </goals>
  587. <configuration>
  588. <tasks>
  589. <copy todir="${basedir}/appserver-base">
  590. <fileset dir="src/appserver-base"/>
  591. </copy>
  592. </tasks>
  593. </configuration>
  594. </execution>
  595. </executions>
  596. </plugin>
  597. <plugin>
  598. <groupId>org.apache.maven.plugins</groupId>
  599. <artifactId>maven-war-plugin</artifactId>
  600. <version>2.1.1</version>
  601. <configuration>
  602. <!-- Some versions of maven-war-plugin (snapshots) have this incorrectly defaulted to true.
  603. Specifically setting this to false to avoid accidental jar file creation. -->
  604. <archiveClasses>false</archiveClasses>
  605. <dependentWarExcludes>META-INF/**,WEB-INF/web.xml,WEB-INF/classes/xwork.xml,WEB-INF/lib/**
  606. </dependentWarExcludes>
  607. <warSourceExcludes>
  608. 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,WEB-INF/lib/commons-lang-*.jar
  609. </warSourceExcludes>
  610. </configuration>
  611. </plugin>
  612. <plugin>
  613. <groupId>org.codehaus.mojo</groupId>
  614. <artifactId>tomcat-maven-plugin</artifactId>
  615. <configuration>
  616. <port>9091</port>
  617. <path>/archiva</path>
  618. <contextFile>${basedir}/src/test/tomcat/tomcat-context-archiva.xml</contextFile>
  619. <systemProperties>
  620. <plexus.home>${basedir}/appserver-base</plexus.home>
  621. <appserver.base>${basedir}/appserver-base</appserver.base>
  622. <appserver.home>${project.build.directory}/appserver-home</appserver.home>
  623. <derby.system.home>${basedir}/appserver-base/logs</derby.system.home>
  624. <redback.admin.creation.file>${basedir}/target/auto-admin-creation.properties</redback.admin.creation.file>
  625. </systemProperties>
  626. </configuration>
  627. <dependencies>
  628. <dependency>
  629. <groupId>org.apache.derby</groupId>
  630. <artifactId>derby</artifactId>
  631. <version>10.1.3.1</version>
  632. </dependency>
  633. <dependency>
  634. <groupId>javax.mail</groupId>
  635. <artifactId>mail</artifactId>
  636. <version>1.4</version>
  637. </dependency>
  638. </dependencies>
  639. </plugin>
  640. <plugin>
  641. <groupId>org.mortbay.jetty</groupId>
  642. <artifactId>maven-jetty-plugin</artifactId>
  643. <version>${jetty.version}</version>
  644. <configuration>
  645. <webAppConfig>
  646. <contextPath>/</contextPath>
  647. <baseResource implementation="org.mortbay.resource.ResourceCollection">
  648. <resourcesAsCSV>src/main/webapp,target/archiva,target/redback</resourcesAsCSV>
  649. </baseResource>
  650. </webAppConfig>
  651. <scanIntervalSeconds>10</scanIntervalSeconds>
  652. <jettyEnvXml>src/jetty-env.xml</jettyEnvXml>
  653. <connectors>
  654. <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
  655. <port>9091</port>
  656. <maxIdleTime>60000</maxIdleTime>
  657. </connector>
  658. </connectors>
  659. <systemProperties>
  660. <systemProperty>
  661. <name>plexus.home</name>
  662. <value>${basedir}/appserver-base</value>
  663. </systemProperty>
  664. <systemProperty>
  665. <name>appserver.base</name>
  666. <value>${basedir}/appserver-base</value>
  667. </systemProperty>
  668. <systemProperty>
  669. <name>appserver.home</name>
  670. <value>${project.build.directory}/appserver-home</value>
  671. </systemProperty>
  672. <systemProperty>
  673. <name>derby.system.home</name>
  674. <value>${basedir}/appserver-base/logs</value>
  675. </systemProperty>
  676. </systemProperties>
  677. </configuration>
  678. <dependencies>
  679. <dependency>
  680. <groupId>org.apache.derby</groupId>
  681. <artifactId>derby</artifactId>
  682. <version>10.1.3.1</version>
  683. </dependency>
  684. </dependencies>
  685. </plugin>
  686. <plugin>
  687. <groupId>org.apache.maven.plugins</groupId>
  688. <artifactId>maven-dependency-plugin</artifactId>
  689. <executions>
  690. <execution>
  691. <id>unpack-redback-war</id>
  692. <goals>
  693. <goal>unpack</goal>
  694. </goals>
  695. <phase>compile</phase>
  696. <configuration>
  697. <artifactItems>
  698. <artifactItem>
  699. <groupId>org.codehaus.redback</groupId>
  700. <artifactId>redback-struts2-content</artifactId>
  701. <version>${redback.version}</version>
  702. <type>war</type>
  703. <overWrite>false</overWrite>
  704. <outputDirectory>${project.build.directory}/redback</outputDirectory>
  705. <excludes>**/struts-security.xml</excludes>
  706. </artifactItem>
  707. </artifactItems>
  708. </configuration>
  709. </execution>
  710. <execution>
  711. <id>copy</id>
  712. <phase>process-resources</phase>
  713. <goals>
  714. <goal>copy</goal>
  715. </goals>
  716. <configuration>
  717. <artifactItems>
  718. <artifactItem>
  719. <groupId>${project.groupId}</groupId>
  720. <artifactId>archiva-applet</artifactId>
  721. <version>${project.version}</version>
  722. <outputDirectory>src/main/webapp</outputDirectory>
  723. <destFileName>archiva-applet.jar</destFileName>
  724. </artifactItem>
  725. </artifactItems>
  726. </configuration>
  727. </execution>
  728. </executions>
  729. </plugin>
  730. </plugins>
  731. <pluginManagement>
  732. <plugins>
  733. <plugin>
  734. <groupId>org.apache.rat</groupId>
  735. <artifactId>apache-rat-plugin</artifactId>
  736. <configuration>
  737. <excludes>
  738. <exclude>appserver-base/**</exclude>
  739. <exclude>overlays/**</exclude>
  740. <exclude>src/appserver-base/conf/**</exclude>
  741. <exclude>src/appserver-base/logs/**</exclude>
  742. <exclude>src/main/webapp/js/jquery-1.6.1.min.js</exclude>
  743. <exclude>src/main/webapp/js/jquery-ui-1.8.14.custom.min.js</exclude>
  744. <exclude>src/main/webapp/js/md5.js</exclude>
  745. <exclude>src/main/webapp/css/no-theme/**</exclude>
  746. <exclude>src/main/webapp/css/redback/**</exclude>
  747. <exclude>src/main/webapp/WEB-INF/jsp/redback/**</exclude>
  748. <exclude>src/main/resources/archiva-mime-types.txt</exclude>
  749. <exclude>src/test/resources/test-repo/**</exclude>
  750. <exclude>src/test/resources/**</exclude>
  751. <exclude>src/sql/**</exclude>
  752. </excludes>
  753. </configuration>
  754. </plugin>
  755. </plugins>
  756. </pluginManagement>
  757. </build>
  758. <profiles>
  759. <profile>
  760. <id>mysql</id>
  761. <dependencies>
  762. <dependency>
  763. <groupId>mysql</groupId>
  764. <artifactId>mysql-connector-java</artifactId>
  765. <version>5.0.4</version>
  766. </dependency>
  767. </dependencies>
  768. <build>
  769. <plugins>
  770. <plugin>
  771. <groupId>org.mortbay.jetty</groupId>
  772. <artifactId>maven-jetty-plugin</artifactId>
  773. <configuration>
  774. <jettyEnvXml>src/jetty-env-mysql.xml</jettyEnvXml>
  775. </configuration>
  776. </plugin>
  777. </plugins>
  778. </build>
  779. </profile>
  780. <profile>
  781. <id>postgres</id>
  782. <dependencies>
  783. <dependency>
  784. <groupId>postgresql</groupId>
  785. <artifactId>postgresql</artifactId>
  786. <version>8.2-504.jdbc3</version>
  787. </dependency>
  788. </dependencies>
  789. <build>
  790. <plugins>
  791. <plugin>
  792. <groupId>org.mortbay.jetty</groupId>
  793. <artifactId>maven-jetty-plugin</artifactId>
  794. <configuration>
  795. <jettyEnvXml>src/jetty-env-postgres.xml</jettyEnvXml>
  796. </configuration>
  797. </plugin>
  798. </plugins>
  799. </build>
  800. </profile>
  801. <profile>
  802. <id>cleanJetty</id>
  803. <build>
  804. <plugins>
  805. <plugin>
  806. <groupId>org.apache.maven.plugins</groupId>
  807. <artifactId>maven-clean-plugin</artifactId>
  808. <executions>
  809. <execution>
  810. <id>cleanJetty</id>
  811. <phase>clean</phase>
  812. <configuration>
  813. <filesets>
  814. <fileset>
  815. <directory>${basedir}/appserver-base</directory>
  816. <includes>
  817. <include>**/**</include>
  818. </includes>
  819. </fileset>
  820. </filesets>
  821. </configuration>
  822. <goals>
  823. <goal>clean</goal>
  824. </goals>
  825. </execution>
  826. </executions>
  827. </plugin>
  828. </plugins>
  829. </build>
  830. </profile>
  831. <profile>
  832. <!-- profile for tomcat plugin dev an log output in the console -->
  833. <id>dev</id>
  834. <build>
  835. <plugins>
  836. <plugin>
  837. <groupId>org.apache.maven.plugins</groupId>
  838. <artifactId>maven-antrun-plugin</artifactId>
  839. <executions>
  840. <execution>
  841. <id>override-log4j-with-console-output</id>
  842. <phase>process-resources</phase>
  843. <goals>
  844. <goal>run</goal>
  845. </goals>
  846. <configuration>
  847. <tasks>
  848. <copy overwrite="true" file="${basedir}/src/test/tomcat/log4j.xml" todir="${project.build.directory}/classes" />
  849. <copy overwrite="true" file="${basedir}/src/test/tomcat/auto-admin-creation.properties" todir="${basedir}/target/" />
  850. <delete dir="${basedir}/src/main/webapp/WEB-INF/lib" />
  851. </tasks>
  852. </configuration>
  853. </execution>
  854. </executions>
  855. </plugin>
  856. <plugin>
  857. <groupId>org.apache.maven.plugins</groupId>
  858. <artifactId>maven-dependency-plugin</artifactId>
  859. <executions>
  860. <!-- redefine to skip its execution in Tomcat -->
  861. <execution>
  862. <id>copy</id>
  863. <phase>process-resources</phase>
  864. <goals>
  865. <goal>copy</goal>
  866. </goals>
  867. <configuration>
  868. <skip>true</skip>
  869. <artifactItems>
  870. <artifactItem>
  871. <groupId>${project.groupId}</groupId>
  872. <artifactId>archiva-applet</artifactId>
  873. <version>${project.version}</version>
  874. <outputDirectory>src/main/webapp</outputDirectory>
  875. <destFileName>archiva-applet.jar</destFileName>
  876. </artifactItem>
  877. </artifactItems>
  878. </configuration>
  879. </execution>
  880. <!-- redefine to override exclude configuration (and add back struts-security.xml -->
  881. <execution>
  882. <id>unpack-redback-war</id>
  883. <goals>
  884. <goal>unpack</goal>
  885. </goals>
  886. <phase>compile</phase>
  887. <configuration>
  888. <artifactItems combine.self="override">
  889. <artifactItem>
  890. <groupId>org.codehaus.redback</groupId>
  891. <artifactId>redback-struts2-content</artifactId>
  892. <version>${redback.version}</version>
  893. <type>war</type>
  894. <overWrite>false</overWrite>
  895. <outputDirectory>${basedir}/src/main/webapp</outputDirectory>
  896. <excludes>**/web.xml,**/struts*.jar,**/sitemesh*.jar</excludes>
  897. </artifactItem>
  898. </artifactItems>
  899. </configuration>
  900. </execution>
  901. </executions>
  902. </plugin>
  903. </plugins>
  904. </build>
  905. <dependencies>
  906. <!-- TODO: Bug in the Tomcat plugin - it doesn't seem to respect runtime dependencies, so we redeclare it as compile -->
  907. <dependency>
  908. <groupId>org.apache.archiva</groupId>
  909. <artifactId>metadata-store-jcr</artifactId>
  910. <scope>compile</scope>
  911. </dependency>
  912. <dependency>
  913. <groupId>org.apache.jackrabbit</groupId>
  914. <artifactId>jackrabbit-core</artifactId>
  915. <scope>compile</scope>
  916. <exclusions>
  917. <exclusion>
  918. <groupId>commons-logging</groupId>
  919. <artifactId>commons-logging</artifactId>
  920. </exclusion>
  921. </exclusions>
  922. </dependency>
  923. </dependencies>
  924. </profile>
  925. <profile>
  926. <id>svn-buildnumber</id>
  927. <activation>
  928. <file>
  929. <exists>.svn</exists>
  930. </file>
  931. </activation>
  932. <build>
  933. <plugins>
  934. <plugin>
  935. <groupId>org.codehaus.mojo</groupId>
  936. <artifactId>buildnumber-maven-plugin</artifactId>
  937. <executions>
  938. <execution>
  939. <phase>generate-resources</phase>
  940. <goals>
  941. <goal>create</goal>
  942. </goals>
  943. </execution>
  944. </executions>
  945. <configuration>
  946. <doCheck>false</doCheck>
  947. <doUpdate>false</doUpdate>
  948. <providerImplementations>
  949. <svn>javasvn</svn>
  950. </providerImplementations>
  951. </configuration>
  952. </plugin>
  953. </plugins>
  954. </build>
  955. </profile>
  956. <profile>
  957. <id>non-canonical-buildnumber</id>
  958. <activation>
  959. <file>
  960. <missing>.svn</missing>
  961. </file>
  962. </activation>
  963. <build>
  964. <plugins>
  965. <plugin>
  966. <groupId>org.codehaus.mojo</groupId>
  967. <artifactId>buildnumber-maven-plugin</artifactId>
  968. <executions>
  969. <execution>
  970. <phase>generate-resources</phase>
  971. <goals>
  972. <goal>create</goal>
  973. </goals>
  974. </execution>
  975. </executions>
  976. <configuration>
  977. <doCheck>false</doCheck>
  978. <doUpdate>false</doUpdate>
  979. <format>NON-CANONICAL_{0,date,yyyy-MM-dd_HH-mm}_{1}</format>
  980. <items>
  981. <item>timestamp</item>
  982. <item>${user.name}</item>
  983. </items>
  984. </configuration>
  985. </plugin>
  986. </plugins>
  987. </build>
  988. </profile>
  989. <profile>
  990. <!-- olamy profile to test tomcat plugin dev -->
  991. <id>tdev</id>
  992. <build>
  993. <plugins>
  994. <plugin>
  995. <groupId>org.apache.tomcat.maven</groupId>
  996. <artifactId>tomcat6-maven-plugin</artifactId>
  997. <version>2.0-SNAPSHOT</version>
  998. <configuration>
  999. <port>9091</port>
  1000. <path>/archiva</path>
  1001. <contextFile>${basedir}/src/test/tomcat/tomcat-context-archiva.xml</contextFile>
  1002. <systemProperties>
  1003. <plexus.home>${basedir}/appserver-base</plexus.home>
  1004. <appserver.base>${basedir}/appserver-base</appserver.base>
  1005. <appserver.home>${project.build.directory}/appserver-home</appserver.home>
  1006. <derby.system.home>${basedir}/appserver-base/logs</derby.system.home>
  1007. <redback.admin.creation.file>${basedir}/target/auto-admin-creation.properties</redback.admin.creation.file>
  1008. </systemProperties>
  1009. </configuration>
  1010. <dependencies>
  1011. <dependency>
  1012. <groupId>org.apache.derby</groupId>
  1013. <artifactId>derby</artifactId>
  1014. <version>10.1.3.1</version>
  1015. </dependency>
  1016. <dependency>
  1017. <groupId>javax.mail</groupId>
  1018. <artifactId>mail</artifactId>
  1019. <version>1.4</version>
  1020. </dependency>
  1021. </dependencies>
  1022. </plugin>
  1023. </plugins>
  1024. </build>
  1025. </profile>
  1026. </profiles>
  1027. </project>