-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optimize: optimize the packaging of seata-server
#3794
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #3794 +/- ##
==========================================
Coverage 40.89% 40.89%
Complexity 2984 2984
==========================================
Files 665 665
Lines 22465 22465
Branches 2794 2794
==========================================
Hits 9188 9188
Misses 12429 12429
Partials 848 848 |
<exclusions> | ||
<exclusion> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>seata-compressor-all</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
把几个seata-xxx-all
从seata-all
中移除掉,使打包时,不会提示error
信息。(不影响打包结果)
Dockerfile
seata-server
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@@ -200,11 +185,12 @@ | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-jar-plugin</artifactId> | |||
<version>3.0.2</version> | |||
<version>3.2.0</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${maven-jar-plugin.version}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3.2.0是我从spring-boot-dependencies:2.3.10.RELEASE里拿到的版本。
LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
optimize: optimize the packaging of
seata-server
.优化
seata-server
的打包方式。一)Dockerfile错误修复:
lib\
改正为target\
LICENSE-BIN
改正为LICENSE
.二)打包优化:
Dockerfile
也打包进seata-server-*.zip
中三)其他优化:
spring-boot-maven-plugin
的版本号为${spring-boot.version}
,避免打包时打印警告。seata-xxx-all
从seata-all
中移除掉,避免maven-shade-plugin
合并模块成功却提示了错误信息。另外还有一个问题,使用docker运行时,直接结束进程了。因为
seata-server.sh
的启动命令改成后台运行
了。请懂这块的大佬帮忙修复一下。目前,我自己部署时,使用了
spring-boot
化之前的命令在docker中启动的。