I found this bug today, too. My workaround was to set 'useSystemClassLoader' to 'false', adding this to the pom.xml:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.1</version> <configuration> <useSystemClassLoader>false</useSystemClassLoader> </configuration> </plugin> With openjdk-8-jdk version 8u181-b13-1~deb9u1 the project compiled just fine.