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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  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.10</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. <dependency>
  99. <groupId>com.datastax.oss</groupId>
  100. <artifactId>java-driver-core</artifactId>
  101. <version>${datastax.driver.version}</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>com.datastax.oss</groupId>
  105. <artifactId>java-driver-query-builder</artifactId>
  106. <version>${datastax.driver.version}</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.datastax.oss</groupId>
  110. <artifactId>java-driver-mapper-runtime</artifactId>
  111. <version>${datastax.driver.version}</version>
  112. </dependency>
  113. <!-- TEST Scope -->
  114. <dependency>
  115. <groupId>org.junit.jupiter</groupId>
  116. <artifactId>junit-jupiter-api</artifactId>
  117. <scope>test</scope>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.apache.archiva</groupId>
  121. <artifactId>archiva-test-utils</artifactId>
  122. <version>${project.version}</version>
  123. <scope>test</scope>
  124. <exclusions>
  125. <exclusion>
  126. <groupId>org.slf4j</groupId>
  127. <artifactId>slf4j-simple</artifactId>
  128. </exclusion>
  129. </exclusions>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.easymock</groupId>
  133. <artifactId>easymock</artifactId>
  134. <scope>test</scope>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.springframework</groupId>
  138. <artifactId>spring-test</artifactId>
  139. <scope>test</scope>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.apache.archiva</groupId>
  143. <artifactId>generic-metadata-support</artifactId>
  144. <scope>test</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.assertj</groupId>
  148. <artifactId>assertj-core</artifactId>
  149. <scope>test</scope>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.apache.logging.log4j</groupId>
  153. <artifactId>log4j-slf4j-impl</artifactId>
  154. <scope>test</scope>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.apache.logging.log4j</groupId>
  158. <artifactId>log4j-1.2-api</artifactId>
  159. <version>${log4j.version}</version>
  160. <scope>test</scope>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.junit.jupiter</groupId>
  164. <artifactId>junit-jupiter-engine</artifactId>
  165. <scope>test</scope>
  166. </dependency>
  167. </dependencies>
  168. <build>
  169. <testResources>
  170. <testResource>
  171. <directory>src/test/filtered-resources</directory>
  172. <filtering>true</filtering>
  173. </testResource>
  174. </testResources>
  175. <plugins>
  176. <plugin>
  177. <groupId>org.codehaus.mojo</groupId>
  178. <artifactId>build-helper-maven-plugin</artifactId>
  179. <executions>
  180. <execution>
  181. <id>reserve-ports</id>
  182. <phase>process-test-resources</phase>
  183. <goals>
  184. <goal>reserve-network-port</goal>
  185. </goals>
  186. <configuration>
  187. <portNames>
  188. <portName>cassandra.rpcPort</portName>
  189. <portName>cassandra.storagePort</portName>
  190. <portName>cassandra.stopPort</portName>
  191. <portName>cassandra.jmxPort</portName>
  192. <portName>cassandra.nativeTransportPort</portName>
  193. </portNames>
  194. </configuration>
  195. </execution>
  196. </executions>
  197. </plugin>
  198. <plugin>
  199. <groupId>org.codehaus.mojo</groupId>
  200. <artifactId>cassandra-maven-plugin</artifactId>
  201. <version>3.6</version>
  202. <executions>
  203. <execution>
  204. <id>start-cassandra</id>
  205. <phase>pre-integration-test</phase>
  206. <goals>
  207. <goal>start</goal>
  208. </goals>
  209. <configuration>
  210. <nativeTransportPort>${cassandra.nativeTransportPort}</nativeTransportPort>
  211. <rpcPort>${cassandra.rpcPort}</rpcPort>
  212. <storagePort>${cassandra.storagePort}</storagePort>
  213. <stopPort>${cassandra.stopPort}</stopPort>
  214. <jmxPort>${cassandra.jmxPort}</jmxPort>
  215. <addMainClasspath>false</addMainClasspath>
  216. <addTestClasspath>false</addTestClasspath>
  217. <startWaitSeconds>500</startWaitSeconds>
  218. <startNativeTransport>true</startNativeTransport>
  219. <logLevel>INFO</logLevel>
  220. <loadAfterFirstStart>false</loadAfterFirstStart>
  221. <systemPropertyVariables>
  222. <cassandra.jmx.local.port>${cassandra.jmxPort}</cassandra.jmx.local.port>
  223. </systemPropertyVariables>
  224. <yaml><![CDATA[rpc_address: 127.0.0.1
  225. broadcast_rpc_address: 127.0.0.1
  226. listen_address: 127.0.0.1
  227. auto_snapshot: false
  228. snapshot_before_compaction: false
  229. num_tokens: 1
  230. ]]></yaml>
  231. </configuration>
  232. </execution>
  233. <execution>
  234. <id>stop-cassandra</id>
  235. <phase>post-integration-test</phase>
  236. <goals>
  237. <goal>stop</goal>
  238. </goals>
  239. </execution>
  240. </executions>
  241. <dependencies>
  242. <dependency>
  243. <groupId>org.slf4j</groupId>
  244. <artifactId>slf4j-simple</artifactId>
  245. <version>${slf4j.version}</version>
  246. </dependency>
  247. <dependency>
  248. <groupId>net.java.dev.jna</groupId>
  249. <artifactId>jna</artifactId>
  250. <version>4.2.2</version>
  251. </dependency>
  252. <dependency>
  253. <groupId>org.apache.cassandra</groupId>
  254. <artifactId>cassandra-all</artifactId>
  255. <version>${cassandraVersion}</version>
  256. </dependency>
  257. </dependencies>
  258. </plugin>
  259. <plugin>
  260. <groupId>org.apache.maven.plugins</groupId>
  261. <artifactId>maven-failsafe-plugin</artifactId>
  262. <version>3.0.0-M5</version>
  263. <executions>
  264. <execution>
  265. <goals>
  266. <goal>integration-test</goal>
  267. <goal>verify</goal>
  268. </goals>
  269. </execution>
  270. </executions>
  271. <configuration>
  272. <includes>
  273. <include>**/*Test.java</include>
  274. </includes>
  275. <systemPropertyVariables>
  276. <cassandra.port>${cassandra.nativeTransportPort}</cassandra.port>
  277. <cassandra.host>127.0.0.1</cassandra.host>
  278. <archiva.repositorySessionFactory.id>cassandra</archiva.repositorySessionFactory.id>
  279. <appserver.base>${project.build.directory}/appserver-base</appserver.base>
  280. <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
  281. </systemPropertyVariables>
  282. <trimStackTrace>false</trimStackTrace>
  283. <skip>false</skip>
  284. <classesDirectory>${project.build.outputDirectory}</classesDirectory>
  285. </configuration>
  286. <dependencies>
  287. <dependency>
  288. <groupId>org.junit.jupiter</groupId>
  289. <artifactId>junit-jupiter-engine</artifactId>
  290. <version>${junit.jupiter.version}</version>
  291. </dependency>
  292. </dependencies>
  293. </plugin>
  294. </plugins>
  295. <pluginManagement>
  296. <plugins>
  297. <plugin>
  298. <groupId>org.apache.maven.plugins</groupId>
  299. <artifactId>maven-surefire-plugin</artifactId>
  300. <executions>
  301. </executions>
  302. <configuration>
  303. <skip>true</skip>
  304. </configuration>
  305. </plugin>
  306. <plugin>
  307. <groupId>org.apache.rat</groupId>
  308. <artifactId>apache-rat-plugin</artifactId>
  309. <configuration>
  310. <excludes>
  311. <exclude>src/cassandra/**</exclude>
  312. <exclude>src/test/resources/cassandra-test.yaml</exclude>
  313. </excludes>
  314. </configuration>
  315. </plugin>
  316. </plugins>
  317. </pluginManagement>
  318. </build>
  319. </project>