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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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-web</artifactId>
  25. <version>3.0.0-SNAPSHOT</version>
  26. </parent>
  27. <artifactId>archiva-webdav</artifactId>
  28. <name>Archiva Web :: WebDAV</name>
  29. <properties>
  30. <webdav.forkMode>once</webdav.forkMode>
  31. <!--
  32. <redbackTestJdbcUrl>jdbc:derby:memory:users-test;create=true</redbackTestJdbcUrl>
  33. <redbackTestJdbcDriver>org.apache.derby.jdbc.EmbeddedDriver</redbackTestJdbcDriver>
  34. -->
  35. <redbackTestJdbcUrl>jdbc:hsqldb:mem:redback-test</redbackTestJdbcUrl>
  36. <redbackTestJdbcDriver>org.hsqldb.jdbcDriver</redbackTestJdbcDriver>
  37. <webdav.argLine>-Xmx512m -Xms512m -client</webdav.argLine>
  38. <site.staging.base>${project.parent.parent.basedir}</site.staging.base>
  39. </properties>
  40. <dependencies>
  41. <!-- TODO: remove this hardcoding through a better event mechanism -->
  42. <dependency>
  43. <groupId>org.apache.archiva</groupId>
  44. <artifactId>audit</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.apache.archiva</groupId>
  48. <artifactId>archiva-repository-scanner</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.apache.archiva</groupId>
  52. <artifactId>archiva-configuration</artifactId>
  53. <!-- should be runtime but currently not possible due ConfigurationListener
  54. <scope>runtime</scope>
  55. -->
  56. </dependency>
  57. <dependency>
  58. <groupId>org.apache.archiva</groupId>
  59. <artifactId>archiva-repository-admin-api</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.apache.archiva</groupId>
  63. <artifactId>archiva-repository-layer</artifactId>
  64. <exclusions>
  65. <exclusion>
  66. <groupId>log4j</groupId>
  67. <artifactId>log4j</artifactId>
  68. </exclusion>
  69. </exclusions>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.apache.archiva</groupId>
  73. <artifactId>archiva-proxy</artifactId>
  74. <exclusions>
  75. <exclusion>
  76. <groupId>commons-logging</groupId>
  77. <artifactId>commons-logging-api</artifactId>
  78. </exclusion>
  79. </exclusions>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.apache.archiva</groupId>
  83. <artifactId>archiva-security</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.apache.archiva</groupId>
  87. <artifactId>archiva-maven2-indexer</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.apache.archiva</groupId>
  91. <artifactId>archiva-filelock</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>joda-time</groupId>
  95. <artifactId>joda-time</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.springframework</groupId>
  99. <artifactId>spring-web</artifactId>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.apache.jackrabbit</groupId>
  103. <artifactId>jackrabbit-webdav</artifactId>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.apache.jackrabbit</groupId>
  107. <artifactId>jackrabbit-jcr-commons</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>commons-io</groupId>
  111. <artifactId>commons-io</artifactId>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.slf4j</groupId>
  115. <artifactId>slf4j-api</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>javax.servlet</groupId>
  119. <artifactId>javax.servlet-api</artifactId>
  120. <scope>provided</scope>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.apache.maven</groupId>
  124. <artifactId>maven-model</artifactId>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.apache.archiva.redback</groupId>
  128. <artifactId>redback-common-integrations</artifactId>
  129. <exclusions>
  130. <exclusion>
  131. <groupId>stax</groupId>
  132. <artifactId>stax-api</artifactId>
  133. </exclusion>
  134. </exclusions>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.apache.archiva.redback</groupId>
  138. <artifactId>redback-keys-memory</artifactId>
  139. <scope>test</scope>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.apache.archiva.redback</groupId>
  143. <artifactId>redback-rbac-memory</artifactId>
  144. <scope>test</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.apache.archiva.redback</groupId>
  148. <artifactId>redback-keys-jpa</artifactId>
  149. <scope>test</scope>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.apache.archiva.redback</groupId>
  153. <artifactId>redback-users-memory</artifactId>
  154. <scope>test</scope>
  155. </dependency>
  156. <dependency>
  157. <groupId>xmlunit</groupId>
  158. <artifactId>xmlunit</artifactId>
  159. <scope>test</scope>
  160. </dependency>
  161. <dependency>
  162. <groupId>javax.mail</groupId>
  163. <artifactId>mail</artifactId>
  164. <scope>provided</scope>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.eclipse.jetty</groupId>
  168. <artifactId>jetty-server</artifactId>
  169. <scope>test</scope>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.eclipse.jetty</groupId>
  173. <artifactId>jetty-plus</artifactId>
  174. <scope>test</scope>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.apache.logging.log4j</groupId>
  178. <artifactId>log4j-core</artifactId>
  179. <scope>test</scope>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.apache.logging.log4j</groupId>
  183. <artifactId>log4j-slf4j-impl</artifactId>
  184. <scope>test</scope>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.hsqldb</groupId>
  188. <artifactId>hsqldb</artifactId>
  189. <scope>test</scope>
  190. </dependency>
  191. <dependency>
  192. <groupId>net.sourceforge.htmlunit</groupId>
  193. <artifactId>htmlunit</artifactId>
  194. <version>${htmlUnitVersion}</version>
  195. <scope>test</scope>
  196. <exclusions>
  197. <exclusion>
  198. <groupId>org.eclipse.jetty</groupId>
  199. <artifactId>jetty-websocket</artifactId>
  200. </exclusion>
  201. </exclusions>
  202. </dependency>
  203. <dependency>
  204. <groupId>xerces</groupId>
  205. <artifactId>xercesImpl</artifactId>
  206. <scope>test</scope>
  207. </dependency>
  208. <dependency>
  209. <groupId>org.apache.maven.wagon</groupId>
  210. <artifactId>wagon-http</artifactId>
  211. <scope>test</scope>
  212. <exclusions>
  213. <!-- This triggers httpunit to use it instead, but it doesn't work -->
  214. <exclusion>
  215. <groupId>nekohtml</groupId>
  216. <artifactId>nekohtml</artifactId>
  217. </exclusion>
  218. <exclusion>
  219. <groupId>nekohtml</groupId>
  220. <artifactId>xercesMinimal</artifactId>
  221. </exclusion>
  222. </exclusions>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.apache.maven.wagon</groupId>
  226. <artifactId>wagon-http-lightweight</artifactId>
  227. <scope>test</scope>
  228. </dependency>
  229. <dependency>
  230. <groupId>org.apache.archiva</groupId>
  231. <artifactId>archiva-test-utils</artifactId>
  232. <version>${project.version}</version>
  233. <scope>test</scope>
  234. </dependency>
  235. <dependency>
  236. <groupId>org.apache.archiva</groupId>
  237. <artifactId>archiva-repository-admin-default</artifactId>
  238. <scope>test</scope>
  239. <exclusions>
  240. <exclusion>
  241. <groupId>log4j</groupId>
  242. <artifactId>log4j</artifactId>
  243. </exclusion>
  244. </exclusions>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.apache.archiva</groupId>
  248. <artifactId>archiva-mock</artifactId>
  249. <scope>test</scope>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.apache.archiva.redback</groupId>
  253. <artifactId>redback-common-test-resources</artifactId>
  254. <scope>test</scope>
  255. </dependency>
  256. <dependency>
  257. <groupId>org.assertj</groupId>
  258. <artifactId>assertj-core</artifactId>
  259. <scope>test</scope>
  260. </dependency>
  261. <!-- START Needed for JDK >= 9 -->
  262. <dependency>
  263. <groupId>javax.annotation</groupId>
  264. <artifactId>javax.annotation-api</artifactId>
  265. <scope>test</scope>
  266. </dependency>
  267. <dependency>
  268. <groupId>javax.xml.bind</groupId>
  269. <artifactId>jaxb-api</artifactId>
  270. <scope>test</scope>
  271. </dependency>
  272. <!-- END Needed for JDK >= 9 -->
  273. <dependency>
  274. <groupId>org.ow2.asm</groupId>
  275. <artifactId>asm</artifactId>
  276. <scope>test</scope>
  277. </dependency>
  278. </dependencies>
  279. <build>
  280. <plugins>
  281. <plugin>
  282. <groupId>org.apache.maven.plugins</groupId>
  283. <artifactId>maven-surefire-plugin</artifactId>
  284. <configuration>
  285. <forkCount>2</forkCount>
  286. <reuseForks>false</reuseForks>
  287. <!--
  288. The property jdk.net.URLClassPath.disableClassPathURLCheck is a workaround for a regression
  289. with surefire and OpenJDK 8 181b13 on Debian/Ubuntu,
  290. @see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911925
  291. -->
  292. <argLine>${webdav.argLine} -Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>
  293. <workingDirectory>${project.build.directory}/WDIR-${surefire.forkNumber}</workingDirectory>
  294. <environmentVariables>
  295. <ARCHIVA_USER_CONFIG_FILE>${java.io.tmpdir}/archiva-webdav-${surefire.forkNumber}.xml</ARCHIVA_USER_CONFIG_FILE>
  296. </environmentVariables>
  297. <systemPropertyVariables>
  298. <mvn.project.base.dir>${project.basedir}</mvn.project.base.dir>
  299. <appserver.base>${project.build.directory}/appserver-base-${surefire.forkNumber}</appserver.base>
  300. <plexus.home>${project.build.directory}/appserver-base-${surefire.forkNumber}</plexus.home>
  301. <derby.system.home>${project.build.directory}/appserver-base-${surefire.forkNumber}</derby.system.home>
  302. <test.resources.path>${project.build.testOutputDirectory}</test.resources.path>
  303. <archiva.user.configFileName>${project.build.directory}/appserver-base-${surefire.forkNumber}/conf/archiva.xml</archiva.user.configFileName>
  304. <redback.jdbc.url>${redbackTestJdbcUrl}</redback.jdbc.url>
  305. <redback.jdbc.driver.name>${redbackTestJdbcDriver}</redback.jdbc.driver.name>
  306. <archiva.repositorySessionFactory.id>mock</archiva.repositorySessionFactory.id>
  307. <openjpa.Log>${openjpa.Log}</openjpa.Log>
  308. <org.apache.jackrabbit.core.state.validatehierarchy>true</org.apache.jackrabbit.core.state.validatehierarchy>
  309. </systemPropertyVariables>
  310. </configuration>
  311. </plugin>
  312. </plugins>
  313. <pluginManagement>
  314. <plugins>
  315. <plugin>
  316. <groupId>org.apache.rat</groupId>
  317. <artifactId>apache-rat-plugin</artifactId>
  318. <configuration>
  319. <excludes>
  320. <exclude>src/main/resources/org/apache/archiva/webdav/util/mime.types</exclude>
  321. <exclude>src/test/resources/archiva-mime-types.txt</exclude>
  322. <exclude>src/test/resources/artifact.jar.sha1</exclude>
  323. <exclude>src/test/resources/maven-metadata.xml</exclude>
  324. <exclude>nbactions.xml</exclude>
  325. </excludes>
  326. </configuration>
  327. </plugin>
  328. </plugins>
  329. </pluginManagement>
  330. </build>
  331. </project>