One or more constraints have not been satisfied

位置:首页>文章>详情   分类: 教程分享 > Java教程   阅读(2215)   2023-03-28 11:29:14
原因是因为jdk版本不一致导致的
解决方法,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>
标签: maven eclipse
地址:https://www.leftso.com/article/69.html

相关阅读

eclipse 构建maven项目,步骤详细易懂
eclipse启动报错"reload maven project' has encountered a proble" 解决方法,怎么办?
Java编程之通过eclipse创建maven自定义项目原型模板(Archetype),Java编程,maven自定义项目模板
eclipse+maven环境报错 One or more constraints have not been satisfied解决办法
Remote System Explorer Operation导致eclipse慢或者卡死eclipse解决,eclipse
eclipse复制高亮代码到word中
java编程之maven打包Java source jar包
eclipse如何关闭java代码中某些部分/片段代码不被格式化,eclipse,代码部分不被格式化,How to turn off the Eclipse code formatter for...
Vert.x 入门教程通过maven shade plugin插件打包发布项目,上一篇文章,我们主要初步的了解了下eclipse vert.x是什么有什么用。当然一个程序编写完成后最终还是需要打...
Vert.x java 入门,Vert.x这个框架在常规的web业务开发中估计还不是很成熟。但是了解了他的一些原理我觉得可以有一番作为。今天主要简单讲解下eclipse Vert.x是什么有什么...