Eclipse 创建maven项目 报错 one or more constraints have not been satisfied
首先 在 pom.xml > plugins 中添加
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>UTF8</encoding> </configuration> </plugin>
注意 version 应该挑选下面网址的最新版本
否则会报错奇葩错误..
https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin