|
23 | 23 | <artifactId>cassandra-driver-examples-parent</artifactId> |
24 | 24 | <version>3.0.1-SNAPSHOT</version> |
25 | 25 | </parent> |
| 26 | + |
26 | 27 | <artifactId>cassandra-driver-examples-osgi</artifactId> |
27 | 28 | <packaging>bundle</packaging> |
28 | 29 | <name>DataStax Java Driver for Apache Cassandra Examples - OSGi</name> |
29 | 30 | <description>An example of using DataStax Java Driver in an OSGi container.</description> |
30 | 31 | <url>https://github.com/datastax/java-driver</url> |
31 | 32 |
|
32 | 33 | <properties> |
| 34 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
33 | 35 | <felix.version>4.6.0</felix.version> |
| 36 | + <!-- more recent version require JDK7+ --> |
34 | 37 | <pax-exam.version>3.6.0</pax-exam.version> |
35 | 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> |
36 | 46 | <main.basedir>${project.parent.parent.basedir}</main.basedir> |
37 | 47 | </properties> |
38 | 48 |
|
39 | 49 | <dependencies> |
| 50 | + |
40 | 51 | <dependency> |
41 | 52 | <groupId>com.datastax.cassandra</groupId> |
42 | 53 | <artifactId>cassandra-driver-core</artifactId> |
43 | 54 | <version>${project.parent.version}</version> |
44 | 55 | </dependency> |
45 | 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 | + |
46 | 69 | <dependency> |
47 | 70 | <groupId>org.apache.felix</groupId> |
48 | 71 | <artifactId>org.apache.felix.framework</artifactId> |
|
131 | 154 | <artifactId>logback-core</artifactId> |
132 | 155 | <version>${logback.version}</version> |
133 | 156 | </dependency> |
| 157 | + |
134 | 158 | </dependencies> |
135 | 159 |
|
136 | 160 | <build> |
| 161 | + |
137 | 162 | <plugins> |
| 163 | + |
| 164 | + <!-- |
| 165 | + this project has no unit tests; |
| 166 | + this plugin is declared just so that Maven properties |
| 167 | + get automatically passed to tests run with IntelliJ |
| 168 | + --> |
| 169 | + <plugin> |
| 170 | + <groupId>org.apache.maven.plugins</groupId> |
| 171 | + <artifactId>maven-surefire-plugin</artifactId> |
| 172 | + <version>2.18.1</version> |
| 173 | + <configuration> |
| 174 | + <skip>true</skip> |
| 175 | + <systemPropertyVariables> |
| 176 | + <cassandra.version>${cassandra.version}</cassandra.version> |
| 177 | + <ipprefix>${ipprefix}</ipprefix> |
| 178 | + </systemPropertyVariables> |
| 179 | + </configuration> |
| 180 | + </plugin> |
| 181 | + |
138 | 182 | <plugin> |
139 | 183 | <groupId>org.apache.maven.plugins</groupId> |
140 | 184 | <artifactId>maven-failsafe-plugin</artifactId> |
141 | | - <version>2.16</version> |
| 185 | + <version>2.18.1</version> |
| 186 | + <configuration> |
| 187 | + <skip>${test.skip}</skip> |
| 188 | + <groups>${test.groups}</groups> |
| 189 | + <systemPropertyVariables> |
| 190 | + <cassandra.version>${cassandra.version}</cassandra.version> |
| 191 | + <ipprefix>${ipprefix}</ipprefix> |
| 192 | + </systemPropertyVariables> |
| 193 | + </configuration> |
142 | 194 | <executions> |
143 | 195 | <execution> |
| 196 | + <id>default</id> |
144 | 197 | <goals> |
145 | 198 | <goal>integration-test</goal> |
146 | 199 | <goal>verify</goal> |
147 | 200 | </goals> |
148 | 201 | </execution> |
149 | 202 | </executions> |
150 | 203 | </plugin> |
| 204 | + |
151 | 205 | <plugin> |
152 | 206 | <groupId>org.apache.felix</groupId> |
153 | 207 | <artifactId>maven-bundle-plugin</artifactId> |
|
160 | 214 | <Export-Package>com.datastax.driver.osgi.api,!com.datastax.driver.osgi.impl</Export-Package> |
161 | 215 | <Bundle-Activator>com.datastax.driver.osgi.impl.Activator</Bundle-Activator> |
162 | 216 | <_include>-osgi.bnd</_include> |
| 217 | + <Import-Package><![CDATA[com.google.common*;version="[16.0.1,20)",*]]></Import-Package> |
163 | 218 | </instructions> |
164 | 219 | <supportedProjectTypes> |
165 | 220 | <supportedProjectType>jar</supportedProjectType> |
|
177 | 232 | </execution> |
178 | 233 | </executions> |
179 | 234 | </plugin> |
| 235 | + |
180 | 236 | </plugins> |
| 237 | + |
181 | 238 | </build> |
182 | 239 |
|
183 | 240 | <profiles> |
| 241 | + |
| 242 | + <profile> |
| 243 | + <id>short</id> |
| 244 | + <properties> |
| 245 | + <test.groups>unit,short</test.groups> |
| 246 | + <test.skip>false</test.skip> |
| 247 | + </properties> |
| 248 | + </profile> |
| 249 | + |
184 | 250 | <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> |
| 251 | + <id>long</id> |
188 | 252 | <properties> |
189 | | - <env>default</env> |
| 253 | + <test.groups>unit,short,long</test.groups> |
| 254 | + <test.skip>false</test.skip> |
190 | 255 | </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 | | - </plugins> |
213 | | - </build> |
214 | 256 | </profile> |
| 257 | + |
215 | 258 | </profiles> |
216 | 259 |
|
217 | 260 | <licenses> |
|
0 commit comments