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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  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.9</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.yaml</groupId>
  99. <artifactId>snakeyaml</artifactId>
  100. <version>1.27</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.apache.cassandra</groupId>
  104. <artifactId>cassandra-all</artifactId>
  105. <version>${cassandraVersion}</version>
  106. <exclusions>
  107. <exclusion>
  108. <groupId>log4j</groupId>
  109. <artifactId>log4j</artifactId>
  110. </exclusion>
  111. <exclusion>
  112. <groupId>org.slf4j</groupId>
  113. <artifactId>slf4j-log4j12</artifactId>
  114. </exclusion>
  115. <exclusion>
  116. <groupId>org.slf4j</groupId>
  117. <artifactId>jcl-over-slf4j</artifactId>
  118. </exclusion>
  119. <exclusion>
  120. <groupId>ch.qos.logback</groupId>
  121. <artifactId>logback-core</artifactId>
  122. </exclusion>
  123. <exclusion>
  124. <groupId>org.mortbay.jetty</groupId>
  125. <artifactId>jetty</artifactId>
  126. </exclusion>
  127. <exclusion>
  128. <groupId>javax.servlet</groupId>
  129. <artifactId>servlet-api</artifactId>
  130. </exclusion>
  131. <exclusion>
  132. <groupId>org.slf4j</groupId>
  133. <artifactId>log4j-over-slf4j</artifactId>
  134. </exclusion>
  135. <exclusion>
  136. <groupId>ch.qos.logback</groupId>
  137. <artifactId>logback-classic</artifactId>
  138. </exclusion>
  139. <exclusion>
  140. <groupId>org.jboss.logging</groupId>
  141. <artifactId>jboss-logging</artifactId>
  142. </exclusion>
  143. <exclusion>
  144. <groupId>javax.inject</groupId>
  145. <artifactId>javax.inject</artifactId>
  146. </exclusion>
  147. <exclusion>
  148. <groupId>javax.validation</groupId>
  149. <artifactId>validation-api</artifactId>
  150. </exclusion>
  151. <exclusion>
  152. <groupId>com.fasterxml.jackson.core</groupId>
  153. <artifactId>jackson-core</artifactId>
  154. </exclusion>
  155. </exclusions>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.hectorclient</groupId>
  159. <artifactId>hector-core</artifactId>
  160. <version>1.1-4</version>
  161. <exclusions>
  162. <exclusion>
  163. <groupId>javax.servlet</groupId>
  164. <artifactId>servlet-api</artifactId>
  165. </exclusion>
  166. <exclusion>
  167. <groupId>com.ecyrd.speed4j</groupId>
  168. <artifactId>speed4j</artifactId>
  169. </exclusion>
  170. <exclusion>
  171. <groupId>com.yammer.metrics</groupId>
  172. <artifactId>metrics-core</artifactId>
  173. </exclusion>
  174. <exclusion>
  175. <groupId>org.slf4j</groupId>
  176. <artifactId>log4j-over-slf4j</artifactId>
  177. </exclusion>
  178. </exclusions>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.apache.cassandra</groupId>
  182. <artifactId>cassandra-thrift</artifactId>
  183. <version>${cassandraVersion}</version>
  184. <exclusions>
  185. <exclusion>
  186. <groupId>javax.servlet</groupId>
  187. <artifactId>servlet-api</artifactId>
  188. </exclusion>
  189. <exclusion>
  190. <groupId>org.apache.ant</groupId>
  191. <artifactId>ant</artifactId>
  192. </exclusion>
  193. </exclusions>
  194. </dependency>
  195. <dependency>
  196. <groupId>org.apache.thrift</groupId>
  197. <artifactId>libthrift</artifactId>
  198. <version>0.13.0</version>
  199. <exclusions>
  200. <exclusion>
  201. <groupId>javax.annotation</groupId>
  202. <artifactId>javax.annotation-api</artifactId>
  203. </exclusion>
  204. </exclusions>
  205. </dependency>
  206. <!--
  207. <dependency>
  208. <groupId>org.codehaus.jackson</groupId>
  209. <artifactId>jackson-core-asl</artifactId>
  210. <version>1.9.13</version>
  211. </dependency>
  212. <dependency>
  213. <groupId>org.codehaus.jackson</groupId>
  214. <artifactId>jackson-mapper-asl</artifactId>
  215. <version>1.9.13</version>
  216. </dependency>
  217. -->
  218. <!-- Transitive dependency. Declared here to increase the version. -->
  219. <dependency>
  220. <groupId>io.netty</groupId>
  221. <artifactId>netty-all</artifactId>
  222. <version>${netty.version}</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>com.fasterxml.jackson.core</groupId>
  226. <artifactId>jackson-core</artifactId>
  227. </dependency>
  228. <!-- Is a dependency of cassandra -> hibernate-validator and replaced by new version -->
  229. <dependency>
  230. <groupId>org.jboss.logging</groupId>
  231. <artifactId>jboss-logging</artifactId>
  232. </dependency>
  233. <!-- Dependency of cassandra -> replacing by new version -->
  234. <dependency>
  235. <groupId>org.hibernate</groupId>
  236. <artifactId>hibernate-validator</artifactId>
  237. <version>4.3.2.Final</version>
  238. <exclusions>
  239. <exclusion>
  240. <groupId>javax.validation</groupId>
  241. <artifactId>validation-api</artifactId>
  242. </exclusion>
  243. </exclusions>
  244. </dependency>
  245. <!-- TEST Scope -->
  246. <dependency>
  247. <groupId>org.apache.archiva</groupId>
  248. <artifactId>archiva-test-utils</artifactId>
  249. <version>${project.version}</version>
  250. <scope>test</scope>
  251. <exclusions>
  252. <exclusion>
  253. <groupId>org.slf4j</groupId>
  254. <artifactId>slf4j-simple</artifactId>
  255. </exclusion>
  256. </exclusions>
  257. </dependency>
  258. <dependency>
  259. <groupId>org.easymock</groupId>
  260. <artifactId>easymock</artifactId>
  261. <scope>test</scope>
  262. </dependency>
  263. <dependency>
  264. <groupId>org.springframework</groupId>
  265. <artifactId>spring-test</artifactId>
  266. <scope>test</scope>
  267. </dependency>
  268. <dependency>
  269. <groupId>org.apache.archiva</groupId>
  270. <artifactId>generic-metadata-support</artifactId>
  271. <scope>test</scope>
  272. </dependency>
  273. <dependency>
  274. <groupId>org.assertj</groupId>
  275. <artifactId>assertj-core</artifactId>
  276. <scope>test</scope>
  277. </dependency>
  278. <dependency>
  279. <groupId>org.apache.logging.log4j</groupId>
  280. <artifactId>log4j-slf4j-impl</artifactId>
  281. <scope>test</scope>
  282. </dependency>
  283. <dependency>
  284. <groupId>org.apache.logging.log4j</groupId>
  285. <artifactId>log4j-1.2-api</artifactId>
  286. <version>${log4j.version}</version>
  287. <scope>test</scope>
  288. </dependency>
  289. </dependencies>
  290. <build>
  291. <testResources>
  292. <testResource>
  293. <directory>src/test/filtered-resources</directory>
  294. <filtering>true</filtering>
  295. </testResource>
  296. </testResources>
  297. <plugins>
  298. <plugin>
  299. <groupId>org.codehaus.mojo</groupId>
  300. <artifactId>build-helper-maven-plugin</artifactId>
  301. <executions>
  302. <execution>
  303. <id>reserve-ports</id>
  304. <phase>process-test-resources</phase>
  305. <goals>
  306. <goal>reserve-network-port</goal>
  307. </goals>
  308. <configuration>
  309. <portNames>
  310. <portName>cassandraPort</portName>
  311. <portName>cassandra.storagePort</portName>
  312. <portName>cassandra.stopPort</portName>
  313. <portName>cassandra.jmxPort</portName>
  314. </portNames>
  315. </configuration>
  316. </execution>
  317. </executions>
  318. </plugin>
  319. <plugin>
  320. <groupId>org.codehaus.mojo</groupId>
  321. <artifactId>cassandra-maven-plugin</artifactId>
  322. <version>2.0.0-1</version>
  323. <executions>
  324. <execution>
  325. <id>start-cassandra</id>
  326. <phase>process-test-classes</phase>
  327. <goals>
  328. <goal>start</goal>
  329. </goals>
  330. <configuration>
  331. <rpcPort>${cassandraPort}</rpcPort>
  332. <storagePort>${cassandra.storagePort}</storagePort>
  333. <stopPort>${cassandra.stopPort}</stopPort>
  334. <jmxPort>${cassandra.jmxPort}</jmxPort>
  335. <addMainClasspath>false</addMainClasspath>
  336. <addTestClasspath>false</addTestClasspath>
  337. <startWaitSeconds>500</startWaitSeconds>
  338. </configuration>
  339. </execution>
  340. <execution>
  341. <id>stop-cassandra</id>
  342. <phase>test</phase>
  343. <goals>
  344. <goal>stop</goal>
  345. </goals>
  346. </execution>
  347. </executions>
  348. <dependencies>
  349. <dependency>
  350. <groupId>org.slf4j</groupId>
  351. <artifactId>slf4j-simple</artifactId>
  352. <version>${slf4j.version}</version>
  353. </dependency>
  354. </dependencies>
  355. </plugin>
  356. </plugins>
  357. <pluginManagement>
  358. <plugins>
  359. <plugin>
  360. <groupId>org.apache.maven.plugins</groupId>
  361. <artifactId>maven-surefire-plugin</artifactId>
  362. <configuration>
  363. <systemPropertyVariables>
  364. <cassandra.port>${cassandraPort}</cassandra.port>
  365. <archiva.repositorySessionFactory.id>cassandra</archiva.repositorySessionFactory.id>
  366. <appserver.base>${project.build.directory}/appserver-base</appserver.base>
  367. </systemPropertyVariables>
  368. <trimStackTrace>false</trimStackTrace>
  369. </configuration>
  370. </plugin>
  371. </plugins>
  372. </pluginManagement>
  373. </build>
  374. </project>