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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <?xml version="1.0"?>
  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</artifactId>
  25. <version>1.2.3-SNAPSHOT</version>
  26. </parent>
  27. <artifactId>archiva-jetty</artifactId>
  28. <packaging>pom</packaging>
  29. <!-- This is filtered into the scripts, so should be set to Apache Archiva -->
  30. <name>Apache Archiva</name>
  31. <dependencies>
  32. <dependency>
  33. <groupId>org.mortbay.jetty</groupId>
  34. <artifactId>jetty</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.mortbay.jetty</groupId>
  38. <artifactId>start</artifactId>
  39. <version>${jetty.version}</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.apache.archiva</groupId>
  43. <artifactId>archiva-webapp</artifactId>
  44. <type>war</type>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.apache.archiva</groupId>
  48. <artifactId>archiva-docs</artifactId>
  49. <type>zip</type>
  50. <classifier>docs</classifier>
  51. </dependency>
  52. <!-- Runtime dependencies that need to be included in the generated binaries -->
  53. <dependency>
  54. <groupId>org.mortbay.jetty</groupId>
  55. <artifactId>jetty-naming</artifactId>
  56. <version>${jetty.version}</version>
  57. <scope>runtime</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.mortbay.jetty</groupId>
  61. <artifactId>jsp-2.1-jetty</artifactId>
  62. <version>${jetty.version}</version>
  63. <scope>runtime</scope>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.mortbay.jetty</groupId>
  67. <artifactId>jetty-plus</artifactId>
  68. <version>${jetty.version}</version>
  69. <scope>runtime</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.apache.derby</groupId>
  73. <artifactId>derby</artifactId>
  74. <version>10.1.3.1</version>
  75. <scope>runtime</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>javax.mail</groupId>
  79. <artifactId>mail</artifactId>
  80. <version>1.4</version>
  81. <scope>runtime</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>ant</groupId>
  85. <artifactId>ant</artifactId>
  86. <version>1.6.5</version>
  87. <scope>runtime</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>commons-dbcp</groupId>
  91. <artifactId>commons-dbcp</artifactId>
  92. <version>1.2.1</version>
  93. </dependency>
  94. </dependencies>
  95. <build>
  96. <plugins>
  97. <plugin>
  98. <groupId>org.codehaus.mojo</groupId>
  99. <artifactId>appassembler-maven-plugin</artifactId>
  100. <version>1.0</version>
  101. <configuration>
  102. <daemons>
  103. <daemon>
  104. <id>archiva</id>
  105. <mainClass>org.mortbay.start.Main</mainClass>
  106. <commandLineArguments>
  107. <commandLineArgument>conf/jetty.xml</commandLineArgument>
  108. </commandLineArguments>
  109. <platforms>
  110. <platform>jsw</platform>
  111. </platforms>
  112. <generatorConfigurations>
  113. <generatorConfiguration>
  114. <generator>jsw</generator>
  115. <configuration>
  116. <property>
  117. <name>wrapper.console.loglevel</name>
  118. <value>INFO</value>
  119. </property>
  120. <property>
  121. <name>wrapper.java.additional.1.stripquotes</name>
  122. <value>TRUE</value>
  123. </property>
  124. <property>
  125. <name>set.default.REPO_DIR</name>
  126. <value>lib</value>
  127. </property>
  128. <property>
  129. <name>wrapper.logfile</name>
  130. <value>%ARCHIVA_BASE%/logs/wrapper.YYYYMMDD.log</value>
  131. </property>
  132. <property>
  133. <name>wrapper.logfile.rollmode</name>
  134. <value>DATE</value>
  135. </property>
  136. <property>
  137. <name>wrapper.app.parameter.2</name>
  138. <value>%ARCHIVA_BASE%/conf/jetty.xml</value>
  139. </property>
  140. <property>
  141. <name>app.base.envvar</name>
  142. <value>ARCHIVA_BASE</value>
  143. </property>
  144. <property>
  145. <name>wrapper.on_exit.default</name>
  146. <value>RESTART</value>
  147. </property>
  148. <property>
  149. <name>wrapper.on_exit.0</name>
  150. <value>SHUTDOWN</value>
  151. </property>
  152. <property>
  153. <name>wrapper.restart.delay</name>
  154. <value>30</value>
  155. </property>
  156. </configuration>
  157. <includes>
  158. <include>linux-x86-32</include>
  159. <include>linux-x86-64</include>
  160. <include>macosx-x86-universal-32</include>
  161. <include>solaris-x86-32</include>
  162. <include>solaris-sparc-32</include>
  163. <include>solaris-sparc-64</include>
  164. <include>windows-x86-32</include>
  165. </includes>
  166. </generatorConfiguration>
  167. </generatorConfigurations>
  168. <jvmSettings>
  169. <systemProperties>
  170. <systemProperty>appserver.home=.</systemProperty>
  171. <systemProperty>appserver.base=%ARCHIVA_BASE%</systemProperty>
  172. <!-- can't set this at present, it moves the databases if ARCHIVA_BASE is not set
  173. <systemProperty>derby.system.home=%ARCHIVA_BASE%/logs</systemProperty>
  174. -->
  175. <systemProperty>jetty.logs=%ARCHIVA_BASE%/logs</systemProperty>
  176. </systemProperties>
  177. </jvmSettings>
  178. </daemon>
  179. </daemons>
  180. <repoPath>lib</repoPath>
  181. <repositoryLayout>flat</repositoryLayout>
  182. <assembleDirectory>target/generated-resources/appassembler/jsw/archiva</assembleDirectory>
  183. </configuration>
  184. <executions>
  185. <execution>
  186. <goals>
  187. <goal>generate-daemons</goal>
  188. <goal>create-repository</goal>
  189. </goals>
  190. </execution>
  191. </executions>
  192. </plugin>
  193. <plugin>
  194. <groupId>org.apache.maven.plugins</groupId>
  195. <artifactId>maven-assembly-plugin</artifactId>
  196. <executions>
  197. <execution>
  198. <phase>package</phase>
  199. <goals>
  200. <goal>single</goal>
  201. </goals>
  202. </execution>
  203. </executions>
  204. <configuration>
  205. <descriptor>src/main/assembly/bin.xml</descriptor>
  206. <finalName>apache-archiva-${version}</finalName>
  207. </configuration>
  208. </plugin>
  209. <plugin>
  210. <artifactId>maven-antrun-plugin</artifactId>
  211. <version>1.1</version>
  212. <executions>
  213. <execution>
  214. <id>config</id>
  215. <phase>process-resources</phase>
  216. <configuration>
  217. <tasks>
  218. <copy todir="target/generated-resources/appassembler/jsw/archiva/conf">
  219. <fileset dir="src/main/conf" />
  220. </copy>
  221. <mkdir dir="target/generated-resources/appassembler/jsw/archiva/logs" />
  222. </tasks>
  223. </configuration>
  224. <goals>
  225. <goal>run</goal>
  226. </goals>
  227. </execution>
  228. </executions>
  229. </plugin>
  230. <plugin>
  231. <artifactId>maven-remote-resources-plugin</artifactId>
  232. <configuration>
  233. <supplementalModels>
  234. <supplementalModel>notice-supplements.xml</supplementalModel>
  235. </supplementalModels>
  236. </configuration>
  237. </plugin>
  238. </plugins>
  239. </build>
  240. </project>