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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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.3.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.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.7</version>
  101. <configuration>
  102. <configurationDirectory>conf</configurationDirectory>
  103. <daemons>
  104. <daemon>
  105. <id>archiva</id>
  106. <mainClass>org.mortbay.start.Main</mainClass>
  107. <commandLineArguments>
  108. <commandLineArgument>conf/jetty.xml</commandLineArgument>
  109. </commandLineArguments>
  110. <platforms>
  111. <platform>jsw</platform>
  112. </platforms>
  113. <generatorConfigurations>
  114. <generatorConfiguration>
  115. <generator>jsw</generator>
  116. <configuration>
  117. <property>
  118. <name>wrapper.console.loglevel</name>
  119. <value>INFO</value>
  120. </property>
  121. <property>
  122. <name>wrapper.java.additional.1.stripquotes</name>
  123. <value>TRUE</value>
  124. </property>
  125. <property>
  126. <name>set.default.REPO_DIR</name>
  127. <value>lib</value>
  128. </property>
  129. <property>
  130. <name>wrapper.logfile</name>
  131. <value>%ARCHIVA_BASE%/logs/wrapper.YYYYMMDD.log</value>
  132. </property>
  133. <property>
  134. <name>wrapper.logfile.rollmode</name>
  135. <value>DATE</value>
  136. </property>
  137. <property>
  138. <name>wrapper.app.parameter.2</name>
  139. <value>%ARCHIVA_BASE%/conf/jetty.xml</value>
  140. </property>
  141. <property>
  142. <name>app.base.envvar</name>
  143. <value>ARCHIVA_BASE</value>
  144. </property>
  145. <property>
  146. <name>wrapper.on_exit.default</name>
  147. <value>RESTART</value>
  148. </property>
  149. <property>
  150. <name>wrapper.on_exit.0</name>
  151. <value>SHUTDOWN</value>
  152. </property>
  153. <property>
  154. <name>wrapper.restart.delay</name>
  155. <value>30</value>
  156. </property>
  157. </configuration>
  158. <includes>
  159. <include>linux-x86-32</include>
  160. <include>linux-x86-64</include>
  161. <include>macosx-universal-32</include>
  162. <include>macosx-universal-64</include>
  163. <include>solaris-x86-32</include>
  164. <include>solaris-sparc-32</include>
  165. <include>solaris-sparc-64</include>
  166. <include>windows-x86-32</include>
  167. <include>windows-x86-64</include>
  168. </includes>
  169. </generatorConfiguration>
  170. </generatorConfigurations>
  171. <jvmSettings>
  172. <systemProperties>
  173. <systemProperty>appserver.home=.</systemProperty>
  174. <systemProperty>appserver.base=%ARCHIVA_BASE%</systemProperty>
  175. <!-- can't set this at present, it moves the databases if ARCHIVA_BASE is not set
  176. <systemProperty>derby.system.home=%ARCHIVA_BASE%/logs</systemProperty>
  177. -->
  178. <systemProperty>jetty.logs=%ARCHIVA_BASE%/logs</systemProperty>
  179. </systemProperties>
  180. </jvmSettings>
  181. </daemon>
  182. </daemons>
  183. <repoPath>lib</repoPath>
  184. <repositoryLayout>flat</repositoryLayout>
  185. <assembleDirectory>target/generated-resources/appassembler/jsw/archiva</assembleDirectory>
  186. </configuration>
  187. <executions>
  188. <execution>
  189. <goals>
  190. <goal>generate-daemons</goal>
  191. <goal>create-repository</goal>
  192. </goals>
  193. <phase>generate-resources</phase>
  194. </execution>
  195. </executions>
  196. </plugin>
  197. <plugin>
  198. <groupId>org.apache.maven.plugins</groupId>
  199. <artifactId>maven-assembly-plugin</artifactId>
  200. <executions>
  201. <execution>
  202. <phase>package</phase>
  203. <goals>
  204. <goal>single</goal>
  205. </goals>
  206. </execution>
  207. </executions>
  208. <configuration>
  209. <descriptor>src/main/assembly/bin.xml</descriptor>
  210. <finalName>apache-archiva-${version}</finalName>
  211. </configuration>
  212. </plugin>
  213. <plugin>
  214. <artifactId>maven-antrun-plugin</artifactId>
  215. <version>1.7</version>
  216. <executions>
  217. <execution>
  218. <id>config</id>
  219. <phase>process-resources</phase>
  220. <configuration>
  221. <tasks>
  222. <copy todir="target/generated-resources/appassembler/jsw/archiva/conf">
  223. <fileset dir="src/main/conf" />
  224. </copy>
  225. <mkdir dir="target/generated-resources/appassembler/jsw/archiva/logs" />
  226. </tasks>
  227. </configuration>
  228. <goals>
  229. <goal>run</goal>
  230. </goals>
  231. </execution>
  232. <execution>
  233. <id>fix-appassembler-bug</id>
  234. <phase>process-resources</phase>
  235. <configuration>
  236. <tasks>
  237. <replaceregexp file="target/generated-resources/appassembler/jsw/archiva/conf/wrapper.conf" match="set.ARCHIVA_BASE" replace="set.default.ARCHIVA_BASE" />
  238. </tasks>
  239. </configuration>
  240. <goals>
  241. <goal>run</goal>
  242. </goals>
  243. </execution>
  244. </executions>
  245. </plugin>
  246. <plugin>
  247. <artifactId>maven-remote-resources-plugin</artifactId>
  248. <configuration>
  249. <supplementalModels>
  250. <supplementalModel>notice-supplements.xml</supplementalModel>
  251. </supplementalModels>
  252. </configuration>
  253. </plugin>
  254. <plugin>
  255. <groupId>org.apache.maven.plugins</groupId>
  256. <artifactId>maven-enforcer-plugin</artifactId>
  257. <executions>
  258. <execution>
  259. <id>enforce-beanshell</id>
  260. <goals>
  261. <goal>enforce</goal>
  262. </goals>
  263. <phase>package</phase>
  264. <configuration>
  265. <rules>
  266. <evaluateBeanshell>
  267. <message>wrapper.conf should be correctly set</message>
  268. <condition>
  269. <![CDATA[
  270. java.util.Properties props = new java.util.Properties();
  271. props.load( new java.io.FileInputStream( "${project.build.directory}/generated-resources/appassembler/jsw/archiva/conf/wrapper.conf" ) );
  272. props.getProperty( "set.default.ARCHIVA_BASE" ).equals( "." )
  273. ]]>
  274. </condition>
  275. </evaluateBeanshell>
  276. </rules>
  277. </configuration>
  278. </execution>
  279. </executions>
  280. </plugin>
  281. </plugins>
  282. </build>
  283. </project>