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.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <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">
  2. <modelVersion>4.0.0</modelVersion>
  3. <parent>
  4. <groupId>org.apache.archiva</groupId>
  5. <artifactId>archiva</artifactId>
  6. <version>1.2-SNAPSHOT</version>
  7. </parent>
  8. <artifactId>archiva-jetty</artifactId>
  9. <packaging>pom</packaging>
  10. <!-- This is filtered into the scripts, so should be set to Apache Archiva -->
  11. <name>Apache Archiva</name>
  12. <dependencies>
  13. <dependency>
  14. <groupId>org.mortbay.jetty</groupId>
  15. <artifactId>jetty</artifactId>
  16. </dependency>
  17. <dependency>
  18. <groupId>org.mortbay.jetty</groupId>
  19. <artifactId>start</artifactId>
  20. <version>${jetty.version}</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.apache.archiva</groupId>
  24. <artifactId>archiva-webapp</artifactId>
  25. <type>war</type>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.apache.archiva</groupId>
  29. <artifactId>archiva-docs</artifactId>
  30. <type>zip</type>
  31. <classifier>docs</classifier>
  32. </dependency>
  33. <!-- Runtime dependencies that need to be included in the generated binaries -->
  34. <dependency>
  35. <groupId>org.mortbay.jetty</groupId>
  36. <artifactId>jetty-naming</artifactId>
  37. <version>${jetty.version}</version>
  38. <scope>runtime</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.mortbay.jetty</groupId>
  42. <artifactId>servlet-api-2.5</artifactId>
  43. <version>${jetty.version}</version>
  44. <scope>runtime</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.mortbay.jetty</groupId>
  48. <artifactId>jsp-api-2.0</artifactId>
  49. <version>${jetty.version}</version>
  50. <scope>runtime</scope>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.mortbay.jetty</groupId>
  54. <artifactId>jetty-plus</artifactId>
  55. <version>${jetty.version}</version>
  56. <scope>runtime</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.apache.derby</groupId>
  60. <artifactId>derby</artifactId>
  61. <version>10.1.3.1</version>
  62. <scope>runtime</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>javax.mail</groupId>
  66. <artifactId>mail</artifactId>
  67. <version>1.4</version>
  68. <scope>runtime</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>ant</groupId>
  72. <artifactId>ant</artifactId>
  73. <version>1.6.5</version>
  74. <scope>runtime</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>commons-el</groupId>
  78. <artifactId>commons-el</artifactId>
  79. <version>1.0</version>
  80. <scope>runtime</scope>
  81. <exclusions>
  82. <exclusion>
  83. <groupId>commons-logging</groupId>
  84. <artifactId>commons-logging</artifactId>
  85. </exclusion>
  86. </exclusions>
  87. </dependency>
  88. <dependency>
  89. <groupId>tomcat</groupId>
  90. <artifactId>jasper-compiler</artifactId>
  91. <version>5.5.15</version>
  92. <scope>runtime</scope>
  93. <exclusions>
  94. <exclusion>
  95. <groupId>javax.servlet</groupId>
  96. <artifactId>jsp-api</artifactId>
  97. </exclusion>
  98. </exclusions>
  99. </dependency>
  100. <dependency>
  101. <groupId>tomcat</groupId>
  102. <artifactId>jasper-runtime</artifactId>
  103. <version>5.5.15</version>
  104. <scope>runtime</scope>
  105. <exclusions>
  106. <exclusion>
  107. <groupId>javax.servlet</groupId>
  108. <artifactId>servlet-api</artifactId>
  109. </exclusion>
  110. </exclusions>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.slf4j</groupId>
  114. <artifactId>jcl104-over-slf4j</artifactId>
  115. <scope>runtime</scope>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.slf4j</groupId>
  119. <artifactId>slf4j-simple</artifactId>
  120. <scope>runtime</scope>
  121. </dependency>
  122. <dependency>
  123. <groupId>tomcat</groupId>
  124. <artifactId>jasper-compiler-jdt</artifactId>
  125. <version>5.5.15</version>
  126. <scope>runtime</scope>
  127. <exclusions>
  128. <exclusion>
  129. <groupId>org.eclipse.jdt</groupId>
  130. <artifactId>core</artifactId>
  131. </exclusion>
  132. </exclusions>
  133. </dependency>
  134. <dependency>
  135. <groupId>commons-dbcp</groupId>
  136. <artifactId>commons-dbcp</artifactId>
  137. <version>1.2.1</version>
  138. </dependency>
  139. </dependencies>
  140. <build>
  141. <plugins>
  142. <plugin>
  143. <groupId>org.codehaus.mojo</groupId>
  144. <artifactId>appassembler-maven-plugin</artifactId>
  145. <version>1.0-beta-2</version>
  146. <configuration>
  147. <daemons>
  148. <daemon>
  149. <id>archiva</id>
  150. <mainClass>org.mortbay.start.Main</mainClass>
  151. <commandLineArguments>
  152. <commandLineArgument>conf/jetty.xml</commandLineArgument>
  153. <commandLineArgument>conf/jetty-logging.xml</commandLineArgument>
  154. </commandLineArguments>
  155. <platforms>
  156. <platform>jsw</platform>
  157. </platforms>
  158. <generatorConfigurations>
  159. <generatorConfiguration>
  160. <generator>jsw</generator>
  161. <configuration>
  162. <property>
  163. <name>wrapper.console.loglevel</name>
  164. <value>INFO</value>
  165. </property>
  166. <property>
  167. <name>wrapper.java.additional.1.stripquotes</name>
  168. <value>TRUE</value>
  169. </property>
  170. <property>
  171. <name>set.default.REPO_DIR</name>
  172. <value>lib</value>
  173. </property>
  174. <property>
  175. <name>wrapper.logfile</name>
  176. <value>%ARCHIVA_BASE%/logs/wrapper.log</value>
  177. </property>
  178. <property>
  179. <name>wrapper.app.parameter.2</name>
  180. <value>%ARCHIVA_BASE%/conf/jetty.xml</value>
  181. </property>
  182. <property>
  183. <name>wrapper.app.parameter.3</name>
  184. <value>%ARCHIVA_BASE%/conf/jetty-logging.xml</value>
  185. </property>
  186. <property>
  187. <name>app.base.envvar</name>
  188. <value>ARCHIVA_BASE</value>
  189. </property>
  190. <property>
  191. <name>wrapper.on_exit.default</name>
  192. <value>RESTART</value>
  193. </property>
  194. <property>
  195. <name>wrapper.on_exit.0</name>
  196. <value>SHUTDOWN</value>
  197. </property>
  198. <property>
  199. <name>wrapper.restart.delay</name>
  200. <value>30</value>
  201. </property>
  202. </configuration>
  203. <includes>
  204. <include>linux-x86-32</include>
  205. <include>linux-x86-64</include>
  206. <include>macosx-x86-universal-32</include>
  207. <include>solaris-x86-32</include>
  208. <include>solaris-sparc-32</include>
  209. <include>solaris-sparc-64</include>
  210. <include>windows-x86-32</include>
  211. </includes>
  212. </generatorConfiguration>
  213. </generatorConfigurations>
  214. <jvmSettings>
  215. <systemProperties>
  216. <systemProperty>appserver.home=.</systemProperty>
  217. <systemProperty>appserver.base=%ARCHIVA_BASE%</systemProperty>
  218. <!-- can't set this at present, it moves the databases if ARCHIVA_BASE is not set
  219. <systemProperty>derby.system.home=%ARCHIVA_BASE%/logs</systemProperty>
  220. -->
  221. <systemProperty>jetty.logs=%ARCHIVA_BASE%/logs</systemProperty>
  222. </systemProperties>
  223. </jvmSettings>
  224. </daemon>
  225. </daemons>
  226. <repoPath>lib</repoPath>
  227. <repositoryLayout>flat</repositoryLayout>
  228. <assembleDirectory>target/generated-resources/appassembler/jsw/archiva</assembleDirectory>
  229. </configuration>
  230. <executions>
  231. <execution>
  232. <goals>
  233. <goal>generate-daemons</goal>
  234. <goal>create-repository</goal>
  235. </goals>
  236. </execution>
  237. </executions>
  238. </plugin>
  239. <plugin>
  240. <groupId>org.apache.maven.plugins</groupId>
  241. <artifactId>maven-assembly-plugin</artifactId>
  242. <version>2.1</version>
  243. <executions>
  244. <execution>
  245. <phase>package</phase>
  246. <goals>
  247. <goal>single</goal>
  248. </goals>
  249. </execution>
  250. </executions>
  251. <configuration>
  252. <descriptor>src/main/assembly/bin.xml</descriptor>
  253. <finalName>apache-archiva-${version}</finalName>
  254. </configuration>
  255. </plugin>
  256. <plugin>
  257. <artifactId>maven-antrun-plugin</artifactId>
  258. <version>1.1</version>
  259. <executions>
  260. <execution>
  261. <id>config</id>
  262. <phase>process-resources</phase>
  263. <configuration>
  264. <tasks>
  265. <copy todir="target/generated-resources/appassembler/jsw/archiva/conf">
  266. <fileset dir="src/main/conf" />
  267. </copy>
  268. <mkdir dir="target/generated-resources/appassembler/jsw/archiva/logs" />
  269. </tasks>
  270. </configuration>
  271. <goals>
  272. <goal>run</goal>
  273. </goals>
  274. </execution>
  275. </executions>
  276. </plugin>
  277. <plugin>
  278. <artifactId>maven-remote-resources-plugin</artifactId>
  279. <configuration>
  280. <supplementalModels>
  281. <supplementalModel>notice-supplements.xml</supplementalModel>
  282. </supplementalModels>
  283. </configuration>
  284. </plugin>
  285. </plugins>
  286. </build>
  287. </project>