Skip to content

Commit

Permalink
[build, core, accumulo, couchbase2, hbase10] fixes for jdk9
Browse files Browse the repository at this point in the history
* in couchbase2 work around ReactiveX/RxJava#3824
* accumulo test hangs, so skip tests
* hbase10 test crashes with unknown class version, so skip tests
* core jar-with-deps fails, so keep them broken out
* add jdk9 to travis

fixes brianfrankcooper#705
  • Loading branch information
busbey committed Apr 16, 2016
1 parent 4e37e50 commit 736171e
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 23 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jdk:
- oraclejdk8
- oraclejdk7
- openjdk7
- oraclejdk9

install: mvn install -q -DskipTests=true

Expand All @@ -35,4 +36,4 @@ services:


# Use the Container based infrastructure.
sudo: false
sudo: false
11 changes: 11 additions & 0 deletions accumulo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,15 @@ LICENSE file.
</testResource>
</testResources>
</build>
<profiles>
<profile>
<id>tests-do-not-work-on-jdk9</id>
<activation>
<jdk>9</jdk>
</activation>
<properties>
<skipTests>true</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 @@ -63,26 +63,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
23 changes: 23 additions & 0 deletions hbase10/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ LICENSE file.
<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 +57,23 @@ 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>
<profiles>
<profile>
<id>tests-do-not-work-on-jdk9</id>
<activation>
<jdk>9</jdk>
</activation>
<properties>
<skipTests>true</skipTests>
</properties>
</profile>
</profiles>
</project>

0 comments on commit 736171e

Please sign in to comment.