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

一.关于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勾选上)

原文地址:https://www.cnblogs.com/DreamDrive/p/7567693.html