mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Document how to unset maven.compiler.release
Closes gh-37993
This commit is contained in:
parent
045a624bc7
commit
8bb2228adf
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user