| 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-examples-parent</artifactId> |
| 23 | <version>2.1.11-SNAPSHOT</version> |
| 24 | </parent> |
| 25 | <artifactId>cassandra-driver-examples-osgi</artifactId> |
| 26 | <packaging>bundle</packaging> |
| 27 | <name>DataStax Java Driver for Apache Cassandra Examples - OSGi</name> |
| 28 | <description>An example of using DataStax Java Driver in an OSGi container.</description> |
| 29 | <url>https://github.com/datastax/java-driver</url> |
| 30 | |
| 31 | <properties> |
| 32 | <felix.version>4.6.0</felix.version> |
| 33 | <pax-exam.version>3.6.0</pax-exam.version> |
| 34 | <main.basedir>${project.parent.parent.basedir}</main.basedir> |
| 35 | </properties> |
| 36 | |
| 37 | <dependencies> |
| 38 | <dependency> |
| 39 | <groupId>com.datastax.cassandra</groupId> |
| 40 | <artifactId>cassandra-driver-core</artifactId> |
| 41 | <version>${project.parent.version}</version> |
| 42 | </dependency> |
| 43 | |
| 44 | <dependency> |
| 45 | <groupId>org.apache.felix</groupId> |
| 46 | <artifactId>org.apache.felix.framework</artifactId> |
| 47 | <version>${felix.version}</version> |
| 48 | </dependency> |
| 49 | |
| 50 | <dependency> |
| 51 | <groupId>com.datastax.cassandra</groupId> |
| 52 | <artifactId>cassandra-driver-core</artifactId> |
| 53 | <version>${project.parent.version}</version> |
| 54 | <type>test-jar</type> |
| 55 | <scope>test</scope> |
| 56 | </dependency> |
| 57 | |
| 58 | <dependency> |
| 59 | <groupId>org.ops4j.pax.exam</groupId> |
| 60 | <artifactId>pax-exam</artifactId> |
| 61 | <version>${pax-exam.version}</version> |
| 62 | <scope>test</scope> |
| 63 | </dependency> |
| 64 | |
| 65 | <dependency> |
| 66 | <groupId>org.ops4j.pax.exam</groupId> |
| 67 | <artifactId>pax-exam-testng</artifactId> |
| 68 | <version>${pax-exam.version}</version> |
| 69 | <scope>test</scope> |
| 70 | </dependency> |
| 71 | |
| 72 | <dependency> |
| 73 | <groupId>org.ops4j.pax.exam</groupId> |
| 74 | <artifactId>pax-exam-container-native</artifactId> |
| 75 | <version>${pax-exam.version}</version> |
| 76 | <scope>test</scope> |
| 77 | </dependency> |
| 78 | |
| 79 | <dependency> |
| 80 | <groupId>org.ops4j.pax.exam</groupId> |
| 81 | <artifactId>pax-exam-link-mvn</artifactId> |
| 82 | <version>${pax-exam.version}</version> |
| 83 | <scope>test</scope> |
| 84 | </dependency> |
| 85 | |
| 86 | <dependency> |
| 87 | <groupId>javax.transaction</groupId> |
| 88 | <artifactId>jta</artifactId> |
| 89 | <version>1.1</version> |
| 90 | <scope>test</scope> |
| 91 | </dependency> |
| 92 | |
| 93 | <dependency> |
| 94 | <groupId>log4j</groupId> |
| 95 | <artifactId>log4j</artifactId> |
| 96 | <version>${log4j.version}</version> |
| 97 | <scope>test</scope> |
| 98 | </dependency> |
| 99 | |
| 100 | <dependency> |
| 101 | <groupId>org.slf4j</groupId> |
| 102 | <artifactId>slf4j-log4j12</artifactId> |
| 103 | <version>${slf4j-log4j12.version}</version> |
| 104 | <scope>test</scope> |
| 105 | </dependency> |
| 106 | |
| 107 | <dependency> |
| 108 | <groupId>com.jcabi</groupId> |
| 109 | <artifactId>jcabi-manifests</artifactId> |
| 110 | <version>1.1</version> |
| 111 | <scope>test</scope> |
| 112 | </dependency> |
| 113 | |
| 114 | <dependency> |
| 115 | <groupId>javax.servlet</groupId> |
| 116 | <artifactId>javax.servlet-api</artifactId> |
| 117 | <version>3.1.0</version> |
| 118 | <scope>test</scope> |
| 119 | </dependency> |
| 120 | |
| 121 | <dependency> |
| 122 | <groupId>javax.inject</groupId> |
| 123 | <artifactId>javax.inject</artifactId> |
| 124 | <version>1</version> |
| 125 | <scope>test</scope> |
| 126 | </dependency> |
| 127 | |
| 128 | <dependency> |
| 129 | <groupId>org.apache.commons</groupId> |
| 130 | <artifactId>commons-exec</artifactId> |
| 131 | <version>1.3</version> |
| 132 | <scope>test</scope> |
| 133 | </dependency> |
| 134 | </dependencies> |
| 135 | |
| 136 | <build> |
| 137 | <plugins> |
| 138 | <plugin> |
| 139 | <groupId>org.apache.maven.plugins</groupId> |
| 140 | <artifactId>maven-failsafe-plugin</artifactId> |
| 141 | <version>2.16</version> |
| 142 | <executions> |
| 143 | <execution> |
| 144 | <goals> |
| 145 | <goal>integration-test</goal> |
| 146 | <goal>verify</goal> |
| 147 | </goals> |
| 148 | </execution> |
| 149 | </executions> |
| 150 | </plugin> |
| 151 | <plugin> |
| 152 | <groupId>org.apache.felix</groupId> |
| 153 | <artifactId>maven-bundle-plugin</artifactId> |
| 154 | <extensions>true</extensions> |
| 155 | <version>2.4.0</version> |
| 156 | <configuration> |
| 157 | <instructions> |
| 158 | <Bundle-SymbolicName>com.datastax.driver.osgi</Bundle-SymbolicName> |
| 159 | <Bundle-Version>${project.version}</Bundle-Version> |
| 160 | <Export-Package>com.datastax.driver.osgi.api,!com.datastax.driver.osgi.impl</Export-Package> |
| 161 | <Bundle-Activator>com.datastax.driver.osgi.impl.Activator</Bundle-Activator> |
| 162 | <_include>-osgi.bnd</_include> |
| 163 | </instructions> |
| 164 | <supportedProjectTypes> |
| 165 | <supportedProjectType>jar</supportedProjectType> |
| 166 | <supportedProjectType>bundle</supportedProjectType> |
| 167 | <supportedProjectType>pom</supportedProjectType> |
| 168 | </supportedProjectTypes> |
| 169 | </configuration> |
| 170 | <executions> |
| 171 | <execution> |
| 172 | <id>bundle-manifest</id> |
| 173 | <phase>compile</phase> |
| 174 | <goals> |
| 175 | <goal>manifest</goal> |
| 176 | </goals> |
| 177 | </execution> |
| 178 | </executions> |
| 179 | </plugin> |
| 180 | </plugins> |
| 181 | </build> |
| 182 | |
| 183 | <profiles> |
| 184 | <profile> |
| 185 | <!-- Skip test by default, short or long is required to run unit tests since pax-exam will throw exception if it encounters a |
| 186 | test with no matching methods. --> |
| 187 | <id>default</id> |
| 188 | <properties> |
| 189 | <env>default</env> |
| 190 | </properties> |
| 191 | <activation> |
| 192 | <activeByDefault>true</activeByDefault> |
| 193 | </activation> |
| 194 | <build> |
| 195 | <plugins> |
| 196 | <plugin> |
| 197 | <groupId>org.apache.maven.plugins</groupId> |
| 198 | <artifactId>maven-surefire-plugin</artifactId> |
| 199 | <version>2.16</version> |
| 200 | <configuration> |
| 201 | <skip>true</skip> |
| 202 | </configuration> |
| 203 | </plugin> |
| 204 | <plugin> |
| 205 | <groupId>org.apache.maven.plugins</groupId> |
| 206 | <artifactId>maven-failsafe-plugin</artifactId> |
| 207 | <version>2.16</version> |
| 208 | <configuration> |
| 209 | <skip>true</skip> |
| 210 | </configuration> |
| 211 | </plugin> |
| 212 | <plugin> |
| 213 | <artifactId>maven-compiler-plugin</artifactId> |
| 214 | <configuration> |
| 215 | <compilerArgument>-Xlint:all</compilerArgument> |
| 216 | <showWarnings>true</showWarnings> |
| 217 | <showDeprecation>true</showDeprecation> |
| 218 | </configuration> |
| 219 | </plugin> |
| 220 | </plugins> |
| 221 | </build> |
| 222 | </profile> |
| 223 | <profile> |
| 224 | <id>short</id> |
| 225 | <properties> |
| 226 | <test.groups>unit,short</test.groups> |
| 227 | <test.skip>false</test.skip> |
| 228 | </properties> |
| 229 | </profile> |
| 230 | |
| 231 | <profile> |
| 232 | <id>long</id> |
| 233 | <properties> |
| 234 | <test.groups>unit,short,long</test.groups> |
| 235 | <test.skip>false</test.skip> |
| 236 | </properties> |
| 237 | </profile> |
| 238 | </profiles> |
| 239 | |
| 240 | <licenses> |
| 241 | <license> |
| 242 | <name>Apache 2</name> |
| 243 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 244 | <distribution>repo</distribution> |
| 245 | <comments>Apache License Version 2.0</comments> |
| 246 | </license> |
| 247 | </licenses> |
| 248 | |
| 249 | <scm> |
| 250 | <connection>scm:git:git@github.com:datastax/java-driver.git</connection> |
| 251 | <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection> |
| 252 | <url>https://github.com/datastax/java-driver</url> |
| 253 | <tag>HEAD</tag> |
| 254 | </scm> |
| 255 | |
| 256 | <developers> |
| 257 | <developer> |
| 258 | <name>Various</name> |
| 259 | <organization>DataStax</organization> |
| 260 | </developer> |
| 261 | </developers> |
| 262 | </project> |
| 263 | |