Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Missing Java 9 support option of clover-maven-plugin

WoonDuk Kang August 8, 2018

clover-maven-plugin version : 4.3.0

error log 

C:\project\master\pinpoint\bootstrap-java9>mvn clover:setup
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building pinpoint-bootstrap-java9 1.8.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- clover-maven-plugin:4.3.0:setup (default-cli) @ pinpoint-bootstrap-java9 ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.009 s
[INFO] Finished at: 2018-08-09T15:24:53+09:00
[INFO] Final Memory: 12M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openclover:clover-maven-plugin:4.3.0:setup (default-cli) on project pinpoint-bootstrap-java9: Unsupported java language level version [1.9]. Valid values are [1.3], [1.4], [1.5], [1.6], [1.7] and [1.8] -> [Help 1]

 

com.atlassian.maven.plugin.clover.internal.instrumentation.AbstractInstrumenter.java 

line : 231

final String javaLevel = getConfiguration().getJdk();
if (javaLevel != null) {
// 9 is missing
// if (javaLevel.matches("1\\.[345679809]")) {
if (javaLevel.matches("1\\.[345678]")) {
parameters.add("--source");
parameters.add(javaLevel);
} else {
throw new MojoExecutionException("Unsupported java language level version [" + javaLevel
+ "]. Valid values are [1.3], [1.4], [1.5], [1.6], [1.7] and [1.8]");
}
}

Is this a bug in clover-maven-plugin 4.3.0 ?

 

1 answer

0 votes
Grzegorz Lewandowski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 13, 2018

Hello, Atlassian Clover is now free of charge and open source. You can read more information about it here. Atlassian Clover never supported JDK 9 (latest release 4.1.2 was on 11 Oct 2016, whereby JDK 9 was in general availability since September 2017).


The tool you're using is one of the forks of Atlassian Clover. More information on project's site. Feel free to raise problems directly on OpenClover site. Or leverage the fact that's open source project and fix the problem by yourself.

 

Cheers,

Grzegorz Lewandowski 

Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 27, 2018

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events