Skip to content
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

宿主应用和biz应用打包插件不一致 #24

Closed
nisiyong opened this issue Oct 24, 2022 · 4 comments
Closed

宿主应用和biz应用打包插件不一致 #24

nisiyong opened this issue Oct 24, 2022 · 4 comments

Comments

@nisiyong
Copy link

这个演示例子看起来已经是使用sofa-ark 2.0的模式了,打包插件也使用了spring-boot-maven-plugin,但是为啥另外一个biz应用还是使用原来的插件 sofa-ark-maven-plugin

目前使用 biz -i 并没有达到描述的效果,想确认下都是用 spring-boot-maven-plugin 是否没有问题?演示例子是否需要更新下?

@gaosaroma
Copy link
Collaborator

gaosaroma commented Oct 27, 2022

演示例子没有问题;两个都用spring-boot-maven-plugin 是有问题的。

@nisiyong
Copy link
Author

nisiyong commented Nov 4, 2022

这边修改了 spring-boot-ark-biz 的pom.xml,将其maven插件改成与 master biz 的spring-boot-maven-plugin 一致。

 <plugin>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-maven-plugin</artifactId>
     <version>2.6.6</version>

     <configuration>
         <outputDirectory>target</outputDirectory>
         <classifier>ark-biz</classifier>
     </configuration>
     <executions>
         <execution>
             <id>package</id>
             <goals>
                 <goal>repackage</goal>
             </goals>
         </execution>
     </executions>
 </plugin>

使用这个插件构建后 master biz 执行 biz -i 后无法动态加载,并且没有任何报错。
image

使用原来的 sofa-ark-maven-plugin构建后的包则可以动态加载。
image

@gaosaroma
Copy link
Collaborator

spring-boot-ark-biz 是一个 ark biz,它打包是需要使用 sofa-ark-maven-plugin的;
宿主应用需要用 spring-boot-maven-plugin 打包构建

@nisiyong
Copy link
Author

nisiyong commented Nov 5, 2022

好的 感谢解答

@nisiyong nisiyong closed this as completed Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants