Skip to content

Commit

Permalink
[build, core, accumulo, couchbase2, hbase10, orientdb, asynchbase] fi…
Browse files Browse the repository at this point in the history
…xes for jdk9

* in couchbase2 work around ReactiveX/RxJava#3824
* accumulo test hangs, so skip tests
* hbase10 and asynchbase test crashes with unknown class version, so skip tests
* orientdb tests fail, so skip
* core jar-with-deps fails, so keep them broken out

fixes brianfrankcooper#704, fixes brianfrankcooper#705
  • Loading branch information
busbey committed Apr 30, 2016
1 parent 7f0259f commit cb71325
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ services:


# Use the Container based infrastructure.
sudo: false
sudo: false
2 changes: 2 additions & 0 deletions accumulo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ LICENSE file.
<properties>
<!-- This should match up to the one from your Accumulo version -->
<hadoop.version>2.2.0</hadoop.version>
<!-- Tests do not run on jdk9 -->
<skipJDK9Tests>true</skipJDK9Tests>
</properties>
<dependencies>
<dependency>
Expand Down
19 changes: 18 additions & 1 deletion asynchbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ LICENSE file.
<artifactId>asynchbase-binding</artifactId>
<name>AsyncHBase Client Binding for Apache HBase</name>

<properties>
<!-- Tests do not run on jdk9 -->
<skipJDK9Tests>true</skipJDK9Tests>
</properties>

<dependencies>
<dependency>
<groupId>org.hbase</groupId>
Expand Down Expand Up @@ -79,13 +84,25 @@ LICENSE file.
<artifactId>hbase-testing-util</artifactId>
<version>${hbase10.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
<version>${hbase10.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
Expand All @@ -102,4 +119,4 @@ LICENSE file.
<scope>test</scope>
</dependency>
</dependencies>
</project>
</project>
17 changes: 17 additions & 0 deletions binding-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ LICENSE file.
<module>datastore-specific-descriptor</module>
</modules>

<properties>
<!-- See the test-on-jdk9 profile below. Default to 'jdk9 works' -->
<skipJDK9Tests>false</skipJDK9Tests>
</properties>

<build>
<pluginManagement>
<plugins>
Expand Down Expand Up @@ -127,6 +132,18 @@ LICENSE file.
</plugins>
</build>
</profile>
<!-- If the binding doesn't work with jdk9, it should redefine the
skipJDK9 property
-->
<profile>
<id>tests-on-jdk9</id>
<activation>
<jdk>9</jdk>
</activation>
<properties>
<skipTests>${skipJDK9Tests}</skipTests>
</properties>
</profile>
</profiles>
</project>

21 changes: 0 additions & 21 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,26 +68,5 @@ LICENSE file.
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven.assembly.version}</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ private Status scanSpecificFields(final String table, final String startkey, fin
*/
private void waitForMutationResponse(final Observable<? extends Document<?>> input) {
if (!syncMutResponse) {
input.subscribe(new Subscriber<Document<?>>() {
((Observable<Document<?>>)input).subscribe(new Subscriber<Document<?>>() {
@Override
public void onCompleted() {
}
Expand Down
16 changes: 16 additions & 0 deletions hbase10/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,21 @@ LICENSE file.
<artifactId>hbase10-binding</artifactId>
<name>HBase 1.0 DB Binding</name>

<properties>
<!-- Tests do not run on jdk9 -->
<skipJDK9Tests>true</skipJDK9Tests>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
<version>${hbase10.version}</version>
<exclusions>
<exclusion>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.yahoo.ycsb</groupId>
Expand All @@ -51,6 +61,12 @@ LICENSE file.
<artifactId>hbase-testing-util</artifactId>
<version>${hbase10.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
4 changes: 4 additions & 0 deletions orientdb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ LICENSE file.
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>
<properties>
<!-- Tests do not run on jdk9 -->
<skipJDK9Tests>true</skipJDK9Tests>
</properties>
<dependencies>
<dependency>
<groupId>com.yahoo.ycsb</groupId>
Expand Down

0 comments on commit cb71325

Please sign in to comment.