Specific errors:
[ERROR] Failed to execute goal. Org. Apache maven. Plugins: maven — the compiler plugin: 3.8.0: testCompile (default – testCompile) on Project TeavM-tests: Fatal error compiling: Target release: 11 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [1] Help cwiki.apache.org/confluence/… [ERROR] [ERROR] After correcting the problems, You can resume the build with the command [ERROR] mvn-rf :teavm-tests
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${java-tests.version}</source>
<target>${java-tests.version}</target>
</configuration>
</plugin>
Copy the code
It is wrong to change source/target to 1.8. There should be a configuration like this in pom.xml:
< Java version > 1.8 < / Java version > < Java - tests. Version > 11 < / Java - tests. Version >Copy the code
I changed 11 to 1.8, but I can’t find some interfaces. So, my solution was to improve Java. Version.