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

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