Maven Exec Plugin with Preview Features
问题 It's easy to compile your Java sources with --enable-preview : <!-- Enable preview features --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <release>15</release> <compilerArgs>--enable-preview</compilerArgs> </configuration> </plugin> But how can you then run exec:java ? Using <!-- Exec plugin.. run with `mvn exec:java` --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven