I have a trivial Maven project:
src
└── main
└── java
└── module-info.java
pom.xml
pom.xml:
org.
If you are using spring boot then add these tags in pom.xml.
org.springframework.boot
spring-boot-maven-plugin
and
UTF-8
UTF-8
``10
You can change java version to 11 or 13 as well in
tag.
Just add below tags in pom.xml
UTF-8
UTF-8
11
You can change the 11 to 10, 13 as well to change java version. I am using java 13 which is latest. It works for me.