alibaba / alibaba/cloud-native-app-initializer
SpringBoot脚手架创建的boot项目打包出来的jar里没有BOOT-INF文件夹
Open
- Dominant language
- Java
- Stars
- 308
- Forks
- 107
- PR merge metrics
- No merged PRs in 30d
Description
1. pom.xml问题:脚手架生成出来的项目的pom.xml里没有 parent 标签而是出现了dependencyManagement标签
2. 直接打包可以打出来jar文件但是没有走boot的插件,而且jar包里没有BOOT-INF文件夹且无法启动
我尝试修改以后就可以了:
1. 注释掉dependencyManagement标签,然后把parent标签加回来
2. 把boot插件的多余配置删掉
org.springframework.boot
spring-boot-maven-plugin
${spring-boot.version}
Contributor guide
Research direction
Start by inspecting the generated project's pom.xml and compare its dependencyManagement, parent, and spring-boot-maven-plugin entries with a working Spring Boot project. Package the generated project and verify that the resulting JAR contains BOOT-INF and can start successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100