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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  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>metadata-store-provider</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 Metadata :: Store Provider :: Cassandra</name>
  29. <description>Metadata Provider using Cassandra as backend</description>
  30. <properties>
  31. <site.staging.base>${project.parent.parent.basedir}</site.staging.base>
  32. <cassandraVersion>3.11.6</cassandraVersion>
  33. </properties>
  34. <dependencies>
  35. <dependency>
  36. <groupId>org.apache.commons</groupId>
  37. <artifactId>commons-lang3</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.apache.archiva</groupId>
  41. <artifactId>metadata-repository-api</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.apache.archiva</groupId>
  45. <artifactId>metadata-repository-api</artifactId>
  46. <classifier>tests</classifier>
  47. <scope>test</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.apache.archiva</groupId>
  51. <artifactId>archiva-common</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.archiva</groupId>
  55. <artifactId>archiva-configuration</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.apache.archiva</groupId>
  59. <artifactId>archiva-policies</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.apache.archiva</groupId>
  63. <artifactId>archiva-xml-tools</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.archiva</groupId>
  67. <artifactId>archiva-repository-api</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.apache.archiva</groupId>
  71. <artifactId>archiva-checksum</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.apache.archiva</groupId>
  75. <artifactId>metadata-model</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>jakarta.annotation</groupId>
  79. <artifactId>jakarta.annotation-api</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>jakarta.inject</groupId>
  83. <artifactId>jakarta.inject-api</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.springframework</groupId>
  87. <artifactId>spring-beans</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.springframework</groupId>
  91. <artifactId>spring-context</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.modelmapper</groupId>
  95. <artifactId>modelmapper</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.apache.cassandra</groupId>
  99. <artifactId>cassandra-all</artifactId>
  100. <version>${cassandraVersion}</version>
  101. <exclusions>
  102. <exclusion>
  103. <groupId>log4j</groupId>
  104. <artifactId>log4j</artifactId>
  105. </exclusion>
  106. <exclusion>
  107. <groupId>org.slf4j</groupId>
  108. <artifactId>slf4j-log4j12</artifactId>
  109. </exclusion>
  110. <exclusion>
  111. <groupId>org.slf4j</groupId>
  112. <artifactId>jcl-over-slf4j</artifactId>
  113. </exclusion>
  114. <exclusion>
  115. <groupId>ch.qos.logback</groupId>
  116. <artifactId>logback-core</artifactId>
  117. </exclusion>
  118. <exclusion>
  119. <groupId>org.mortbay.jetty</groupId>
  120. <artifactId>jetty</artifactId>
  121. </exclusion>
  122. <exclusion>
  123. <groupId>javax.servlet</groupId>
  124. <artifactId>servlet-api</artifactId>
  125. </exclusion>
  126. <exclusion>
  127. <groupId>org.slf4j</groupId>
  128. <artifactId>log4j-over-slf4j</artifactId>
  129. </exclusion>
  130. <exclusion>
  131. <groupId>ch.qos.logback</groupId>
  132. <artifactId>logback-classic</artifactId>
  133. </exclusion>
  134. <exclusion>
  135. <groupId>org.jboss.logging</groupId>
  136. <artifactId>jboss-logging</artifactId>
  137. </exclusion>
  138. <exclusion>
  139. <groupId>javax.inject</groupId>
  140. <artifactId>javax.inject</artifactId>
  141. </exclusion>
  142. <exclusion>
  143. <groupId>javax.validation</groupId>
  144. <artifactId>validation-api</artifactId>
  145. </exclusion>
  146. </exclusions>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.hectorclient</groupId>
  150. <artifactId>hector-core</artifactId>
  151. <version>1.1-4</version>
  152. <exclusions>
  153. <exclusion>
  154. <groupId>javax.servlet</groupId>
  155. <artifactId>servlet-api</artifactId>
  156. </exclusion>
  157. <exclusion>
  158. <groupId>com.ecyrd.speed4j</groupId>
  159. <artifactId>speed4j</artifactId>
  160. </exclusion>
  161. <exclusion>
  162. <groupId>com.yammer.metrics</groupId>
  163. <artifactId>metrics-core</artifactId>
  164. </exclusion>
  165. <exclusion>
  166. <groupId>org.slf4j</groupId>
  167. <artifactId>log4j-over-slf4j</artifactId>
  168. </exclusion>
  169. </exclusions>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.apache.cassandra</groupId>
  173. <artifactId>cassandra-thrift</artifactId>
  174. <version>${cassandraVersion}</version>
  175. <exclusions>
  176. <exclusion>
  177. <groupId>javax.servlet</groupId>
  178. <artifactId>servlet-api</artifactId>
  179. </exclusion>
  180. <exclusion>
  181. <groupId>org.apache.ant</groupId>
  182. <artifactId>ant</artifactId>
  183. </exclusion>
  184. </exclusions>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.apache.thrift</groupId>
  188. <artifactId>libthrift</artifactId>
  189. <version>0.13.0</version>
  190. <exclusions>
  191. <exclusion>
  192. <groupId>javax.annotation</groupId>
  193. <artifactId>javax.annotation-api</artifactId>
  194. </exclusion>
  195. </exclusions>
  196. </dependency>
  197. <!--
  198. <dependency>
  199. <groupId>org.codehaus.jackson</groupId>
  200. <artifactId>jackson-core-asl</artifactId>
  201. <version>1.9.13</version>
  202. </dependency>
  203. <dependency>
  204. <groupId>org.codehaus.jackson</groupId>
  205. <artifactId>jackson-mapper-asl</artifactId>
  206. <version>1.9.13</version>
  207. </dependency>
  208. -->
  209. <!-- Transitive dependency. Declared here to increase the version. -->
  210. <dependency>
  211. <groupId>io.netty</groupId>
  212. <artifactId>netty-all</artifactId>
  213. <version>${netty.version}</version>
  214. </dependency>
  215. <!-- Is a dependency of cassandra -> hibernate-validator and replaced by new version -->
  216. <dependency>
  217. <groupId>org.jboss.logging</groupId>
  218. <artifactId>jboss-logging</artifactId>
  219. </dependency>
  220. <!-- Dependency of cassandra -> replacing by new version -->
  221. <dependency>
  222. <groupId>org.hibernate</groupId>
  223. <artifactId>hibernate-validator</artifactId>
  224. <version>4.3.2.Final</version>
  225. <exclusions>
  226. <exclusion>
  227. <groupId>javax.validation</groupId>
  228. <artifactId>validation-api</artifactId>
  229. </exclusion>
  230. </exclusions>
  231. </dependency>
  232. <!-- TEST Scope -->
  233. <dependency>
  234. <groupId>org.apache.archiva</groupId>
  235. <artifactId>archiva-test-utils</artifactId>
  236. <version>${project.version}</version>
  237. <scope>test</scope>
  238. <exclusions>
  239. <exclusion>
  240. <groupId>org.slf4j</groupId>
  241. <artifactId>slf4j-simple</artifactId>
  242. </exclusion>
  243. </exclusions>
  244. </dependency>
  245. <dependency>
  246. <groupId>org.easymock</groupId>
  247. <artifactId>easymock</artifactId>
  248. <scope>test</scope>
  249. </dependency>
  250. <dependency>
  251. <groupId>org.springframework</groupId>
  252. <artifactId>spring-test</artifactId>
  253. <scope>test</scope>
  254. </dependency>
  255. <dependency>
  256. <groupId>org.apache.archiva</groupId>
  257. <artifactId>generic-metadata-support</artifactId>
  258. <scope>test</scope>
  259. </dependency>
  260. <dependency>
  261. <groupId>org.assertj</groupId>
  262. <artifactId>assertj-core</artifactId>
  263. <scope>test</scope>
  264. </dependency>
  265. <dependency>
  266. <groupId>org.apache.logging.log4j</groupId>
  267. <artifactId>log4j-slf4j-impl</artifactId>
  268. <scope>test</scope>
  269. </dependency>
  270. <dependency>
  271. <groupId>org.apache.logging.log4j</groupId>
  272. <artifactId>log4j-1.2-api</artifactId>
  273. <version>${log4j.version}</version>
  274. <scope>test</scope>
  275. </dependency>
  276. </dependencies>
  277. <build>
  278. <testResources>
  279. <testResource>
  280. <directory>src/test/filtered-resources</directory>
  281. <filtering>true</filtering>
  282. </testResource>
  283. </testResources>
  284. <plugins>
  285. <plugin>
  286. <groupId>org.codehaus.mojo</groupId>
  287. <artifactId>build-helper-maven-plugin</artifactId>
  288. <executions>
  289. <execution>
  290. <id>reserve-ports</id>
  291. <phase>process-test-resources</phase>
  292. <goals>
  293. <goal>reserve-network-port</goal>
  294. </goals>
  295. <configuration>
  296. <portNames>
  297. <portName>cassandraPort</portName>
  298. <portName>cassandra.storagePort</portName>
  299. <portName>cassandra.stopPort</portName>
  300. <portName>cassandra.jmxPort</portName>
  301. </portNames>
  302. </configuration>
  303. </execution>
  304. </executions>
  305. </plugin>
  306. <plugin>
  307. <groupId>org.codehaus.mojo</groupId>
  308. <artifactId>cassandra-maven-plugin</artifactId>
  309. <version>2.0.0-1</version>
  310. <executions>
  311. <execution>
  312. <id>start-cassandra</id>
  313. <phase>process-test-classes</phase>
  314. <goals>
  315. <goal>start</goal>
  316. </goals>
  317. <configuration>
  318. <rpcPort>${cassandraPort}</rpcPort>
  319. <storagePort>${cassandra.storagePort}</storagePort>
  320. <stopPort>${cassandra.stopPort}</stopPort>
  321. <jmxPort>${cassandra.jmxPort}</jmxPort>
  322. <addMainClasspath>false</addMainClasspath>
  323. <addTestClasspath>false</addTestClasspath>
  324. <startWaitSeconds>500</startWaitSeconds>
  325. </configuration>
  326. </execution>
  327. <execution>
  328. <id>stop-cassandra</id>
  329. <phase>test</phase>
  330. <goals>
  331. <goal>stop</goal>
  332. </goals>
  333. </execution>
  334. </executions>
  335. <dependencies>
  336. <dependency>
  337. <groupId>org.slf4j</groupId>
  338. <artifactId>slf4j-simple</artifactId>
  339. <version>${slf4j.version}</version>
  340. </dependency>
  341. </dependencies>
  342. </plugin>
  343. </plugins>
  344. <pluginManagement>
  345. <plugins>
  346. <plugin>
  347. <groupId>org.apache.maven.plugins</groupId>
  348. <artifactId>maven-surefire-plugin</artifactId>
  349. <configuration>
  350. <systemPropertyVariables>
  351. <cassandra.port>${cassandraPort}</cassandra.port>
  352. <archiva.repositorySessionFactory.id>cassandra</archiva.repositorySessionFactory.id>
  353. <appserver.base>${project.build.directory}/appserver-base</appserver.base>
  354. </systemPropertyVariables>
  355. <trimStackTrace>false</trimStackTrace>
  356. </configuration>
  357. </plugin>
  358. </plugins>
  359. </pluginManagement>
  360. </build>
  361. </project>