A required class was missing while executing org.apache.maven.plugins:maven-war-plugin:2.1.1:war

完美解决方案:

http://stackoverflow.com/questions/18442753/a-required-class-was-missing-while-executing-org-apache-maven-pluginsmaven-war

this happened to me too after adding the version tag, that was missing, to the maven-war-plugin (not sure what version was using by default, i changed to the latest, 2.6 in my case). I had to wipe .m2/repository to have the build succeed again.

I tried first to clean the maven-filtering folder (in the repo) but then instead of a MavenFilterException i was getting an ArchiverException. So i concluded the local repository was corrupted (for a version upgrade?) and i deleted everything.

That fixed it for me. Just clean your local repo.

时间: 2024-10-04 17:17:16

A required class was missing while executing org.apache.maven.plugins:maven-war-plugin:2.1.1:war的相关文章

Eclipse is running in a JRE, but a JDK is required Some Maven plugins may not work when importing projects or updating source folders.

安装Maven后每次启动出现警告信息: Eclipse is running in a JRE, but a JDK is requiredSome Maven plugins may not work when importing projects or updating source folders. 分两步解决问题: 1. 检查Eclipse正在使用的JRE 'Window' -> 'Preferences' -> 'Java' -> 'Installed JREs' 确定正在使用

【maven】maven创建web项目-pom文件提示web.xml is missing and <failOnMissingWebXml> is set to true

使用maven创建web项目,选择war类型后,pom文件红叉 提示web.xml is missing and <failOnMissingWebXml> is set to true 也有可能: 初始创建了本项目为web项目,然后虽然把web.xml文件放在了WEB_INF下,这两个文件夹虽然放在webapp下了,但是还是报错 解决方法: 这时候需要右击项目-->Java EE Tools-->Generate Deployment Descriptor Stub.然后系统会在

org.apache.maven.plugins:maven-compiler-plugin is missing解决办法

其实这个问题也不是什么大问题,不会影响到程序的正常运行,只是warning级别的log.但是看到就不是很爽,其实这些问题不止者一个,但是原因都是一样的,都是没有指定版本信息的原因.先看看log怎么报的,如下图: 报文: pom.xml配置: 可以看到这三项plugin配置都没有注明版本号,正确的配置为: 这些版本号可以在官网找到最新的版本:http://maven.apache.org/plugins/index.html 不要问我是谁,请叫我红领巾 版权声明:本文为博主原创文章,未经博主允许不

Maven--java.lang.NoClassDefFoundError: org/codehaus/plexus/compiler/util/scan/InclusionScanException

maven报错 java.lang.NoClassDefFoundError: org/codehaus/plexus/compiler/util/scan/InclusionScanException 问题的解决方案会在文章的中间给出,请一步一步阅读. Maven是一个非常强大的构建工具,能够帮助我们自动化构建过程,从清理.编译.测试到生成报告,再到打包和部署,Maven都可以. Maven对于项目目录结构.测试用例命名方法等内容有既定的规则,只要遵循这些规则,用户在项目间切换的时候就免去了额

org.apache.maven.plugins:maven-surefire-plugin:2.12.4异常

[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project taotao-common: Execution default-test of goal org.apach

一个maven错误:org/apache/maven/shared/filtering/MavenFilteringException

电脑重启后不知道为啥eclipse中的maven不能用了,pom文件一直标红,报以下错误: Execution default-cli of goal org.apache.maven.plugins:maven-resources-plugin:2.5:copy-resources failed: A required class was missing while executing org.apache.maven.plugins:maven-resources-plugin:2.5:co

Hadoop build error java.lang.NoClassDefFoundError: org/sonatype/aether/graph/DependencyFilter

When running the command: + mvn site site:stage -DskipTests -DskipTest -DskipITs you get an error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on project hadoop-main: Execution default-site of goa

编译Sqoop2错误解决

Sqoop2的代码结构相对于Sqoop做了大幅度调整,其中编译方式也从ant+maven杂糅的方式变为依赖maven3,今天将源代码下下来,放到linux测试机器/export/build下后,运行" mvn package -Pbinary -Dhadoop.profile=200 "命令,居然出现以下错误: Downloaded: http://repo2.maven.org/maven2/org/sonatype/aether/aether-util/1.7/aether-uti

Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.0:shade

Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.0:shade (default) on project QMServer: Execution default of goal org.apache.maven.plugins:maven-shade-plugin:2.0:shade failed: A required class was missing while executing org.apach