Add the following parameters to pom.xml file (without using the lower frame)
<build>
<!-- 导出的最终项目名称 -->
<finalName>project</finalName>
<plugins>
<!-- 导出的项目所使用的的jdk的版本 -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
(If you copy the above, it is estimated will complain, because I'm being given, I do not know why, obviously is the same code, it may not allow spaces )
usable
<build>
<!-- 导出的最终项目名称 -->
<finalName>project0408</finalName>
<plugins>
<!-- 导出的项目所使用的的jdk的版本 -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
Note: If error, then right-click the project name maven -> update project
Start Export:
Right-click the project name -> run as -> maven install
When you see:
[INFO] Downloaded: http://maven.aliyun.com/nexus/content/groups/public/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.jar (12 KB at 30.8 KB/sec)
......
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.055 s
[INFO] Finished at: 2020-04-07T22:32:08+08:00
[INFO] Final Memory: 11M/158M
[INFO] ------------------------------------------------------------------------
Description Export Success