NutzCN Logo
问答 maven打包jar出错
发布于 72天前 作者 hujun82589167 113 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

环境:nutzboot-maven-plugin2.3-SNAPSHOT NutzWk最新版 maven-3.5.2

[INFO] Including org.slf4j:slf4j-log4j12:jar:1.7.25 in the shaded jar.
[INFO] Including org.slf4j:slf4j-api:jar:1.7.25 in the shaded jar.
[INFO] Including log4j:log4j:jar:1.2.17 in the shaded jar.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] NutzWk-NB .......................................... SUCCESS [  9.100 s]
[INFO] wk-framework ....................................... SUCCESS [ 11.476 s]
[INFO] wk-app ............................................. SUCCESS [  0.014 s]
[INFO] wk-model ........................................... FAILURE [  5.380 s]
[INFO] wk-common .......................................... SKIPPED
[INFO] wk-nb-service-sys .................................. SKIPPED
[INFO] wk-nb-service-cms .................................. SKIPPED
[INFO] wk-nb-service-wx ................................... SKIPPED
[INFO] wk-nb-web-platform ................................. SKIPPED
[INFO] wk-nb-web-api ...................................... SKIPPED
[INFO] wk-nb-task ......................................... SKIPPED
[INFO] wk-nb-web-vue ...................................... SKIPPED
[INFO] wk-wiki ............................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.797 s
[INFO] Finished at: 2018-09-06T16:55:34+08:00
[INFO] Final Memory: 34M/269M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.nutz.boot:nutzboot-maven-plugin:2.3-SNAPSHOT:shade (default-cli) on project wk-model: Error creating shaded jar: duplicate entry: build.version -> [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 :wk-model

1 回复

需要在wk-nb开头的项目目录里面打包

添加回复
请先登陆
回到顶部