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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  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>4.0.0</cassandraVersion>
  33. <datastax.driver.version>4.13.0</datastax.driver.version>
  34. </properties>
  35. <dependencies>
  36. <dependency>
  37. <groupId>org.apache.commons</groupId>
  38. <artifactId>commons-lang3</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.apache.archiva</groupId>
  42. <artifactId>metadata-repository-api</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.archiva</groupId>
  46. <artifactId>metadata-repository-api</artifactId>
  47. <classifier>tests</classifier>
  48. <scope>test</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.apache.archiva</groupId>
  52. <artifactId>archiva-common</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.archiva</groupId>
  56. <artifactId>archiva-configuration</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.apache.archiva</groupId>
  60. <artifactId>archiva-policies</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.apache.archiva</groupId>
  64. <artifactId>archiva-xml-tools</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.apache.archiva</groupId>
  68. <artifactId>archiva-repository-api</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.apache.archiva</groupId>
  72. <artifactId>archiva-checksum</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.apache.archiva</groupId>
  76. <artifactId>metadata-model</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>jakarta.annotation</groupId>
  80. <artifactId>jakarta.annotation-api</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>jakarta.inject</groupId>
  84. <artifactId>jakarta.inject-api</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.springframework</groupId>
  88. <artifactId>spring-beans</artifactId>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.springframework</groupId>
  92. <artifactId>spring-context</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.modelmapper</groupId>
  96. <artifactId>modelmapper</artifactId>
  97. </dependency>
  98. <!--
  99. <dependency>
  100. <groupId>org.yaml</groupId>
  101. <artifactId>snakeyaml</artifactId>
  102. <version>1.27</version>
  103. </dependency>
  104. -->
  105. <dependency>
  106. <groupId>org.apache.cassandra</groupId>
  107. <artifactId>cassandra-all</artifactId>
  108. <version>${cassandraVersion}</version>
  109. <scope>test</scope>
  110. <exclusions>
  111. <exclusion>
  112. <groupId>log4j</groupId>
  113. <artifactId>log4j</artifactId>
  114. </exclusion>
  115. <exclusion>
  116. <groupId>org.slf4j</groupId>
  117. <artifactId>slf4j-log4j12</artifactId>
  118. </exclusion>
  119. <exclusion>
  120. <groupId>org.slf4j</groupId>
  121. <artifactId>jcl-over-slf4j</artifactId>
  122. </exclusion>
  123. <exclusion>
  124. <groupId>ch.qos.logback</groupId>
  125. <artifactId>logback-core</artifactId>
  126. </exclusion>
  127. <exclusion>
  128. <groupId>org.mortbay.jetty</groupId>
  129. <artifactId>jetty</artifactId>
  130. </exclusion>
  131. <exclusion>
  132. <groupId>javax.servlet</groupId>
  133. <artifactId>servlet-api</artifactId>
  134. </exclusion>
  135. <exclusion>
  136. <groupId>org.slf4j</groupId>
  137. <artifactId>log4j-over-slf4j</artifactId>
  138. </exclusion>
  139. <exclusion>
  140. <groupId>ch.qos.logback</groupId>
  141. <artifactId>logback-classic</artifactId>
  142. </exclusion>
  143. <exclusion>
  144. <groupId>org.jboss.logging</groupId>
  145. <artifactId>jboss-logging</artifactId>
  146. </exclusion>
  147. <exclusion>
  148. <groupId>javax.inject</groupId>
  149. <artifactId>javax.inject</artifactId>
  150. </exclusion>
  151. <exclusion>
  152. <groupId>javax.validation</groupId>
  153. <artifactId>validation-api</artifactId>
  154. </exclusion>
  155. <exclusion>
  156. <groupId>com.fasterxml.jackson.core</groupId>
  157. <artifactId>jackson-core</artifactId>
  158. </exclusion>
  159. <!-- Brings hibernate-validator dependency with ancient version, which is vulnerable. Not necessary for archiva. -->
  160. <exclusion>
  161. <groupId>com.addthis.metrics</groupId>
  162. <artifactId>reporter-config3</artifactId>
  163. </exclusion>
  164. <exclusion>
  165. <groupId>net.openhft</groupId>
  166. <artifactId>chronicle-wire</artifactId>
  167. </exclusion>
  168. </exclusions>
  169. </dependency>
  170. <dependency>
  171. <groupId>net.openhft</groupId>
  172. <artifactId>chronicle-wire</artifactId>
  173. <version>2.21.89</version>
  174. <scope>test</scope>
  175. </dependency>
  176. <dependency>
  177. <groupId>com.datastax.oss</groupId>
  178. <artifactId>java-driver-core</artifactId>
  179. <version>${datastax.driver.version}</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>com.datastax.oss</groupId>
  183. <artifactId>java-driver-query-builder</artifactId>
  184. <version>${datastax.driver.version}</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>com.datastax.oss</groupId>
  188. <artifactId>java-driver-mapper-runtime</artifactId>
  189. <version>${datastax.driver.version}</version>
  190. </dependency>
  191. <!--
  192. <dependency>
  193. <groupId>org.hectorclient</groupId>
  194. <artifactId>hector-core</artifactId>
  195. <version>1.1-4</version>
  196. <exclusions>
  197. <exclusion>
  198. <groupId>javax.servlet</groupId>
  199. <artifactId>servlet-api</artifactId>
  200. </exclusion>
  201. <exclusion>
  202. <groupId>com.ecyrd.speed4j</groupId>
  203. <artifactId>speed4j</artifactId>
  204. </exclusion>
  205. <exclusion>
  206. <groupId>com.yammer.metrics</groupId>
  207. <artifactId>metrics-core</artifactId>
  208. </exclusion>
  209. <exclusion>
  210. <groupId>org.slf4j</groupId>
  211. <artifactId>log4j-over-slf4j</artifactId>
  212. </exclusion>
  213. </exclusions>
  214. </dependency>
  215. -->
  216. <!--
  217. <dependency>
  218. <groupId>org.apache.cassandra</groupId>
  219. <artifactId>cassandra-thrift</artifactId>
  220. <version>${cassandraVersion}</version>
  221. <exclusions>
  222. <exclusion>
  223. <groupId>javax.servlet</groupId>
  224. <artifactId>servlet-api</artifactId>
  225. </exclusion>
  226. <exclusion>
  227. <groupId>org.apache.ant</groupId>
  228. <artifactId>ant</artifactId>
  229. </exclusion>
  230. </exclusions>
  231. </dependency>
  232. -->
  233. <!-- Transient dependencies of cassandra that are selected to use a higher version -->
  234. <!--
  235. <dependency>
  236. <groupId>org.apache.thrift</groupId>
  237. <artifactId>libthrift</artifactId>
  238. <version>0.13.0</version>
  239. <exclusions>
  240. <exclusion>
  241. <groupId>javax.annotation</groupId>
  242. <artifactId>javax.annotation-api</artifactId>
  243. </exclusion>
  244. </exclusions>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.mindrot</groupId>
  248. <artifactId>jbcrypt</artifactId>
  249. <version>0.4</version>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.apache.tika</groupId>
  253. <artifactId>tika-core</artifactId>
  254. <version>1.26</version>
  255. </dependency>
  256. -->
  257. <!-- Transitive dependency. Declared here to increase the version. -->
  258. <!--
  259. <dependency>
  260. <groupId>io.netty</groupId>
  261. <artifactId>netty-all</artifactId>
  262. <version>${netty.version}</version>
  263. </dependency>
  264. -->
  265. <!--
  266. <dependency>
  267. <groupId>com.fasterxml.jackson.core</groupId>
  268. <artifactId>jackson-core</artifactId>
  269. </dependency>
  270. -->
  271. <!-- Is a dependency of cassandra -> hibernate-validator and replaced by new version -->
  272. <!--
  273. <dependency>
  274. <groupId>org.jboss.logging</groupId>
  275. <artifactId>jboss-logging</artifactId>
  276. </dependency>
  277. -->
  278. <!-- TEST Scope -->
  279. <dependency>
  280. <groupId>org.junit.jupiter</groupId>
  281. <artifactId>junit-jupiter-api</artifactId>
  282. <scope>test</scope>
  283. </dependency>
  284. <dependency>
  285. <groupId>org.apache.archiva</groupId>
  286. <artifactId>archiva-test-utils</artifactId>
  287. <version>${project.version}</version>
  288. <scope>test</scope>
  289. <exclusions>
  290. <exclusion>
  291. <groupId>org.slf4j</groupId>
  292. <artifactId>slf4j-simple</artifactId>
  293. </exclusion>
  294. </exclusions>
  295. </dependency>
  296. <dependency>
  297. <groupId>org.easymock</groupId>
  298. <artifactId>easymock</artifactId>
  299. <scope>test</scope>
  300. </dependency>
  301. <dependency>
  302. <groupId>org.springframework</groupId>
  303. <artifactId>spring-test</artifactId>
  304. <scope>test</scope>
  305. </dependency>
  306. <dependency>
  307. <groupId>org.apache.archiva</groupId>
  308. <artifactId>generic-metadata-support</artifactId>
  309. <scope>test</scope>
  310. </dependency>
  311. <dependency>
  312. <groupId>org.assertj</groupId>
  313. <artifactId>assertj-core</artifactId>
  314. <scope>test</scope>
  315. </dependency>
  316. <dependency>
  317. <groupId>org.apache.logging.log4j</groupId>
  318. <artifactId>log4j-slf4j-impl</artifactId>
  319. <scope>test</scope>
  320. </dependency>
  321. <dependency>
  322. <groupId>org.apache.logging.log4j</groupId>
  323. <artifactId>log4j-1.2-api</artifactId>
  324. <version>${log4j.version}</version>
  325. <scope>test</scope>
  326. </dependency>
  327. <dependency>
  328. <groupId>org.junit.jupiter</groupId>
  329. <artifactId>junit-jupiter-engine</artifactId>
  330. <scope>test</scope>
  331. </dependency>
  332. </dependencies>
  333. <build>
  334. <testResources>
  335. <testResource>
  336. <directory>src/test/filtered-resources</directory>
  337. <filtering>true</filtering>
  338. </testResource>
  339. </testResources>
  340. <plugins>
  341. <plugin>
  342. <groupId>org.codehaus.mojo</groupId>
  343. <artifactId>build-helper-maven-plugin</artifactId>
  344. <executions>
  345. <execution>
  346. <id>reserve-ports</id>
  347. <phase>process-test-resources</phase>
  348. <goals>
  349. <goal>reserve-network-port</goal>
  350. </goals>
  351. <configuration>
  352. <portNames>
  353. <portName>cassandra.rpcPort</portName>
  354. <portName>cassandra.storagePort</portName>
  355. <portName>cassandra.stopPort</portName>
  356. <portName>cassandra.jmxPort</portName>
  357. <portName>cassandra.nativeTransportPort</portName>
  358. </portNames>
  359. </configuration>
  360. </execution>
  361. </executions>
  362. </plugin>
  363. <plugin>
  364. <groupId>org.codehaus.mojo</groupId>
  365. <artifactId>cassandra-maven-plugin</artifactId>
  366. <version>3.6</version>
  367. <executions>
  368. <execution>
  369. <id>start-cassandra</id>
  370. <phase>pre-integration-test</phase>
  371. <goals>
  372. <goal>start</goal>
  373. </goals>
  374. <configuration>
  375. <nativeTransportPort>${cassandra.nativeTransportPort}</nativeTransportPort>
  376. <rpcPort>${cassandra.rpcPort}</rpcPort>
  377. <storagePort>${cassandra.storagePort}</storagePort>
  378. <stopPort>${cassandra.stopPort}</stopPort>
  379. <jmxPort>${cassandra.jmxPort}</jmxPort>
  380. <addMainClasspath>false</addMainClasspath>
  381. <addTestClasspath>false</addTestClasspath>
  382. <startWaitSeconds>500</startWaitSeconds>
  383. <startNativeTransport>true</startNativeTransport>
  384. <logLevel>INFO</logLevel>
  385. <loadAfterFirstStart>false</loadAfterFirstStart>
  386. <yaml>
  387. broadcast_rpc_address: 127.0.0.1
  388. </yaml>
  389. <systemPropertyVariables>
  390. <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
  391. </systemPropertyVariables>
  392. </configuration>
  393. </execution>
  394. <execution>
  395. <id>stop-cassandra</id>
  396. <phase>post-integration-test</phase>
  397. <goals>
  398. <goal>stop</goal>
  399. </goals>
  400. </execution>
  401. </executions>
  402. <dependencies>
  403. <dependency>
  404. <groupId>org.slf4j</groupId>
  405. <artifactId>slf4j-simple</artifactId>
  406. <version>${slf4j.version}</version>
  407. </dependency>
  408. <dependency>
  409. <groupId>net.java.dev.jna</groupId>
  410. <artifactId>jna</artifactId>
  411. <version>4.2.2</version>
  412. </dependency>
  413. <dependency>
  414. <groupId>org.apache.cassandra</groupId>
  415. <artifactId>cassandra-all</artifactId>
  416. <version>3.11.10</version>
  417. </dependency>
  418. </dependencies>
  419. </plugin>
  420. <plugin>
  421. <groupId>org.apache.maven.plugins</groupId>
  422. <artifactId>maven-failsafe-plugin</artifactId>
  423. <version>3.0.0-M5</version>
  424. <executions>
  425. <execution>
  426. <goals>
  427. <goal>integration-test</goal>
  428. <goal>verify</goal>
  429. </goals>
  430. </execution>
  431. </executions>
  432. <configuration>
  433. <includes>
  434. <include>**/*Test.java</include>
  435. </includes>
  436. <systemPropertyVariables>
  437. <cassandra.port>${cassandra.nativeTransportPort}</cassandra.port>
  438. <cassandra.host>127.0.0.1</cassandra.host>
  439. <archiva.repositorySessionFactory.id>cassandra</archiva.repositorySessionFactory.id>
  440. <appserver.base>${project.build.directory}/appserver-base</appserver.base>
  441. <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
  442. </systemPropertyVariables>
  443. <trimStackTrace>false</trimStackTrace>
  444. <skip>false</skip>
  445. <classesDirectory>${project.build.outputDirectory}</classesDirectory>
  446. </configuration>
  447. <dependencies>
  448. <dependency>
  449. <groupId>org.junit.jupiter</groupId>
  450. <artifactId>junit-jupiter-engine</artifactId>
  451. <version>${junit.jupiter.version}</version>
  452. </dependency>
  453. </dependencies>
  454. </plugin>
  455. </plugins>
  456. <pluginManagement>
  457. <plugins>
  458. <plugin>
  459. <groupId>org.apache.maven.plugins</groupId>
  460. <artifactId>maven-surefire-plugin</artifactId>
  461. <executions>
  462. </executions>
  463. <configuration>
  464. <skip>true</skip>
  465. </configuration>
  466. </plugin>
  467. <plugin>
  468. <groupId>org.apache.rat</groupId>
  469. <artifactId>apache-rat-plugin</artifactId>
  470. <configuration>
  471. <excludes>
  472. <exclude>src/cassandra/**</exclude>
  473. </excludes>
  474. </configuration>
  475. </plugin>
  476. </plugins>
  477. </pluginManagement>
  478. </build>
  479. </project>