Skip to content

Commit

Permalink
Document how to unset maven.compiler.release
Browse files Browse the repository at this point in the history
Closes gh-37993
  • Loading branch information
mhalbritter committed Oct 27, 2023
1 parent 045a624 commit 8bb2228
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[[spring-boot-maven-plugin-documentation]]
= Spring Boot Maven Plugin Documentation
Stephane Nicoll; Andy Wilkinson; Scott Frederick
Stephane Nicoll; Andy Wilkinson; Scott Frederick; Moritz Halbritter
v{gradle-project-version}
:!version-label:
:doctype: book
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,24 @@ This dependency management lets you omit `<version>` tags for those dependencies
NOTE: Since the `application.properties` and `application.yml` files accept Spring style placeholders (`${...}`), the Maven filtering is changed to use `@..@` placeholders.
(You can override that by setting a Maven property called `resource.delimiter`.)

[NOTE]
====
The `spring-boot-starter-parent` sets the `maven.compiler.release` property, which restricts the `--add-exports`, `--add-reads`, and `--patch-module` options https://openjdk.org/jeps/247[if they modify system modules].
In case you need to use those options, unset `maven.compiler.release`:
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
----
<maven.compiler.release></maven.compiler.release>
----
and then configure the source and the target options instead:
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
----
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
----
====

[[using.parent-pom]]
== Inheriting the Starter Parent POM
Expand Down

0 comments on commit 8bb2228

Please sign in to comment.