question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

maven.compiler.source & maven.compiler.target 8

See original GitHub issue

These two properties are defined in root pom.xml, but shouldn’t both be set to 11? Furthermore, maven.compiler.release should be used instead, which also makes sure that you don’t use JDK 12+ APIs.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ppalagacommented, Jan 15, 2021

it’s always a bit frustrating if you think you’re done (locally), just to see CI failing after the push

I’d find it more frustrating to have slow local build 😃

0reactions
famodcommented, Jan 17, 2021

I’ve given up on this for now:

  • release doesn’t work in client due to:
    [ERROR] COMPILATION ERROR :
    [INFO] -------------------------------------------------------------
    [ERROR] exporting a package from system module java.base is not allowed with --release
    [INFO] 1 error
    
  • <release>8</release> doesn’t work in daemon due to:
    package sun.misc does not exist
    
    See also: https://stackoverflow.com/a/60172333/9529981 (which suggest adding an export, which would yield the same problem as in client) Maybe I’m wrong, but this smells like a toolchain and/or mutli-release jar problem.
  • sniffer signatures only go as far as 1.8
Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting the -source and -target of the Java Compiler
Sometimes when you may need to compile a certain project to a different version than what you are currently using. The javac can...
Read more >
Setting the Java Version in Maven - Baeldung
The Maven compiler accepts this command with –target and –source versions. If we want to use the Java 8 language features, the –source...
Read more >
How to tell Maven to use Java 8 - Mkyong.com
In pom.xml , defined this maven.compiler.source properties to tell Maven to use Java 8 to compile the project.
Read more >
Specifying Java version in maven - differences between ...
How to specify the JDK version? Use any of three ways: (1) Spring Boot feature, or use Maven compiler plugin with either (2)...
Read more >
How to force JDK 1.8 compliance in a Maven POM example
Force Eclipse and Maven to use a Java 8 JDK compiler--> <properties> ... specify the release version of Java rather than source and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found