Payara Server is an open source middleware platform that supports reliable and secure deployments of Java EE (Jakarta EE) and MicroProfile applications in any environment: on premise, in the cloud or hybrid.
After updating the maven-compiler-plugin from version 3.8.1 to 3.13.0 using JDK17 the compiler shows a warning:
LEVEL: WARNING, MESSAGE: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.schema2beansdev.Schema2BeansProcessor' less than -source '17'
For me it looks like that org.netbeans.modules.schema2beansdev.Schema2BeansProcessor does only support JDK7 as its annotated with "@SupportedSourceVersion(SourceVersion.RELEASE_7)".
This problem only occurs if i add fish.payara.extras:payara-embedded-web:6.2024.5 to a maven project and configure the maven-compiler-plugin in pom with version 3.13.0.
Expected Outcome
The class org.netbeans.modules.schema2beansdev.Schema2BeansProcessor supports JDK 17 and no compiler warning is shown using fish.payara.extras:payara-embedded-web:6.2024.5 as dependency.
Current Outcome
maven-compiler-plugin with version 3.13.0 prodcues this warning:
LEVEL: WARNING, MESSAGE: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.schema2beansdev.Schema2BeansProcessor' less than -source '17'
Reproducer
Reproducer
1) Install OPEN JDK 17
2) Install Maven 3.9.7
3) mvn archetype:generate -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.5
4) Add this dependency to your pom.xml:
Now in the build logs you will find this warning:
"[WARNING] Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.schema2beansdev.Schema2BeansProcessor' less than -source '17'"
Brief Summary
After updating the maven-compiler-plugin from version 3.8.1 to 3.13.0 using JDK17 the compiler shows a warning: LEVEL: WARNING, MESSAGE: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.schema2beansdev.Schema2BeansProcessor' less than -source '17'
For me it looks like that org.netbeans.modules.schema2beansdev.Schema2BeansProcessor does only support JDK7 as its annotated with "@SupportedSourceVersion(SourceVersion.RELEASE_7)". This problem only occurs if i add fish.payara.extras:payara-embedded-web:6.2024.5 to a maven project and configure the maven-compiler-plugin in pom with version 3.13.0.
Expected Outcome
The class org.netbeans.modules.schema2beansdev.Schema2BeansProcessor supports JDK 17 and no compiler warning is shown using fish.payara.extras:payara-embedded-web:6.2024.5 as dependency.
Current Outcome
maven-compiler-plugin with version 3.13.0 prodcues this warning: LEVEL: WARNING, MESSAGE: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.schema2beansdev.Schema2BeansProcessor' less than -source '17' Reproducer
Reproducer
1) Install OPEN JDK 17 2) Install Maven 3.9.7 3) mvn archetype:generate -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.5 4) Add this dependency to your pom.xml:
5) mvn clean install -DskipTests
Now in the build logs you will find this warning: "[WARNING] Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.schema2beansdev.Schema2BeansProcessor' less than -source '17'"
Operating System
Windows 11
JDK Version
OPEN JDK 17
Payara Distribution
Payara Embedded Web