maven打包报错如下

来源:互联网 发布:淘宝限时抢购 编辑:程序博客网 时间:2024/05/16 13:55


1、 Error assembling WAR: A zip file cannot include itself -> [Help 1]

2、出现这个错误时因为install之前已经install过一次了,再次install的话,需要先clean,再install就不会出现下面的错误



[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project common.uosp: Error assembling WAR: A zip file cannot include itself -> [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 :common.uosp

原创粉丝点击