MVN install reports an error in the title, which is checked in two steps:
-
- idea file – setting
-
- Maven – runner
-
- check whether the JDK version is 1.8
2. Confirm POM file configuration
<plugin>
<!-- Specify the maven compile jdk version, if not specified, maven3 default with jdk 1.5 maven2 default with jdk1.3 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<!-- In general, target and source are kept consistent, however, sometimes there are cases where target differs from source in order to allow the program to run in other versions of jdk (for low version target jdk, syntax not supported in low version jdk cannot be used in the source code) -->
<source>1.8</source> <! -- the JDK version used by the source code -->
<target>1.8</target> <! -- The compiled version of the target class file to be generated -->
<encoding>UTF-8</encoding><! -- Character set encoding -->
<skipTests>true</skipTests><! -- skip tests-->
<verbose>true</verbose>
<showWarnings>true</showWarnings>
</configuration>
</plugin>
Read More:
- Error: Java: invalid target distribution: 9 [How to Solve]
- IDEA-Error java error release version 5 not supported (How To Fix)
- Idea create Maven project Error: [error] no longer supports source option 1.5. Please use version 1.6 or higher, and the idea reports an error: error: Java does not support the error of release version 5
- [Solved] IntelliJ idea error: error: Java does not support release 5
- Spring Cloud Hoxton.SR9 gateway and reactor-netty 0.9.0.RELEASE is Incompatible [How to Solve]
- [Solved] spring source code compile error: target package does not exist
- Idea Error 404: The project ssmbuild is unavailable/the target resource cannot be found
- [Solved] Centos7 Install docker Error: iptables v1.4.21: Couldn‘t load target `DOCKER-ISOLATION‘
- [Solved] Maven Multi-Project Compile Error: The POM for xxx is invalid
- [Solved] tomcat Startup Error: java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
- How to Solve Mybatis error: invalid bound statement (not found)
- JSON parse error: invalid UTF-8 solution series [How to Solve]
- TomcatJSON parse error: Invalid UTF-8 [How to Solve]
- Byte 1 of UTF-8 sequence of error creating document instance. And bytes is invalid
- [Solved] Mybatis-Plus Error: Invalid bound statement (not found)
- [How to Solve] Invalid bound statement (not found)
- Mybatis Error: Invalid bound statement (not found)
- How to Solve FATAL ERROR in native method: JDWP on getting class status, jvmtiError=JVMTI_ERROR_WRONG_PHASE
- [Solved] error:could not open…….error a fatal exception……..
- Eclipse Error: Could not create the Java Virtual Machine Error:A fatal exception has occurred