Java 16: a minimalistic Apache Maven / pom.xml

To use Java 16 with Apache Maven, you will have to set the following properties:


With the following pom.xml:


you should be able to use e.g. text blocks:

public class Java16Test {
    public void hello() {
        var message = """
            hello, java 16


Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments