Chapter 6. Configuring the Java compiler
By default, the Quarkus Maven plug-in passes compiler flags to the javac command from the maven-compiler-plugin plug-in.
Procedure
To customize the compiler flags used in development mode, add a
configurationsection to thepluginblock and set thecompilerArgsproperty. You can also setsource,target, andjvmArgs. For example, to pass--enable-previewto both the JVM andjavacadd the following lines:<plugin> <groupId>io.quarkus</groupId> <artifactId>quarkus-maven-plugin</artifactId> <version>${quarkus-plugin.version}</version> <configuration> <source>${maven.compiler.source}</source> <target>${maven.compiler.target}</target> <compilerArgs> <arg>--enable-preview</arg> </compilerArgs> <jvmArgs>--enable-preview</jvmArgs> </configuration> ... </plugin>