| 1 | <!-- |
| 2 | |
| 3 | Copyright (C) 2012-2015 DataStax Inc. |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | |
| 17 | --> |
| 18 | <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/maven-v4_0_0.xsd"> |
| 19 | <modelVersion>4.0.0</modelVersion> |
| 20 | <parent> |
| 21 | <groupId>com.datastax.cassandra</groupId> |
| 22 | <artifactId>cassandra-driver-tests-parent</artifactId> |
| 23 | <version>3.1.5-SNAPSHOT</version> |
| 24 | </parent> |
| 25 | |
| 26 | <artifactId>cassandra-driver-tests-osgi</artifactId> |
| 27 | <packaging>jar</packaging> |
| 28 | <name>DataStax Java Driver for Apache Cassandra Tests - OSGi</name> |
| 29 | <description>A test for the DataStax Java Driver in an OSGi container.</description> |
| 30 | <url>https://github.com/datastax/java-driver</url> |
| 31 | |
| 32 | <properties> |
| 33 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 34 | <felix.version>4.4.1</felix.version> |
| 35 | <!-- more recent version require JDK7+ --> |
| 36 | <pax-exam.version>3.6.0</pax-exam.version> |
| 37 | <url.version>2.4.0</url.version> |
| 38 | <logback.version>1.1.3</logback.version> |
| 39 | <slf4j.version>1.7.5</slf4j.version> |
| 40 | <test.groups>none</test.groups> |
| 41 | <!-- |
| 42 | Skip tests by default, short or long profile is required to run tests in this module |
| 43 | since pax-exam will throw exception if it encounters a |
| 44 | test with no matching methods. |
| 45 | --> |
| 46 | <test.skip>true</test.skip> |
| 47 | <main.basedir>${project.parent.parent.basedir}</main.basedir> |
| 48 | </properties> |
| 49 | |
| 50 | <dependencies> |
| 51 | |
| 52 | <dependency> |
| 53 | <groupId>com.datastax.cassandra</groupId> |
| 54 | <artifactId>cassandra-driver-core</artifactId> |
| 55 | <version>${project.parent.version}</version> |
| 56 | </dependency> |
| 57 | |
| 58 | <dependency> |
| 59 | <groupId>com.datastax.cassandra</groupId> |
| 60 | <artifactId>cassandra-driver-mapping</artifactId> |
| 61 | <version>${project.parent.version}</version> |
| 62 | </dependency> |
| 63 | |
| 64 | <dependency> |
| 65 | <groupId>com.datastax.cassandra</groupId> |
| 66 | <artifactId>cassandra-driver-extras</artifactId> |
| 67 | <version>${project.parent.version}</version> |
| 68 | </dependency> |
| 69 | |
| 70 | <dependency> |
| 71 | <groupId>org.apache.felix</groupId> |
| 72 | <artifactId>org.apache.felix.framework</artifactId> |
| 73 | <version>${felix.version}</version> |
| 74 | </dependency> |
| 75 | |
| 76 | <dependency> |
| 77 | <groupId>org.slf4j</groupId> |
| 78 | <artifactId>slf4j-api</artifactId> |
| 79 | <version>${slf4j.version}</version> |
| 80 | </dependency> |
| 81 | |
| 82 | <dependency> |
| 83 | <groupId>com.datastax.cassandra</groupId> |
| 84 | <artifactId>cassandra-driver-core</artifactId> |
| 85 | <version>${project.parent.version}</version> |
| 86 | <type>test-jar</type> |
| 87 | <scope>test</scope> |
| 88 | </dependency> |
| 89 | |
| 90 | <dependency> |
| 91 | <groupId>org.ops4j.pax.exam</groupId> |
| 92 | <artifactId>pax-exam</artifactId> |
| 93 | <version>${pax-exam.version}</version> |
| 94 | <scope>test</scope> |
| 95 | </dependency> |
| 96 | |
| 97 | <dependency> |
| 98 | <groupId>org.ops4j.pax.exam</groupId> |
| 99 | <artifactId>pax-exam-testng</artifactId> |
| 100 | <version>${pax-exam.version}</version> |
| 101 | <scope>test</scope> |
| 102 | </dependency> |
| 103 | |
| 104 | <dependency> |
| 105 | <groupId>org.ops4j.pax.exam</groupId> |
| 106 | <artifactId>pax-exam-container-forked</artifactId> |
| 107 | <version>${pax-exam.version}</version> |
| 108 | <scope>test</scope> |
| 109 | </dependency> |
| 110 | |
| 111 | <dependency> |
| 112 | <groupId>org.ops4j.pax.exam</groupId> |
| 113 | <artifactId>pax-exam-link-mvn</artifactId> |
| 114 | <version>${pax-exam.version}</version> |
| 115 | <scope>test</scope> |
| 116 | </dependency> |
| 117 | |
| 118 | <dependency> |
| 119 | <groupId>org.ops4j.pax.url</groupId> |
| 120 | <artifactId>pax-url-reference</artifactId> |
| 121 | <version>${url.version}</version> |
| 122 | <scope>test</scope> |
| 123 | </dependency> |
| 124 | |
| 125 | <dependency> |
| 126 | <groupId>javax.transaction</groupId> |
| 127 | <artifactId>jta</artifactId> |
| 128 | <version>1.1</version> |
| 129 | <scope>test</scope> |
| 130 | </dependency> |
| 131 | |
| 132 | <dependency> |
| 133 | <groupId>javax.servlet</groupId> |
| 134 | <artifactId>javax.servlet-api</artifactId> |
| 135 | <version>3.1.0</version> |
| 136 | <scope>test</scope> |
| 137 | </dependency> |
| 138 | |
| 139 | <dependency> |
| 140 | <groupId>javax.inject</groupId> |
| 141 | <artifactId>javax.inject</artifactId> |
| 142 | <version>1</version> |
| 143 | <scope>test</scope> |
| 144 | </dependency> |
| 145 | |
| 146 | <dependency> |
| 147 | <groupId>org.apache.commons</groupId> |
| 148 | <artifactId>commons-exec</artifactId> |
| 149 | <version>1.3</version> |
| 150 | <scope>test</scope> |
| 151 | </dependency> |
| 152 | |
| 153 | <dependency> |
| 154 | <groupId>ch.qos.logback</groupId> |
| 155 | <artifactId>logback-classic</artifactId> |
| 156 | <version>${logback.version}</version> |
| 157 | <scope>test</scope> |
| 158 | </dependency> |
| 159 | |
| 160 | <dependency> |
| 161 | <groupId>ch.qos.logback</groupId> |
| 162 | <artifactId>logback-core</artifactId> |
| 163 | <version>${logback.version}</version> |
| 164 | <scope>test</scope> |
| 165 | </dependency> |
| 166 | |
| 167 | </dependencies> |
| 168 | |
| 169 | <build> |
| 170 | |
| 171 | <plugins> |
| 172 | |
| 173 | <!-- |
| 174 | this project has no unit tests; |
| 175 | this plugin is declared just so that Maven properties |
| 176 | get automatically passed to tests run with IntelliJ |
| 177 | --> |
| 178 | <plugin> |
| 179 | <groupId>org.apache.maven.plugins</groupId> |
| 180 | <artifactId>maven-surefire-plugin</artifactId> |
| 181 | <version>2.18.1</version> |
| 182 | <configuration> |
| 183 | <skip>true</skip> |
| 184 | <systemPropertyVariables> |
| 185 | <cassandra.version>${cassandra.version}</cassandra.version> |
| 186 | <ipprefix>${ipprefix}</ipprefix> |
| 187 | </systemPropertyVariables> |
| 188 | </configuration> |
| 189 | </plugin> |
| 190 | |
| 191 | <plugin> |
| 192 | <groupId>org.apache.maven.plugins</groupId> |
| 193 | <artifactId>maven-failsafe-plugin</artifactId> |
| 194 | <version>2.18.1</version> |
| 195 | <configuration> |
| 196 | <skip>${test.skip}</skip> |
| 197 | <groups>${test.groups}</groups> |
| 198 | <systemPropertyVariables> |
| 199 | <cassandra.version>${cassandra.version}</cassandra.version> |
| 200 | <!-- pull in declared version properties, this ensures we test with the same versions used by the driver --> |
| 201 | <guava.version>${guava.version}</guava.version> |
| 202 | <lz4.version>${lz4.version}</lz4.version> |
| 203 | <snappy.version>${snappy.version}</snappy.version> |
| 204 | <hdr.version>${hdr.version}</hdr.version> |
| 205 | <netty.version>${netty.version}</netty.version> |
| 206 | <slf4j.version>${slf4j.version}</slf4j.version> |
| 207 | <logback.version>${logback.version}</logback.version> |
| 208 | <metrics.version>${metrics.version}</metrics.version> |
| 209 | <testng.version>${testng.version}</testng.version> |
| 210 | <ipprefix>${ipprefix}</ipprefix> |
| 211 | </systemPropertyVariables> |
| 212 | </configuration> |
| 213 | <executions> |
| 214 | <execution> |
| 215 | <id>default</id> |
| 216 | <goals> |
| 217 | <goal>integration-test</goal> |
| 218 | <goal>verify</goal> |
| 219 | </goals> |
| 220 | </execution> |
| 221 | </executions> |
| 222 | </plugin> |
| 223 | |
| 224 | <plugin> |
| 225 | <groupId>org.apache.felix</groupId> |
| 226 | <artifactId>maven-bundle-plugin</artifactId> |
| 227 | <extensions>true</extensions> |
| 228 | <version>2.4.0</version> |
| 229 | <configuration> |
| 230 | <instructions> |
| 231 | <Bundle-SymbolicName>com.datastax.driver.osgi</Bundle-SymbolicName> |
| 232 | <Bundle-Version>${project.version}</Bundle-Version> |
| 233 | <Export-Package>com.datastax.driver.osgi.api,!com.datastax.driver.osgi.impl</Export-Package> |
| 234 | <Bundle-Activator>com.datastax.driver.osgi.impl.Activator</Bundle-Activator> |
| 235 | <_include>-osgi.bnd</_include> |
| 236 | <Import-Package><![CDATA[com.google.common.*;version="[16.0.1,20)",*]]></Import-Package> |
| 237 | </instructions> |
| 238 | </configuration> |
| 239 | <executions> |
| 240 | <execution> |
| 241 | <id>bundle-manifest</id> |
| 242 | <phase>compile</phase> |
| 243 | <goals> |
| 244 | <goal>manifest</goal> |
| 245 | </goals> |
| 246 | </execution> |
| 247 | </executions> |
| 248 | </plugin> |
| 249 | |
| 250 | <!-- |
| 251 | To launch Pax Runner and check that all driver bundles are correctly provisioned, |
| 252 | do the following: |
| 253 | mvn pax:run |
| 254 | Note: you MUST run 'mvn install' on the entire project before! |
| 255 | --> |
| 256 | <plugin> |
| 257 | <groupId>org.ops4j</groupId> |
| 258 | <artifactId>maven-pax-plugin</artifactId> |
| 259 | <version>1.6.0</version> |
| 260 | <configuration> |
| 261 | <framework>felix</framework> |
| 262 | <showWarnings>true</showWarnings> |
| 263 | <provision> |
| 264 | <param>--platform=felix</param> |
| 265 | <param>--version=${felix.version}</param> |
| 266 | <param>--log=debug</param> |
| 267 | <param>--systemPackages=sun.misc</param> |
| 268 | </provision> |
| 269 | </configuration> |
| 270 | </plugin> |
| 271 | |
| 272 | </plugins> |
| 273 | |
| 274 | </build> |
| 275 | |
| 276 | <profiles> |
| 277 | |
| 278 | <profile> |
| 279 | <id>short</id> |
| 280 | <properties> |
| 281 | <test.groups>unit,short</test.groups> |
| 282 | <test.skip>false</test.skip> |
| 283 | </properties> |
| 284 | </profile> |
| 285 | |
| 286 | <profile> |
| 287 | <id>long</id> |
| 288 | <properties> |
| 289 | <test.groups>unit,short,long</test.groups> |
| 290 | <test.skip>false</test.skip> |
| 291 | </properties> |
| 292 | </profile> |
| 293 | |
| 294 | </profiles> |
| 295 | |
| 296 | <licenses> |
| 297 | <license> |
| 298 | <name>Apache 2</name> |
| 299 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 300 | <distribution>repo</distribution> |
| 301 | <comments>Apache License Version 2.0</comments> |
| 302 | </license> |
| 303 | </licenses> |
| 304 | |
| 305 | <scm> |
| 306 | <connection>scm:git:git@github.com:datastax/java-driver.git</connection> |
| 307 | <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection> |
| 308 | <url>https://github.com/datastax/java-driver</url> |
| 309 | <tag>HEAD</tag> |
| 310 | </scm> |
| 311 | |
| 312 | <developers> |
| 313 | <developer> |
| 314 | <name>Various</name> |
| 315 | <organization>DataStax</organization> |
| 316 | </developer> |
| 317 | </developers> |
| 318 | </project> |
| 319 | |