Seems to need a build section in top level pom
Hi,
I am no expert on mvn or pom's but seems like the top level pom.xml needs a section indicating which compiler version should be used, my installation (ubuntu 22.04) defaulted to version 5 which do not work.
There is likely a better way to get the version numbers out through variables, but adding this to top level pom.xml made it to build & test:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version> <!-- Ensure the correct version -->
<configuration>
<source>17</source> <!-- Or your desired Java version -->
<target>17</target> <!-- Or your desired Java version -->
</configuration>
</plugin>
</plugins>
</build>
Greetz
Edited by Petrus Hyvönen