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

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