| | |
| | | <artifactId>spring-security-test</artifactId> |
| | | <scope>test</scope> |
| | | </dependency> |
| | | |
| | | <!-- Apache POI for Word/Excel document generation --> |
| | | <dependency> |
| | | <groupId>org.apache.poi</groupId> |
| | | <artifactId>poi</artifactId> |
| | | <version>5.2.5</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.apache.poi</groupId> |
| | | <artifactId>poi-ooxml</artifactId> |
| | | <version>5.2.5</version> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | <build> |
| | |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <skip>true</skip> |
| | | <!-- 生成可执行的胖包,便于本地直接运行 --> |
| | | <skip>false</skip> |
| | | </configuration> |
| | | <executions> |
| | | <execution> |
| | | <goals> |
| | | <goal>repackage</goal> |
| | | </goals> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | |
| | | <!-- 在打包阶段复制所有依赖到 target/lib --> |
| | |
| | | </executions> |
| | | </plugin> |
| | | |
| | | <!-- 生成可执行瘦 JAR:写入 Main-Class 与 Class-Path 指向 lib/ --> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-jar-plugin</artifactId> |
| | | <version>3.4.2</version> |
| | | <configuration> |
| | | <archive> |
| | | <manifest> |
| | | <addClasspath>true</addClasspath> |
| | | <classpathPrefix>lib/</classpathPrefix> |
| | | <mainClass>com.rongyichuang.RycBackendApplication</mainClass> |
| | | </manifest> |
| | | </archive> |
| | | </configuration> |
| | | </plugin> |
| | | <!-- 使用 Spring Boot repackage 生成可执行胖包,移除自定义 Jar 清单以避免冲突 --> |
| | | </plugins> |
| | | </build> |
| | | </project> |