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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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>2.2.11-SNAPSHOT</version>
  26. </parent>
  27. <artifactId>metadata-store-cassandra</artifactId>
  28. <packaging>bundle</packaging>
  29. <name>Archiva Core Plugins :: Cassandra Storage for Metadata</name>
  30. <properties>
  31. <cassandraVersion>2.0.9</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.mortbay.jetty</groupId>
  79. <artifactId>jetty</artifactId>
  80. </exclusion>
  81. <exclusion>
  82. <groupId>javax.servlet</groupId>
  83. <artifactId>servlet-api</artifactId>
  84. </exclusion>
  85. </exclusions>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.hectorclient</groupId>
  89. <artifactId>hector-core</artifactId>
  90. <version>1.1-4</version>
  91. <exclusions>
  92. <exclusion>
  93. <groupId>javax.servlet</groupId>
  94. <artifactId>servlet-api</artifactId>
  95. </exclusion>
  96. <exclusion>
  97. <groupId>com.ecyrd.speed4j</groupId>
  98. <artifactId>speed4j</artifactId>
  99. </exclusion>
  100. <exclusion>
  101. <groupId>com.yammer.metrics</groupId>
  102. <artifactId>metrics-core</artifactId>
  103. </exclusion>
  104. </exclusions>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.apache.cassandra</groupId>
  108. <artifactId>cassandra-thrift</artifactId>
  109. <version>1.2.15</version>
  110. <exclusions>
  111. <exclusion>
  112. <groupId>javax.servlet</groupId>
  113. <artifactId>servlet-api</artifactId>
  114. </exclusion>
  115. </exclusions>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.springframework</groupId>
  119. <artifactId>spring-test</artifactId>
  120. <scope>test</scope>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.apache.archiva</groupId>
  124. <artifactId>generic-metadata-support</artifactId>
  125. <scope>test</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.assertj</groupId>
  129. <artifactId>assertj-core</artifactId>
  130. <scope>test</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.apache.logging.log4j</groupId>
  134. <artifactId>log4j-slf4j-impl</artifactId>
  135. <scope>test</scope>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.apache.logging.log4j</groupId>
  139. <artifactId>log4j-1.2-api</artifactId>
  140. <version>${log4j.version}</version>
  141. <scope>test</scope>
  142. </dependency>
  143. <dependency>
  144. <groupId>com.lmax</groupId>
  145. <artifactId>disruptor</artifactId>
  146. <scope>test</scope>
  147. </dependency>
  148. </dependencies>
  149. <build>
  150. <testResources>
  151. <testResource>
  152. <directory>src/test/filtered-resources</directory>
  153. <filtering>true</filtering>
  154. </testResource>
  155. </testResources>
  156. <plugins>
  157. <plugin>
  158. <groupId>org.apache.felix</groupId>
  159. <artifactId>maven-bundle-plugin</artifactId>
  160. <configuration>
  161. <instructions>
  162. <Bundle-SymbolicName>org.apache.archiva.metadata.repository.cassandra</Bundle-SymbolicName>
  163. <Bundle-Version>${project.version}</Bundle-Version>
  164. <Export-Package>
  165. org.apache.archiva.metadata.repository.cassandra;version=${project.version};-split-package:=merge-first
  166. </Export-Package>
  167. <Import-Package>
  168. javax.annotation,
  169. javax.inject,
  170. javax.persistence,
  171. com.google.common.base,
  172. com.google.common.collect,
  173. com.netflix.astyanax,
  174. com.netflix.astyanax.connectionpool,
  175. com.netflix.astyanax.connectionpool.exceptions,
  176. com.netflix.astyanax.connectionpool.impl,
  177. com.netflix.astyanax.entitystore,
  178. com.netflix.astyanax.impl,
  179. com.netflix.astyanax.ddl,
  180. com.netflix.astyanax.thrift,
  181. net.sf.beanlib.provider.replicator,
  182. org.apache.archiva.metadata.model;version=${project.version},
  183. org.apache.archiva.metadata.repository;version=${project.version},
  184. org.apache.archiva.configuration,
  185. org.apache.commons.lang;version="[2.4,3)",
  186. org.slf4j;resolution:=optional,
  187. org.springframework.context,
  188. org.springframework.stereotype,
  189. com.netflix.astyanax.serializers,
  190. org.apache.commons.codec.binary,
  191. org.apache.commons.io
  192. </Import-Package>
  193. </instructions>
  194. </configuration>
  195. </plugin>
  196. <plugin>
  197. <groupId>org.codehaus.mojo</groupId>
  198. <artifactId>build-helper-maven-plugin</artifactId>
  199. <executions>
  200. <execution>
  201. <id>reserve-ports</id>
  202. <phase>process-test-resources</phase>
  203. <goals>
  204. <goal>reserve-network-port</goal>
  205. </goals>
  206. <configuration>
  207. <portNames>
  208. <portName>cassandraPort</portName>
  209. <portName>cassandra.storagePort</portName>
  210. <portName>cassandra.stopPort</portName>
  211. <portName>cassandra.jmxPort</portName>
  212. </portNames>
  213. </configuration>
  214. </execution>
  215. </executions>
  216. </plugin>
  217. <plugin>
  218. <groupId>org.codehaus.mojo</groupId>
  219. <artifactId>cassandra-maven-plugin</artifactId>
  220. <version>2.0.0-1</version>
  221. <executions>
  222. <execution>
  223. <id>start-cassandra</id>
  224. <phase>test-compile</phase>
  225. <goals>
  226. <goal>start</goal>
  227. </goals>
  228. <configuration>
  229. <rpcPort>${cassandraPort}</rpcPort>
  230. <storagePort>${cassandra.storagePort}</storagePort>
  231. <stopPort>${cassandra.stopPort}</stopPort>
  232. <jmxPort>${cassandra.jmxPort}</jmxPort>
  233. <addMainClasspath>false</addMainClasspath>
  234. <addTestClasspath>false</addTestClasspath>
  235. </configuration>
  236. </execution>
  237. <execution>
  238. <id>stop-cassandra</id>
  239. <phase>test</phase>
  240. <goals>
  241. <goal>stop</goal>
  242. </goals>
  243. </execution>
  244. </executions>
  245. <dependencies>
  246. <dependency>
  247. <groupId>org.slf4j</groupId>
  248. <artifactId>slf4j-simple</artifactId>
  249. <version>${slf4j.version}</version>
  250. </dependency>
  251. </dependencies>
  252. </plugin>
  253. </plugins>
  254. <pluginManagement>
  255. <plugins>
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-surefire-plugin</artifactId>
  259. <configuration>
  260. <systemPropertyVariables>
  261. <cassandra.port>${cassandraPort}</cassandra.port>
  262. <archiva.repositorySessionFactory.id>cassandra</archiva.repositorySessionFactory.id>
  263. </systemPropertyVariables>
  264. </configuration>
  265. </plugin>
  266. </plugins>
  267. </pluginManagement>
  268. </build>
  269. </project>