首页 > 代码库 > eclipse中的maven web项目报错:org/codehaus/plexus/archiver/jar/JarArchiver

eclipse中的maven web项目报错:org/codehaus/plexus/archiver/jar/JarArchiver

Errors occurred during thebuild.

Errors running builder ‘Maven Project Builder‘ on project‘ebus.transaction‘.

org/codehaus/plexus/archiver/jar/JarArchiver

两种方式参考:

第一种:在pom.xml文件里的maven-compiler-plugin插件里指定版本号

<plugins>  
        <plugin>  
            <artifactId>maven-compiler-plugin</artifactId>  
            <version>2.3.2</version>  
            <configuration>  
                <source>1.6</source>  
                <target>1.6</target>  
                <encoding>UTF-8</encoding>  
            </configuration>  
        </plugin>  
    </plugins>
第二种:

(1)关闭eclipse

(2)将\.m2\repository\org\codehaus\plexus\plexus-archiver删掉只剩最新版本

(3)重启就可以了



eclipse中的maven web项目报错:org/codehaus/plexus/archiver/jar/JarArchiver