|
8 | 8 | <version>1.0.x.20260630-SNAPSHOT</version> |
9 | 9 | <description>基于byte-buddy生成Spring MVC 框架的Controller</description> |
10 | 10 | <packaging>jar</packaging> |
11 | | - |
12 | 11 | <!-- 开源协议采用 Apache 2.0 协议 --> |
13 | 12 | <licenses> |
14 | 13 | <license> |
15 | 14 | <name>The Apache Software License, Version 2.0</name> |
16 | 15 | <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> |
17 | 16 | </license> |
18 | 17 | </licenses> |
19 | | - |
20 | 18 | <!-- 源码仓库(SCM)信息 --> |
21 | 19 | <scm> |
22 | 20 | <connection>scm:git:https://github.com/easy-4-java/${project.artifactId}.git</connection> |
23 | 21 | <developerConnection>scm:git:https://github.com/easy-4-java/${project.artifactId}.git</developerConnection> |
24 | 22 | <url>https://github.com/easy-4-java/${project.artifactId}</url> |
25 | 23 | <tag>${project.artifactId}</tag> |
26 | 24 | </scm> |
27 | | - |
28 | 25 | <!-- 开发者信息 --> |
29 | 26 | <developers> |
30 | 27 | <developer> |
|
37 | 34 | <timezone>+8</timezone> |
38 | 35 | </developer> |
39 | 36 | </developers> |
40 | | - |
41 | 37 | <!-- 构建 Profile 配置 --> |
42 | 38 | <profiles> |
43 | 39 | <profile> |
|
46 | 42 | <jdk>[1.8,)</jdk> |
47 | 43 | </activation> |
48 | 44 | <properties> |
49 | | - <!-- Dependency versions --> |
50 | | - <additionalparam>-Xdoclint:none</additionalparam> |
51 | | - <maven.test.skip>true</maven.test.skip> |
52 | | - <!-- Maven Plugin versions --> |
53 | | - <maven-central-publishing-plugin.version>0.11.0</maven-central-publishing-plugin.version> |
54 | | - <maven-jacoco-plugin.version>0.8.15</maven-jacoco-plugin.version> |
| 45 | + <!-- Dependency versions --> |
| 46 | + <additionalparam>-Xdoclint:none</additionalparam> |
| 47 | + <maven.test.skip>true</maven.test.skip> |
| 48 | + <!-- Maven Plugin versions --> |
| 49 | + <maven-central-publishing-plugin.version>0.11.0</maven-central-publishing-plugin.version> |
| 50 | + <maven-jacoco-plugin.version>0.8.15</maven-jacoco-plugin.version> |
55 | 51 | </properties> |
56 | 52 | </profile> |
57 | 53 | <!-- 发布到 Maven Central Portal:mvn -Prelease deploy(GPG 签名 + 源码 + Javadoc + Central 发布插件) --> |
58 | | - |
59 | 54 | <profile> |
60 | 55 | <id>release</id> |
61 | 56 | </profile> |
62 | 57 | <!-- 发布到 Maven Central Portal:mvn -Pcentral deploy(GPG 签名 + 源码 + Javadoc + Central 发布插件) --> |
63 | | - |
64 | 58 | <profile> |
65 | 59 | <id>central</id> |
66 | 60 | </profile> |
67 | 61 | </profiles> |
68 | | - |
69 | 62 | <!-- 版本属性定义:Java 版本、依赖版本与 Maven 插件版本统一管理 --> |
70 | 63 | <properties> |
71 | 64 | <!-- ═══ 第一段: 基础属性(自然排序)═══ --> |
72 | | - <java.version>1.8</java.version> |
73 | | - <maven.compiler.release>${java.version}</maven.compiler.release> |
74 | | - <maven.version>3.9.16</maven.version> |
75 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
76 | | - <!-- Dependency versions --> |
77 | | - <byte-buddy.version>1.14.16</byte-buddy.version> |
78 | | - <commons-beanutils.version>1.11.0</commons-beanutils.version> |
79 | | - <commons-io.version>2.22.0</commons-io.version> |
80 | | - <commons-lang3.version>3.20.0</commons-lang3.version> |
81 | | - <jakarta-servlet.version>6.0.0</jakarta-servlet.version> |
82 | | - <jakarta-validation.version>3.0.2</jakarta-validation.version> |
83 | | - <junit-jupiter.version>5.11.4</junit-jupiter.version> |
84 | | - <junit.version>4.13.2</junit.version> |
85 | | - <lombok.version>1.18.46</lombok.version> |
86 | | - <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
87 | | - <slf4j.version>2.0.18</slf4j.version> |
88 | | - <spring.version>5.3.39</spring.version> |
89 | | - <springfox.version>3.0.0</springfox.version> |
90 | | - <swagger.version>1.6.14</swagger.version> |
91 | | - <!-- Maven Plugin versions --> |
92 | | - <maven-antrun-plugin.version>3.1.0</maven-antrun-plugin.version> |
93 | | - <maven-clean-plugin.version>3.5.0</maven-clean-plugin.version> |
94 | | - <maven-compiler-plugin.version>3.15.0</maven-compiler-plugin.version> |
95 | | - <maven-dependency-plugin.version>3.8.1</maven-dependency-plugin.version> |
96 | | - <maven-deploy-plugin.version>3.1.4</maven-deploy-plugin.version> |
97 | | - <maven-enforcer-plugin.version>3.6.3</maven-enforcer-plugin.version> |
98 | | - <maven-failsafe-plugin.version>3.0.0</maven-failsafe-plugin.version> |
99 | | - <maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version> |
100 | | - <maven-help-plugin.version>3.5.0</maven-help-plugin.version> |
101 | | - <maven-install-plugin.version>3.1.4</maven-install-plugin.version> |
102 | | - <maven-invoker-plugin.version>3.8.0</maven-invoker-plugin.version> |
103 | | - <maven-jar-plugin.version>3.5.0</maven-jar-plugin.version> |
104 | | - <maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version> |
105 | | - <maven-nexus-staging-plugin.version>1.7.0</maven-nexus-staging-plugin.version> |
106 | | - <maven-release-plugin.version>3.3.1</maven-release-plugin.version> |
107 | | - <maven-resources-plugin.version>3.5.0</maven-resources-plugin.version> |
108 | | - <maven-shade-plugin.version>3.6.0</maven-shade-plugin.version> |
109 | | - <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
110 | | - <maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version> |
111 | | - <maven-war-plugin.version>3.4.0</maven-war-plugin.version> |
| 65 | + <java.version>1.8</java.version> |
| 66 | + <maven.compiler.release>${java.version}</maven.compiler.release> |
| 67 | + <maven.version>3.9.16</maven.version> |
| 68 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 69 | + <!-- Dependency versions --> |
| 70 | + <byte-buddy.version>1.14.16</byte-buddy.version> |
| 71 | + <commons-beanutils.version>1.11.0</commons-beanutils.version> |
| 72 | + <commons-io.version>2.22.0</commons-io.version> |
| 73 | + <commons-lang3.version>3.20.0</commons-lang3.version> |
| 74 | + <jakarta-servlet.version>6.0.0</jakarta-servlet.version> |
| 75 | + <jakarta-validation.version>3.0.2</jakarta-validation.version> |
| 76 | + <junit-jupiter.version>5.11.4</junit-jupiter.version> |
| 77 | + <junit.version>4.13.2</junit.version> |
| 78 | + <lombok.version>1.18.46</lombok.version> |
| 79 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 80 | + <slf4j.version>2.0.18</slf4j.version> |
| 81 | + <spring.version>5.3.39</spring.version> |
| 82 | + <springfox.version>3.0.0</springfox.version> |
| 83 | + <swagger.version>1.6.14</swagger.version> |
| 84 | + <!-- Maven Plugin versions --> |
| 85 | + <maven-antrun-plugin.version>3.1.0</maven-antrun-plugin.version> |
| 86 | + <maven-clean-plugin.version>3.5.0</maven-clean-plugin.version> |
| 87 | + <maven-compiler-plugin.version>3.15.0</maven-compiler-plugin.version> |
| 88 | + <maven-dependency-plugin.version>3.8.1</maven-dependency-plugin.version> |
| 89 | + <maven-deploy-plugin.version>3.1.4</maven-deploy-plugin.version> |
| 90 | + <maven-enforcer-plugin.version>3.6.3</maven-enforcer-plugin.version> |
| 91 | + <maven-failsafe-plugin.version>3.0.0</maven-failsafe-plugin.version> |
| 92 | + <maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version> |
| 93 | + <maven-help-plugin.version>3.5.0</maven-help-plugin.version> |
| 94 | + <maven-install-plugin.version>3.1.4</maven-install-plugin.version> |
| 95 | + <maven-invoker-plugin.version>3.8.0</maven-invoker-plugin.version> |
| 96 | + <maven-jar-plugin.version>3.5.0</maven-jar-plugin.version> |
| 97 | + <maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version> |
| 98 | + <maven-nexus-staging-plugin.version>1.7.0</maven-nexus-staging-plugin.version> |
| 99 | + <maven-release-plugin.version>3.3.1</maven-release-plugin.version> |
| 100 | + <maven-resources-plugin.version>3.5.0</maven-resources-plugin.version> |
| 101 | + <maven-shade-plugin.version>3.6.0</maven-shade-plugin.version> |
| 102 | + <maven-source-plugin.version>3.4.0</maven-source-plugin.version> |
| 103 | + <maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version> |
| 104 | + <maven-war-plugin.version>3.4.0</maven-war-plugin.version> |
112 | 105 | <maven-jacoco-plugin.version>0.8.15</maven-jacoco-plugin.version> |
113 | 106 | </properties> |
114 | | - |
115 | 107 | <!-- 依赖版本统一管理(dependencyManagement) --> |
116 | 108 | <dependencyManagement> |
117 | 109 | <dependencies> |
|
208 | 200 | </dependency> |
209 | 201 | </dependencies> |
210 | 202 | </dependencyManagement> |
211 | | - |
212 | 203 | <!-- 项目依赖(dependencies) --> |
213 | 204 | <dependencies> |
214 | 205 | <!-- For Lombok --> |
|
303 | 294 | <finalName>${project.artifactId}</finalName> |
304 | 295 | <pluginManagement> |
305 | 296 | <plugins> |
306 | | - |
307 | 297 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
308 | 298 | <plugin> |
309 | 299 | <!-- 编译插件:编译主代码至主输出目录 --> |
|
317 | 307 | <maxmem>512M</maxmem> |
318 | 308 | </configuration> |
319 | 309 | </plugin> |
320 | | - |
321 | 310 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin --> |
322 | 311 | <plugin> |
323 | 312 | <!-- 发布插件:将项目输出构件部署到远程仓库 --> |
324 | 313 | <groupId>org.apache.maven.plugins</groupId> |
325 | 314 | <artifactId>maven-deploy-plugin</artifactId> |
326 | 315 | <version>${maven-deploy-plugin.version}</version> |
327 | 316 | </plugin> |
328 | | - |
329 | 317 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin --> |
330 | 318 | <plugin> |
331 | 319 | <!-- 环境检查插件:代码编译前的环境监察 --> |
|
358 | 346 | </execution> |
359 | 347 | </executions> |
360 | 348 | </plugin> |
361 | | - |
362 | 349 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-gpg-plugin --> |
363 | 350 | <plugin> |
364 | 351 | <!-- 签名插件:对制品进行 PGP 签名 --> |
|
375 | 362 | </execution> |
376 | 363 | </executions> |
377 | 364 | </plugin> |
378 | | - |
379 | 365 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-install-plugin --> |
380 | 366 | <plugin> |
381 | 367 | <!-- 安装插件:将项目输出构件安装到本地仓库 --> |
382 | 368 | <groupId>org.apache.maven.plugins</groupId> |
383 | 369 | <artifactId>maven-install-plugin</artifactId> |
384 | 370 | <version>${maven-install-plugin.version}</version> |
385 | 371 | </plugin> |
386 | | - |
387 | 372 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin --> |
388 | 373 | <plugin> |
389 | 374 | <!-- 资源插件:复制主资源文件至主输出目录 --> |
|
394 | 379 | <encoding>${project.build.sourceEncoding}</encoding> |
395 | 380 | </configuration> |
396 | 381 | </plugin> |
397 | | - |
398 | 382 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin --> |
399 | 383 | <plugin> |
400 | 384 | <!-- 发布管理插件:版本发布与标签管理 --> |
|
409 | 393 | <goals>deploy</goals> |
410 | 394 | </configuration> |
411 | 395 | </plugin> |
412 | | - |
413 | 396 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin --> |
414 | 397 | <plugin> |
415 | 398 | <!-- 源码插件:发布时自动将源码同时发布 --> |
|
428 | 411 | </execution> |
429 | 412 | </executions> |
430 | 413 | </plugin> |
431 | | - |
432 | 414 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin --> |
433 | 415 | <plugin> |
434 | 416 | <!-- 单元测试插件:执行测试用例 --> |
|
451 | 433 | </excludes> |
452 | 434 | </configuration> |
453 | 435 | </plugin> |
454 | | - |
455 | 436 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin --> |
456 | 437 | <plugin> |
457 | 438 | <!-- jar 包生成插件:创建项目 jar 包 --> |
|
470 | 451 | </archive> |
471 | 452 | </configuration> |
472 | 453 | </plugin> |
473 | | - |
474 | 454 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin --> |
475 | 455 | <plugin> |
476 | 456 | <!-- 文档插件:发布时自动生成 Javadoc 并发布 --> |
|
492 | 472 | </execution> |
493 | 473 | </executions> |
494 | 474 | </plugin> |
495 | | - |
496 | 475 | <!-- https://mvnrepository.com/artifact/org.sonatype.plugins/nexus-staging-maven-plugin --> |
497 | 476 | <plugin> |
498 | 477 | <groupId>org.sonatype.plugins</groupId> |
|
511 | 490 | </plugins> |
512 | 491 | </pluginManagement> |
513 | 492 | <plugins> |
514 | | - |
515 | 493 | <!-- https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin --> |
516 | 494 | <plugin> |
517 | 495 | <!-- 覆盖率插件:生成覆盖率报告并校验测试覆盖率(目标 90%) --> |
|
556 | 534 | </execution> |
557 | 535 | </executions> |
558 | 536 | </plugin> |
559 | | - |
560 | 537 | <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin --> |
561 | 538 | <plugin> |
562 | 539 | <!-- 编译插件:编译主代码至主输出目录 --> |
|
0 commit comments