Failed to execute goal org.apache.maven.plugins:maven-war-plugin:3.2.2:war怎么解决?
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Failed to execute goal org.apache.maven.plugins:maven-war-plugin:3.2.2:war怎么解决?相关的知识,希望对你有一定的参考价值。
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:3.2.2:war (default-war) on project openmeetings-web: Error assembling WAR: Problem creating war: Execution exception (and the archive is probably corrupt but I could not delete it): Java heap space -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :openmeetings-web
maven打war包报错,不能执行依赖包maven-compiler-plugin:2.3.2,判断原因是缺少jar包,解决方法:
1、使用eclipse通过maven install打war包的时候,出现了下图所示的错误。
2、打开pom.xml文件,在适当位置加入下列依赖:
3、进行测试。
4、上面加入依赖之后,就可以直接打包了。
如果WEB-INF/web.xml文件存在,需要在pom.xml文件的<build>节点中,加上maven-war-plugin插件配置。
<plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>3.0.0</version> <configuration> <webResources> <resource> <directory>WebContent</directory> </resource> </webResources> </configuration> </plugin> </plugins>
如果WebContent/WEB-INF/web.xml文件不存在,则按下面的方式配置。
<plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>3.0.0</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> </configuration> </plugin> </plugins>
Maven多模块项目单独编译子模块项目时报错:Failed to execute goal on project
背景:常规的父子项目搭建的工程,参考:http://www.cnblogs.com/EasonJim/p/6863987.html
解决方法:
1、需要把parent工程,也就是package是pom的那个工程先install一下;之后再install公共引入的模块,最后就可以单独编译子模块。
2、不用install,直接编译parent项目;这种方式只能在parent项目下进行,不能单独编译子模块。
参考:
以上是关于Failed to execute goal org.apache.maven.plugins:maven-war-plugin:3.2.2:war怎么解决?的主要内容,如果未能解决你的问题,请参考以下文章
运行maven项目时出现一下问题:“ Failed to execute goal org.apache.maven.plugins“
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
maven报错---Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-c
Maven多模块项目单独编译子模块项目时报错:Failed to execute goal on project
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.1.0