Commit 5dea2b884caa6e34562d4d7046db19597e66b492
1 parent
d29e9808
修改项目的打包脚本
Showing
1 changed file
with
31 additions
and
36 deletions
pom.xml
| ... | ... | @@ -217,42 +217,37 @@ |
| 217 | 217 | <build> |
| 218 | 218 | <!-- 设置构建的 jar 包名 --> |
| 219 | 219 | <finalName>${project.artifactId}</finalName> |
| 220 | - | |
| 221 | - <pluginManagement> | |
| 222 | - <plugins> | |
| 223 | - <!-- 提供给 mapstruct 使用 --> | |
| 224 | - <plugin> | |
| 225 | - <groupId>org.apache.maven.plugins</groupId> | |
| 226 | - <artifactId>maven-compiler-plugin</artifactId> | |
| 227 | - <version>${maven-compiler-plugin.version}</version> | |
| 228 | - <configuration> | |
| 229 | - <source>${java.version}</source> <!-- or higher, depending on your project --> | |
| 230 | - <target>${java.version}</target> <!-- or higher, depending on your project --> | |
| 231 | - <annotationProcessorPaths> | |
| 232 | - <path> | |
| 233 | - <groupId>org.mapstruct</groupId> | |
| 234 | - <artifactId>mapstruct-processor</artifactId> | |
| 235 | - <version>${mapstruct.version}</version> | |
| 236 | - </path> | |
| 237 | - <path> | |
| 238 | - <groupId>org.projectlombok</groupId> | |
| 239 | - <artifactId>lombok</artifactId> | |
| 240 | - <version>${lombok.version}</version> | |
| 241 | - </path> | |
| 242 | - </annotationProcessorPaths> | |
| 243 | - </configuration> | |
| 244 | - </plugin> | |
| 245 | - | |
| 246 | - <!-- 打包 --> | |
| 247 | - <plugin> | |
| 248 | - <groupId>org.springframework.boot</groupId> | |
| 249 | - <artifactId>spring-boot-maven-plugin</artifactId> | |
| 250 | - <configuration> | |
| 251 | - <fork>true</fork> | |
| 252 | - </configuration> | |
| 253 | - </plugin> | |
| 254 | - </plugins> | |
| 255 | - </pluginManagement> | |
| 220 | + <plugins> | |
| 221 | + <!-- 打包 --> | |
| 222 | + <plugin> | |
| 223 | + <groupId>org.springframework.boot</groupId> | |
| 224 | + <artifactId>spring-boot-maven-plugin</artifactId> | |
| 225 | + <version>${spring.boot.version}</version> | |
| 226 | + </plugin> | |
| 227 | + | |
| 228 | + <!-- 提供给 mapstruct 使用 --> | |
| 229 | + <plugin> | |
| 230 | + <groupId>org.apache.maven.plugins</groupId> | |
| 231 | + <artifactId>maven-compiler-plugin</artifactId> | |
| 232 | + <version>${maven-compiler-plugin.version}</version> | |
| 233 | + <configuration> | |
| 234 | + <source>${java.version}</source> <!-- or higher, depending on your project --> | |
| 235 | + <target>${java.version}</target> <!-- or higher, depending on your project --> | |
| 236 | + <annotationProcessorPaths> | |
| 237 | + <path> | |
| 238 | + <groupId>org.mapstruct</groupId> | |
| 239 | + <artifactId>mapstruct-processor</artifactId> | |
| 240 | + <version>${mapstruct.version}</version> | |
| 241 | + </path> | |
| 242 | + <path> | |
| 243 | + <groupId>org.projectlombok</groupId> | |
| 244 | + <artifactId>lombok</artifactId> | |
| 245 | + <version>${lombok.version}</version> | |
| 246 | + </path> | |
| 247 | + </annotationProcessorPaths> | |
| 248 | + </configuration> | |
| 249 | + </plugin> | |
| 250 | + </plugins> | |
| 256 | 251 | </build> |
| 257 | 252 | |
| 258 | 253 | </project> | ... | ... |