Skip to content

Commit f2286e6

Browse files
committed
fix(pom): reorder elements per java-component-patterns (properties before distributionManagement)
1 parent f64a808 commit f2286e6

1 file changed

Lines changed: 80 additions & 3 deletions

File tree

pom.xml

Lines changed: 80 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
</developer>
3737
</developers>
3838

39-
<!-- 版本属性定义:Java 版本、依赖版本与 Maven 插件版本统一管理 -->
4039
<properties>
4140
<!-- ═══ 第一段: 基础属性(自然排序)═══ -->
4241
<java.version>21</java.version>
@@ -70,7 +69,86 @@
7069
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
7170
</properties>
7271

73-
<!-- 构建配置(Build) -->
72+
<dependencyManagement>
73+
<dependencies>
74+
<!-- Jackson BOM -->
75+
<dependency>
76+
<groupId>tools.jackson</groupId>
77+
<artifactId>jackson-bom</artifactId>
78+
<version>${jackson-bom.version}</version>
79+
<type>pom</type>
80+
<scope>import</scope>
81+
</dependency>
82+
83+
<dependency>
84+
<groupId>org.apache.commons</groupId>
85+
<artifactId>commons-exec</artifactId>
86+
<version>${commons-exec.version}</version>
87+
</dependency>
88+
89+
<dependency>
90+
<groupId>org.slf4j</groupId>
91+
<artifactId>slf4j-api</artifactId>
92+
<version>${slf4j.version}</version>
93+
</dependency>
94+
95+
<dependency>
96+
<groupId>org.projectlombok</groupId>
97+
<artifactId>lombok</artifactId>
98+
<version>${lombok.version}</version>
99+
<scope>provided</scope>
100+
</dependency>
101+
102+
<dependency>
103+
<groupId>org.junit.jupiter</groupId>
104+
<artifactId>junit-jupiter</artifactId>
105+
<version>${junit-jupiter.version}</version>
106+
<scope>test</scope>
107+
</dependency>
108+
</dependencies>
109+
</dependencyManagement>
110+
111+
<dependencies>
112+
113+
<dependency>
114+
<groupId>tools.jackson.core</groupId>
115+
<artifactId>jackson-databind</artifactId>
116+
</dependency>
117+
118+
<dependency>
119+
<groupId>org.apache.commons</groupId>
120+
<artifactId>commons-exec</artifactId>
121+
</dependency>
122+
123+
<dependency>
124+
<groupId>org.slf4j</groupId>
125+
<artifactId>slf4j-api</artifactId>
126+
</dependency>
127+
128+
<dependency>
129+
<groupId>org.projectlombok</groupId>
130+
<artifactId>lombok</artifactId>
131+
<scope>provided</scope>
132+
</dependency>
133+
134+
<dependency>
135+
<groupId>org.junit.jupiter</groupId>
136+
<artifactId>junit-jupiter</artifactId>
137+
<scope>test</scope>
138+
</dependency>
139+
</dependencies>
140+
141+
<distributionManagement>
142+
<repository>
143+
<id>2624322-release-6F6h6R</id>
144+
<url>https://packages.aliyun.com/6927b116e6c3e0425dbdf60d/maven/2624322-release-6f6h6r</url>
145+
</repository>
146+
<snapshotRepository>
147+
<id>2624322-snapshot-3EoOv3</id>
148+
<url>https://packages.aliyun.com/6927b116e6c3e0425dbdf60d/maven/2624322-snapshot-3eoov3</url>
149+
</snapshotRepository>
150+
</distributionManagement>
151+
74152
<build>
75153
<pluginManagement>
76154
<plugins>
@@ -333,7 +411,6 @@
333411
</plugins>
334412
</build>
335413

336-
<!-- 构建 Profile 配置 -->
337414
<profiles>
338415
<profile>
339416
<id>disable-javadoc-doclint</id>

0 commit comments

Comments
 (0)