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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <?xml version="1.0" encoding="UTF-8"?>
  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/xsd/maven-4.0.0.xsd">
  21. <modelVersion>4.0.0</modelVersion>
  22. <parent>
  23. <artifactId>plugins</artifactId>
  24. <groupId>org.apache.archiva</groupId>
  25. <version>3.0.0-SNAPSHOT</version>
  26. </parent>
  27. <artifactId>metadata-store-cassandra</artifactId>
  28. <name>Archiva Core Plugins :: Cassandra Storage for Metadata</name>
  29. <properties>
  30. <site.staging.base>${project.parent.parent.basedir}</site.staging.base>
  31. <cassandraVersion>3.11.2</cassandraVersion>
  32. </properties>
  33. <dependencies>
  34. <dependency>
  35. <groupId>commons-lang</groupId>
  36. <artifactId>commons-lang</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.apache.archiva</groupId>
  40. <artifactId>metadata-repository-api</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.apache.archiva</groupId>
  44. <artifactId>metadata-repository-api</artifactId>
  45. <classifier>tests</classifier>
  46. <scope>test</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.archiva</groupId>
  50. <artifactId>archiva-test-utils</artifactId>
  51. <version>${project.version}</version>
  52. <scope>test</scope>
  53. <exclusions>
  54. <exclusion>
  55. <groupId>org.slf4j</groupId>
  56. <artifactId>slf4j-simple</artifactId>
  57. </exclusion>
  58. </exclusions>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.modelmapper</groupId>
  62. <artifactId>modelmapper</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.apache.cassandra</groupId>
  66. <artifactId>cassandra-all</artifactId>
  67. <version>${cassandraVersion}</version>
  68. <exclusions>
  69. <exclusion>
  70. <groupId>log4j</groupId>
  71. <artifactId>log4j</artifactId>
  72. </exclusion>
  73. <exclusion>
  74. <groupId>org.slf4j</groupId>
  75. <artifactId>slf4j-log4j12</artifactId>
  76. </exclusion>
  77. <exclusion>
  78. <groupId>org.slf4j</groupId>
  79. <artifactId>jcl-over-slf4j</artifactId>
  80. </exclusion>
  81. <exclusion>
  82. <groupId>ch.qos.logback</groupId>
  83. <artifactId>logback-core</artifactId>
  84. </exclusion>
  85. <exclusion>
  86. <groupId>org.mortbay.jetty</groupId>
  87. <artifactId>jetty</artifactId>
  88. </exclusion>
  89. <exclusion>
  90. <groupId>javax.servlet</groupId>
  91. <artifactId>servlet-api</artifactId>
  92. </exclusion>
  93. <exclusion>
  94. <groupId>org.slf4j</groupId>
  95. <artifactId>log4j-over-slf4j</artifactId>
  96. </exclusion>
  97. <exclusion>
  98. <groupId>ch.qos.logback</groupId>
  99. <artifactId>logback-classic</artifactId>
  100. </exclusion>
  101. </exclusions>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.hectorclient</groupId>
  105. <artifactId>hector-core</artifactId>
  106. <version>1.1-4</version>
  107. <exclusions>
  108. <exclusion>
  109. <groupId>javax.servlet</groupId>
  110. <artifactId>servlet-api</artifactId>
  111. </exclusion>
  112. <exclusion>
  113. <groupId>com.ecyrd.speed4j</groupId>
  114. <artifactId>speed4j</artifactId>
  115. </exclusion>
  116. <exclusion>
  117. <groupId>com.yammer.metrics</groupId>
  118. <artifactId>metrics-core</artifactId>
  119. </exclusion>
  120. <exclusion>
  121. <groupId>org.slf4j</groupId>
  122. <artifactId>log4j-over-slf4j</artifactId>
  123. </exclusion>
  124. </exclusions>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.apache.cassandra</groupId>
  128. <artifactId>cassandra-thrift</artifactId>
  129. <version>3.11.2</version>
  130. <exclusions>
  131. <exclusion>
  132. <groupId>javax.servlet</groupId>
  133. <artifactId>servlet-api</artifactId>
  134. </exclusion>
  135. </exclusions>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.springframework</groupId>
  139. <artifactId>spring-test</artifactId>
  140. <scope>test</scope>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.apache.archiva</groupId>
  144. <artifactId>generic-metadata-support</artifactId>
  145. <scope>test</scope>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.assertj</groupId>
  149. <artifactId>assertj-core</artifactId>
  150. <scope>test</scope>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.apache.logging.log4j</groupId>
  154. <artifactId>log4j-slf4j-impl</artifactId>
  155. <scope>test</scope>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.apache.logging.log4j</groupId>
  159. <artifactId>log4j-1.2-api</artifactId>
  160. <version>${log4j.version}</version>
  161. <scope>test</scope>
  162. </dependency>
  163. <dependency>
  164. <groupId>com.lmax</groupId>
  165. <artifactId>disruptor</artifactId>
  166. <scope>test</scope>
  167. </dependency>
  168. <dependency>
  169. <groupId>xerces</groupId>
  170. <artifactId>xercesImpl</artifactId>
  171. <scope>test</scope>
  172. </dependency>
  173. </dependencies>
  174. <build>
  175. <testResources>
  176. <testResource>
  177. <directory>src/test/filtered-resources</directory>
  178. <filtering>true</filtering>
  179. </testResource>
  180. </testResources>
  181. <plugins>
  182. <plugin>
  183. <groupId>org.codehaus.mojo</groupId>
  184. <artifactId>build-helper-maven-plugin</artifactId>
  185. <executions>
  186. <execution>
  187. <id>reserve-ports</id>
  188. <phase>process-test-resources</phase>
  189. <goals>
  190. <goal>reserve-network-port</goal>
  191. </goals>
  192. <configuration>
  193. <portNames>
  194. <portName>cassandraPort</portName>
  195. <portName>cassandra.storagePort</portName>
  196. <portName>cassandra.stopPort</portName>
  197. <portName>cassandra.jmxPort</portName>
  198. </portNames>
  199. </configuration>
  200. </execution>
  201. </executions>
  202. </plugin>
  203. <plugin>
  204. <groupId>org.codehaus.mojo</groupId>
  205. <artifactId>cassandra-maven-plugin</artifactId>
  206. <version>2.0.0-1</version>
  207. <executions>
  208. <execution>
  209. <id>start-cassandra</id>
  210. <phase>process-test-classes</phase>
  211. <goals>
  212. <goal>start</goal>
  213. </goals>
  214. <configuration>
  215. <rpcPort>${cassandraPort}</rpcPort>
  216. <storagePort>${cassandra.storagePort}</storagePort>
  217. <stopPort>${cassandra.stopPort}</stopPort>
  218. <jmxPort>${cassandra.jmxPort}</jmxPort>
  219. <addMainClasspath>false</addMainClasspath>
  220. <addTestClasspath>false</addTestClasspath>
  221. <startWaitSeconds>500</startWaitSeconds>
  222. </configuration>
  223. </execution>
  224. <execution>
  225. <id>stop-cassandra</id>
  226. <phase>test</phase>
  227. <goals>
  228. <goal>stop</goal>
  229. </goals>
  230. </execution>
  231. </executions>
  232. <dependencies>
  233. <dependency>
  234. <groupId>org.slf4j</groupId>
  235. <artifactId>slf4j-simple</artifactId>
  236. <version>${slf4j.version}</version>
  237. </dependency>
  238. </dependencies>
  239. </plugin>
  240. </plugins>
  241. <pluginManagement>
  242. <plugins>
  243. <plugin>
  244. <groupId>org.apache.maven.plugins</groupId>
  245. <artifactId>maven-surefire-plugin</artifactId>
  246. <configuration>
  247. <systemPropertyVariables>
  248. <cassandra.port>${cassandraPort}</cassandra.port>
  249. <archiva.repositorySessionFactory.id>cassandra</archiva.repositorySessionFactory.id>
  250. <appserver.base>${project.build.directory}/appserver-base</appserver.base>
  251. </systemPropertyVariables>
  252. </configuration>
  253. </plugin>
  254. </plugins>
  255. </pluginManagement>
  256. </build>
  257. </project>