One or more constraints have not been satisfied

One or more constraints have not been satisfied

解决方法,pom.xm指定jdk版本:

<profiles>
    <profile>
        <id>jdk-1.8</id>
        <!-- 另外一种激活方式 -->
        <activation>
            <activeByDefault>true</activeByDefault>
            <jdk>1.8</jdk>
        </activation>
        <properties>
            <maven.compiler.source>1.8</maven.compiler.source>
            <maven.compiler.target>1.8</maven.compiler.target>                     
       <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
        </properties>
    </profile>
</profiles>
One or more constraints have not been satisfied

相关文章:

你感兴趣的文章:

标签云: