解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
来源:互联网 发布:三鹿奶粉危机公关知乎 编辑:程序博客网 时间:2024/06/05 16:34
应用版本:eclipse luna4.4.1
JDK:1.8
Maven:3.2.5
问题现象:
1、编译工程后总该是显示下面两个错误:
One or more constraints have not been satisfied.
Deployment Assembly跟java版本不匹配
解决方案:
在pom.xml中添加下面内容即可,同时也可以解决Maven->update project默认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></prof
2、使用Eclipse自动Maven插件更新jar包失败(Nexus仓库配置都正常),提示如下错误:
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.148 s
[INFO] Finished at: 2014-12-30T17:38:07+08:00
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugins:maven-resources-plugin:jar:2.6 in http://localhost:8082/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
huige 18:06:21
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories.
......
解决方案:
更新Maven包到最新版本即可(JDK1.8+Eclipse luna4.4.1搭配建议更新Maven到3.2.5版本之后)
preferences-》Maven-》Installations 选择最新的Maven地址
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse中MAVEN项目提示One or more constraints have not been satisfied
- 解决One or more constraints have not been satisfied问题
- maven - Type One or more constraints have not been satisfied
- Maven错误:One or more constraints have not been satisfied
- One or more constraints have not been satisfied.(SAPUI5+Eclipse)
- maven项目,提示One or more constraints have not been satisfied
- 解决maven项目One or more constraints have not been satisfied
- one or more constraints have not been satisfied
- one or more constraints have not been satisfied
- One or more constraints have not been satisfied.
- Type One or more constraints have not been satisfied
- One or more constraints have not been satisfied.
- One or more constraints have not been satisfied.
- Type One or more constraints have not been satisfied.
- C++初识
- AOP实现入库异常回滚
- opencv双目相机拍图保存
- Python、/C/C++ Socket编程实例
- 2017acm福建省赛FZU 2278 YYS
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- Javascript中的位操作
- ubuntu14.04中安装opencv2.4.13
- 当SearchView搜索的listView使用自定义适配器时,自定义setFilterText()方法(模糊查询筛选)
- BaseActivity和BaseFragment封装
- 统计同成绩学生人数
- Java中assert断言介绍
- gcd以及扩展gcd详解
- Verilog任意整数分频器