zoukankan      html  css  js  c++  java
  • 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勾选上)

  • 相关阅读:
    阿里巴巴java开发手册学习
    策略模式
    windows常用技巧
    nginx学习
    Tomcat入门
    ThreadPoolTaskExecutor的简单使用
    linux服务器测试性能
    HAProxy1.5.x tcp example
    Haproxy开启日志
    Fix rpmdb: Thread died in Berkeley DB library
  • 原文地址:https://www.cnblogs.com/DreamDrive/p/7567693.html
Copyright © 2011-2022 走看看