Skip to content

Document that spring-boot-starter-parent sets maven.compiler.release and how to unset it if needed #37993

@brucelwl

Description

@brucelwl

springboot 3.2.0-RC1

<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <compilerArgs> <arg>--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED</arg> <arg>--add-exports=java.base/jdk.internal.vm=ALL-UNNAMED</arg> </compilerArgs> </configuration> </plugin>

the default property <maven.compiler.release>${java.version}</maven.compiler.release>

cause error

exporting a package from system module java.base is not allowed with --release

see
image

source plexus-compiler-javac-2.13.0.jar

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions