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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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.4-M4-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.eclipse.jetty</groupId>
  34. <artifactId>jetty-server</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.apache.archiva</groupId>
  38. <artifactId>archiva-webapp</artifactId>
  39. <type>war</type>
  40. </dependency>
  41. <!-- Runtime dependencies that need to be included in the generated binaries -->
  42. <dependency>
  43. <groupId>org.eclipse.jetty</groupId>
  44. <artifactId>jetty-jndi</artifactId>
  45. <version>${jettyVersion}</version>
  46. <scope>runtime</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.eclipse.jetty</groupId>
  50. <artifactId>jetty-start</artifactId>
  51. <version>${jettyVersion}</version>
  52. <scope>runtime</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.eclipse.jetty</groupId>
  56. <artifactId>jetty-plus</artifactId>
  57. <scope>runtime</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.eclipse.jetty</groupId>
  61. <artifactId>jetty-deploy</artifactId>
  62. <version>${jettyVersion}</version>
  63. <scope>runtime</scope>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.derby</groupId>
  67. <artifactId>derby</artifactId>
  68. <scope>runtime</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>javax.mail</groupId>
  72. <artifactId>mail</artifactId>
  73. <scope>runtime</scope>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.apache.ant</groupId>
  77. <artifactId>ant</artifactId>
  78. <scope>runtime</scope>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.apache.tomcat</groupId>
  82. <artifactId>tomcat-jdbc</artifactId>
  83. <scope>runtime</scope>
  84. </dependency>
  85. </dependencies>
  86. <build>
  87. <plugins>
  88. <plugin>
  89. <groupId>org.codehaus.mojo</groupId>
  90. <artifactId>appassembler-maven-plugin</artifactId>
  91. <configuration>
  92. <daemons>
  93. <daemon>
  94. <id>archiva</id>
  95. <mainClass>org.eclipse.jetty.start.Main</mainClass>
  96. <commandLineArguments>
  97. <commandLineArgument>conf/jetty.xml</commandLineArgument>
  98. </commandLineArguments>
  99. <platforms>
  100. <platform>jsw</platform>
  101. </platforms>
  102. <generatorConfigurations>
  103. <generatorConfiguration>
  104. <generator>jsw</generator>
  105. <configuration>
  106. <property>
  107. <name>wrapper.console.loglevel</name>
  108. <value>INFO</value>
  109. </property>
  110. <property>
  111. <name>wrapper.java.additional.1.stripquotes</name>
  112. <value>TRUE</value>
  113. </property>
  114. <property>
  115. <name>set.default.REPO_DIR</name>
  116. <value>lib</value>
  117. </property>
  118. <property>
  119. <name>wrapper.logfile</name>
  120. <value>%ARCHIVA_BASE%/logs/wrapper.YYYYMMDD.log</value>
  121. </property>
  122. <property>
  123. <name>wrapper.logfile.rollmode</name>
  124. <value>DATE</value>
  125. </property>
  126. <property>
  127. <name>wrapper.app.parameter.2</name>
  128. <value>%ARCHIVA_BASE%/conf/jetty.xml</value>
  129. </property>
  130. <property>
  131. <name>app.base.envvar</name>
  132. <value>ARCHIVA_BASE</value>
  133. </property>
  134. <property>
  135. <name>wrapper.on_exit.default</name>
  136. <value>RESTART</value>
  137. </property>
  138. <property>
  139. <name>wrapper.on_exit.0</name>
  140. <value>SHUTDOWN</value>
  141. </property>
  142. <property>
  143. <name>wrapper.restart.delay</name>
  144. <value>30</value>
  145. </property>
  146. </configuration>
  147. <includes>
  148. <include>linux-x86-32</include>
  149. <include>linux-x86-64</include>
  150. <include>macosx-x86-universal-32</include>
  151. <!-- not available -->
  152. <include>macosx-x86-universal-64</include>
  153. <include>solaris-x86-32</include>
  154. <include>solaris-sparc-32</include>
  155. <include>solaris-sparc-64</include>
  156. <include>windows-x86-32</include>
  157. <include>windows-x86-64</include>
  158. </includes>
  159. </generatorConfiguration>
  160. </generatorConfigurations>
  161. <jvmSettings>
  162. <systemProperties>
  163. <systemProperty>appserver.home=.</systemProperty>
  164. <systemProperty>appserver.base=%ARCHIVA_BASE%</systemProperty>
  165. <!-- can't set this at present, it moves the databases if ARCHIVA_BASE is not set
  166. <systemProperty>derby.system.home=%ARCHIVA_BASE%/logs</systemProperty>
  167. -->
  168. <systemProperty>jetty.logs=%ARCHIVA_BASE%/logs</systemProperty>
  169. <systemProperty>java.io.tmpdir=%ARCHIVA_BASE%/temp</systemProperty>
  170. <systemProperty>archiva.tmp.group.index.ttl=30</systemProperty>
  171. </systemProperties>
  172. <extraArguments>
  173. <extraArgument>-XX:MaxPermSize=128m</extraArgument>
  174. </extraArguments>
  175. <initialMemorySize>512</initialMemorySize>
  176. <maxMemorySize>512</maxMemorySize>
  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-js-${project.version}</finalName>
  207. </configuration>
  208. </plugin>
  209. <plugin>
  210. <groupId>org.apache.maven.plugins</groupId>
  211. <artifactId>maven-antrun-plugin</artifactId>
  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. <mkdir dir="target/generated-resources/appassembler/jsw/archiva/temp" />
  223. </tasks>
  224. </configuration>
  225. <goals>
  226. <goal>run</goal>
  227. </goals>
  228. </execution>
  229. </executions>
  230. </plugin>
  231. <plugin>
  232. <artifactId>maven-remote-resources-plugin</artifactId>
  233. <configuration>
  234. <supplementalModels>
  235. <supplementalModel>notice-supplements.xml</supplementalModel>
  236. </supplementalModels>
  237. </configuration>
  238. </plugin>
  239. </plugins>
  240. <pluginManagement>
  241. <plugins>
  242. <plugin>
  243. <groupId>org.apache.rat</groupId>
  244. <artifactId>apache-rat-plugin</artifactId>
  245. <configuration>
  246. <excludes>
  247. <exclude>src/main/conf/**</exclude>
  248. </excludes>
  249. </configuration>
  250. </plugin>
  251. </plugins>
  252. </pluginManagement>
  253. </build>
  254. </project>