Skip to content

Seata1.6.1,ext/apm-seata-skywalking-plugin模块在最后编译,导致首次编译打包时distribution目录下无ext子目录 #5245

@HEIBAIJIE

Description

@HEIBAIJIE
  • I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. Issue Description

由于distribution模块不依赖ext/apm-seata-skywalking-plugin模块,导致distribution先于ext/apm-seata-skywalking-plugin构建。
这导致release-seata.xml中
image

的打包动作在首次构建时不会生效。
这将进一步导致Dockerfile中的这一行
ADD ext/ /seata-server/ext
在构建镜像时会报错。

这一bug在第二次构建时会消失,因为apm-seata-skywalking-plugin在上一次构建时已经打包完成了。

Ⅱ. Describe what happened

If there is an exception, please attach the exception trace:

Just paste your stack trace here!

image
image
可以看到apm-seata-skywalking-plugin晚于distribution
image

Ⅲ. Describe what you expected to happen

预期是先构建apm-seata-skywalking-plugin再构建distribution

Ⅳ. How to reproduce it (as minimally and precisely as possible)

  1. 下载1.6.1源码包。
  2. 运行 mvn -Prelease-seata -Dmaven.test.skip=true clean install -U
  3. 观察distribution/target/seata-server-1.6.1/seata,其中没有ext子目录

Ⅴ. Anything else we need to know?

建议distribution模块依赖apm-seata-skywalking-plugin模块

Ⅵ. Environment:

  • JDK version : 1.8.0_272
  • Seata version: 1.6.1
  • OS : Windows10
  • Others: maven 3.6.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions