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