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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Missing Java 9 support option of clover-maven-plugin

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

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 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Opsgenie

Investigate deployment-related incidents with Bamboo and Opsgenie together

Back in April of last year one of the major product announcements from Opsgenie was the launch of the Incident investigation view which created a deep connection between Bitbucket and Opsgenie, empow...

90 views 1 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you