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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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>2.2.10-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. <dependency>
  86. <groupId>org.apache.tomcat</groupId>
  87. <artifactId>tomcat-juli</artifactId>
  88. <scope>runtime</scope>
  89. </dependency>
  90. </dependencies>
  91. <build>
  92. <plugins>
  93. <plugin>
  94. <groupId>org.codehaus.mojo</groupId>
  95. <artifactId>appassembler-maven-plugin</artifactId>
  96. <configuration>
  97. <configurationDirectory>conf</configurationDirectory>
  98. <daemons>
  99. <daemon>
  100. <id>archiva</id>
  101. <mainClass>org.eclipse.jetty.start.Main</mainClass>
  102. <commandLineArguments>
  103. <commandLineArgument>conf/jetty.xml</commandLineArgument>
  104. </commandLineArguments>
  105. <platforms>
  106. <platform>jsw</platform>
  107. </platforms>
  108. <generatorConfigurations>
  109. <generatorConfiguration>
  110. <generator>jsw</generator>
  111. <configuration>
  112. <property>
  113. <name>wrapper.console.loglevel</name>
  114. <value>INFO</value>
  115. </property>
  116. <property>
  117. <name>wrapper.java.additional.1.stripquotes</name>
  118. <value>TRUE</value>
  119. </property>
  120. <property>
  121. <name>set.default.REPO_DIR</name>
  122. <value>lib</value>
  123. </property>
  124. <property>
  125. <name>wrapper.logfile</name>
  126. <value>%ARCHIVA_BASE%/logs/wrapper-YYYYMMDD.log</value>
  127. </property>
  128. <property>
  129. <name>wrapper.logfile.rollmode</name>
  130. <value>DATE</value>
  131. </property>
  132. <property>
  133. <name>wrapper.app.parameter.2</name>
  134. <value>%ARCHIVA_BASE%/conf/jetty.xml</value>
  135. </property>
  136. <property>
  137. <name>app.base.envvar</name>
  138. <value>ARCHIVA_BASE</value>
  139. </property>
  140. <property>
  141. <name>wrapper.on_exit.default</name>
  142. <value>RESTART</value>
  143. </property>
  144. <property>
  145. <name>wrapper.on_exit.0</name>
  146. <value>SHUTDOWN</value>
  147. </property>
  148. <property>
  149. <name>wrapper.restart.delay</name>
  150. <value>30</value>
  151. </property>
  152. </configuration>
  153. <includes>
  154. <include>linux-x86-32</include>
  155. <include>linux-x86-64</include>
  156. <include>macosx-universal-32</include>
  157. <!-- not available -->
  158. <include>macosx-universal-64</include>
  159. <include>solaris-x86-32</include>
  160. <include>solaris-sparc-32</include>
  161. <include>solaris-sparc-64</include>
  162. <include>windows-x86-32</include>
  163. <include>windows-x86-64</include>
  164. </includes>
  165. </generatorConfiguration>
  166. </generatorConfigurations>
  167. <jvmSettings>
  168. <systemProperties>
  169. <systemProperty>appserver.home=.</systemProperty>
  170. <systemProperty>appserver.base=%ARCHIVA_BASE%</systemProperty>
  171. <!-- can't set this at present, it moves the databases if ARCHIVA_BASE is not set
  172. <systemProperty>derby.system.home=%ARCHIVA_BASE%/logs</systemProperty>
  173. -->
  174. <systemProperty>jetty.logs=%ARCHIVA_BASE%/logs</systemProperty>
  175. <systemProperty>java.io.tmpdir=%ARCHIVA_BASE%/temp</systemProperty>
  176. <systemProperty>AsyncLoggerConfig.WaitStrategy=Block</systemProperty>
  177. <systemProperty>archiva.repositorySessionFactory.id=jcr</systemProperty>
  178. <systemProperty>archiva.cassandra.configuration.file=%ARCHIVA_BASE%/conf/archiva-cassandra.properties</systemProperty>
  179. </systemProperties>
  180. <extraArguments>
  181. <extraArgument>-XX:MaxPermSize=128m</extraArgument>
  182. </extraArguments>
  183. <initialMemorySize>512</initialMemorySize>
  184. <maxMemorySize>512</maxMemorySize>
  185. </jvmSettings>
  186. </daemon>
  187. </daemons>
  188. <repoPath>lib</repoPath>
  189. <repositoryLayout>flat</repositoryLayout>
  190. <assembleDirectory>target/generated-resources/appassembler/jsw/archiva</assembleDirectory>
  191. </configuration>
  192. <executions>
  193. <execution>
  194. <goals>
  195. <goal>generate-daemons</goal>
  196. <goal>create-repository</goal>
  197. </goals>
  198. <phase>prepare-package</phase>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. <plugin>
  203. <groupId>org.apache.maven.plugins</groupId>
  204. <artifactId>maven-antrun-plugin</artifactId>
  205. <executions>
  206. <execution>
  207. <id>config</id>
  208. <phase>process-resources</phase>
  209. <configuration>
  210. <tasks>
  211. <copy todir="target/generated-resources/appassembler/jsw/archiva/conf">
  212. <fileset dir="src/main/conf" />
  213. </copy>
  214. <mkdir dir="target/generated-resources/appassembler/jsw/archiva/logs" />
  215. <mkdir dir="target/generated-resources/appassembler/jsw/archiva/temp" />
  216. </tasks>
  217. </configuration>
  218. <goals>
  219. <goal>run</goal>
  220. </goals>
  221. </execution>
  222. <execution>
  223. <id>fix-appassembler-bug</id>
  224. <phase>prepare-package</phase>
  225. <configuration>
  226. <tasks>
  227. <replaceregexp file="target/generated-resources/appassembler/jsw/archiva/conf/wrapper.conf" match="set.ARCHIVA_BASE" replace="set.default.ARCHIVA_BASE" />
  228. <patch failonerror="true" originalfile="target/generated-resources/appassembler/jsw/archiva/bin/archiva" patchfile="src/main/patches/archiva.patch" />
  229. </tasks>
  230. </configuration>
  231. <goals>
  232. <goal>run</goal>
  233. </goals>
  234. </execution>
  235. </executions>
  236. </plugin>
  237. <plugin>
  238. <artifactId>maven-remote-resources-plugin</artifactId>
  239. <configuration>
  240. <supplementalModels>
  241. <supplementalModel>notice-supplements.xml</supplementalModel>
  242. </supplementalModels>
  243. </configuration>
  244. </plugin>
  245. <plugin>
  246. <groupId>org.apache.maven.plugins</groupId>
  247. <artifactId>maven-assembly-plugin</artifactId>
  248. <executions>
  249. <execution>
  250. <phase>package</phase>
  251. <goals>
  252. <goal>single</goal>
  253. </goals>
  254. </execution>
  255. </executions>
  256. <configuration>
  257. <descriptor>src/main/assembly/bin.xml</descriptor>
  258. <finalName>apache-archiva-${project.version}</finalName>
  259. </configuration>
  260. </plugin>
  261. </plugins>
  262. <pluginManagement>
  263. <plugins>
  264. <plugin>
  265. <groupId>org.apache.rat</groupId>
  266. <artifactId>apache-rat-plugin</artifactId>
  267. <configuration>
  268. <excludes>
  269. <exclude>src/main/conf/**</exclude>
  270. <exclude>src/main/patches/*.patch</exclude>
  271. </excludes>
  272. </configuration>
  273. </plugin>
  274. </plugins>
  275. </pluginManagement>
  276. </build>
  277. </project>