...
- Enabling Java preview features in a Maven project – new task needed in a Maven-related test spec, after creating new Java Maven project, the following must be added and then check whether one or more preview features (see above) can be used in the Java editor.
<build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <compilerArgs> <arg>--enable-preview</arg> </compilerArgs> </configuration> </plugin> </plugins> </build>
- Related to the above, new hint in Java Editor to turn on Preview Features in Maven-based Java projects:
When the above is clicked, i.e., this happens when a preview feature is recognized but the POM hasn't yet been updated to support it, the following is added to the POM:<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<compilerArgs>
<arg>--enable-preview</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</build> - JaCoCo integration with Maven works again, make sure to check that.
<plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.3</version> <executions> <execution> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>report</id> <phase>prepare-package</phase> <goals> <goal>report</goal> </goals> <configuration> <outputDirectory>${project.reporting.outputDirectory}/jacoco_test</outputDirectory> </configuration> </execution> </executions> </plugin>
- Maven-based NetBeans modules can be created again, this was broken, make sure this works again correctly.
- Default JDK for Maven projects can be set.
...