1. 程式人生 > >Eclipse 建立maven專案 報錯 one or more constraints have not been satisfied

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