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

代码本地能跑,但是打包出来的jar报错,不能在服务器上运行 #64

Open
scortLi opened this issue Apr 22, 2024 · 3 comments

Comments

@scortLi
Copy link

scortLi commented Apr 22, 2024

image

@lishangnian
Copy link

需要自己修改pom配置,
直接打包不会把sdk的module打进去,也不会包含application

@samarra765
Copy link

请问一下需要怎么改pom配置

@xiaguodong
Copy link

在smaple项目的pom下加
<build> <finalName>${project.artifactId}</finalName> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>2.7.12</version> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> </plugins> </build>

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

4 participants