错误内容
[INFO] Apache Atlas Impala Bridge Shim .................... SUCCESS [ 0.255 s]
[INFO] Apache Atlas Impala Bridge ......................... SUCCESS [ 2.757 s]
[INFO] Apache Atlas Distribution .......................... FAILURE [ 0.896 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:28 min
[INFO] Finished at: 2023-05-17T09:14:16+08:00
[INFO] Final Memory: 242M/1785M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.5:jar (default-jar) on project atlas-distro: Error assembling JAR: 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 :atlas-distro
Process finished with exit code 1
打包方式![在这里插入图片描述](https://img-blog.csdnimg.cn/6d7a03993e954cff84e84ac9a56bdb47.png)
出现以上错误是,在IDEA中使用的打包命令为:
mvn package -DskipTests -Denforcer.skip=true
打包说明
Maven有三套独立的生命周期,他们并不是一个整体,这三个生命周期之间相互独立,不存在强依赖关系,每套生命周期又有多个阶段组成。
在执行MAVEN命令时,mvn命令之后使用的参数便是MAVEN的各个阶段。
mvn 阶段名(示例说明如下)
①. mvn compile:默认执行deault生命周期的compile之前的所有阶段(含compile阶段),共7个阶段。
②. mvn clean package:默认执行clean生命周期的clean之前的所有阶段(含clean阶段)和default生命周期中package阶段之前的所有阶段(含package阶段),共2 + 17个阶段。
解决方案
在IDEA中使用如下的打包命令为:
mvn clean package -DskipTests -Denforcer.skip=true