[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project SampleTest: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test failed: Unsupported class file major version 61 -> [Help 1]
but when I delete module-info.java
then everything goes without error. Any ideas how can I achieve java modules with spring boot? :)
You have to overwrite the used maven-surefire-plugin version because the version defined by spring boot parent is too old.
<build><pluginManagement><plugins><plugin><artifactId>maven-surefire-plugin</artifactId><version>3.0.0-M5</version></plugin></plugins></pluginManagement>...