Maven项目报错:Missing artifact****和ArtifactDescriptorException: Failed to read artifact descriptor for***和Cannot change version of project facet Dynamic w

简介:

一.关于Cannot change version of project facet Dynamic web module to 2.5

具体查看博客:http://blog.csdn.net/steveguoshao/article/details/38414145

但是按照以上博文进行修改的时候需要根据自己本地jdk的版本来改. 如果你的本地是JDK1.7,就不要按照博文中写的把文件中的1.5改成1.6,而要把1.5改成1.7

二.Missing artifact****和ArtifactDescriptorException: Failed to read artifact descriptor for***

这两个bug我是在项目的pom.xml文件的porject节点下中指定jdk版本和编译版本来解决的

复制代码
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <encoding>UTF-8</encoding>
        <java.version>1.7</java.version>    
        <maven.compiler.source>1.7</maven.compiler.source>
        <maven.compiler.target>1.7</maven.compiler.target>
    </properties>  
复制代码

复制代码
    <build>  
        <plugins>  
            <plugin>  
                <groupId>org.apache.maven.plugins</groupId>  
                <artifactId>maven-compiler-plugin</artifactId>  
                <configuration>  
                    <source>1.7</source>  
                    <target>1.7</target>  
                </configuration>  
            </plugin>  
        </plugins>  
    </build>  
复制代码

 右键->mvn->Update Maven Project(把Force Update of Snapshots/Releases勾选上)


本文转自SummerChill博客园博客,原文链接:http://www.cnblogs.com/DreamDrive/p/7567693.html,如需转载请自行联系原作者

相关文章
|
2月前
|
Java Maven
Maven配置以及IDEA设置(Cannot resolve plugin org.apache.maven.plugins:报错)
Maven配置以及IDEA设置(Cannot resolve plugin org.apache.maven.plugins:报错)
135 1
|
2月前
|
Java Maven 开发工具
maven导入项目出现Unable to import maven project: See logs for details
maven导入项目出现Unable to import maven project: See logs for details
27 0
maven导入项目出现Unable to import maven project: See logs for details
|
21天前
|
Java Maven
@Date不管用怎么办,想少写get和setter方法,reate方法创建不了怎么办,Cannot resolve method ‘setxxx‘ in ‘xxx‘不管用怎么办,到Maven创建插件
@Date不管用怎么办,想少写get和setter方法,reate方法创建不了怎么办,Cannot resolve method ‘setxxx‘ in ‘xxx‘不管用怎么办,到Maven创建插件
|
22天前
|
Java Maven
Cannot resolve plugin org.apache.maven.plugins:maven-site-plugin:3.3
Cannot resolve plugin org.apache.maven.plugins:maven-site-plugin:3.3
|
22天前
|
IDE Java Maven
Unable to import Maven project,Maven依赖全爆红的问题解决
Unable to import Maven project,Maven依赖全爆红的问题解决
|
2月前
|
Java Maven
Maven实战 Item4 -- Maven核心概念_maven junit version(1)
Maven实战 Item4 -- Maven核心概念_maven junit version(1)
|
2月前
|
Java Maven
Cannot access repo1 (http://repo1.maven.org/maven2) in offline mode and the
Cannot access repo1 (http://repo1.maven.org/maven2) in offline mode and the
|
2月前
|
Java Maven
maven:the pom for XXX is missing, no dependency information available
maven:the pom for XXX is missing, no dependency information available
152 0
|
9月前
|
Java 数据库连接 网络安全
已解决 IDEA Maven 项目中 “Could not find artifact“ 问题的常见情况和解决方案
已解决 IDEA Maven 项目中 “Could not find artifact“ 问题的常见情况和解决方案
6329 0
|
2月前
|
Java Maven
IntelliJ IDEA 新建/创建Maven Web项目Project
IntelliJ IDEA 新建/创建Maven Web项目Project
45 0