Skip to content

Commit 2a6e1aa

Browse files
committed
Align pom with other projects by:
- Ordering all properties - Ordering all dependencies - Naming all team members - Using properties at all version locations #release/4.8.0
1 parent 0cd0b22 commit 2a6e1aa

File tree

1 file changed

+128
-101
lines changed

1 file changed

+128
-101
lines changed

pom.xml

Lines changed: 128 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,33 @@
4646
<!-- Build / Plugins -->
4747
<maven.compiler.source>17</maven.compiler.source>
4848
<maven.compiler.target>17</maven.compiler.target>
49-
<jacoco-maven-plugin.version>0.8.10</jacoco-maven-plugin.version>
5049
<!-- Main -->
5150
<axon.version>4.8.0</axon.version>
5251
<spring.version>6.0.11</spring.version>
5352
<spring-boot.version>3.1.2</spring-boot.version>
54-
<!-- Other -->
55-
<jackson.version>2.15.2</jackson.version>
53+
<!-- Database -->
5654
<jakarta.persistence.version>3.1.0</jakarta.persistence.version>
55+
<!-- Serialization -->
56+
<jackson.version>2.15.2</jackson.version>
5757
<!-- Testing -->
58-
<junit.jupiter.version>5.9.3</junit.jupiter.version>
5958
<assertj.version>3.24.2</assertj.version>
59+
<junit.jupiter.version>5.9.3</junit.jupiter.version>
6060
<mockito.version>5.4.0</mockito.version>
6161
<netty.version>4.1.95.Final</netty.version>
62+
<!-- Build / Plugin -->
63+
<jacoco-maven.version>0.8.8</jacoco-maven.version>
64+
<maven-assembly.version>3.6.0</maven-assembly.version>
65+
<maven-clean.version>3.3.1</maven-clean.version>
66+
<maven-compiler.version>3.11.0</maven-compiler.version>
67+
<maven-deploy.version>3.1.1</maven-deploy.version>
68+
<maven-gpg.version>3.1.0</maven-gpg.version>
69+
<maven-install.version>3.1.1</maven-install.version>
70+
<maven-jar.version>3.3.0</maven-jar.version>
71+
<maven-javadoc.version>3.5.0</maven-javadoc.version>
72+
<maven-release.version>3.0.1</maven-release.version>
73+
<maven-source.version>3.3.0</maven-source.version>
74+
<maven-surefire.version>3.1.2</maven-surefire.version>
75+
<maven-resources.version>3.3.1</maven-resources.version>
6276
</properties>
6377

6478
<dependencies>
@@ -81,48 +95,55 @@
8195
<version>${spring.version}</version>
8296
<optional>true</optional>
8397
</dependency>
98+
<dependency>
99+
<groupId>org.springframework</groupId>
100+
<artifactId>spring-core-test</artifactId>
101+
<version>${spring.version}</version>
102+
<scope>test</scope>
103+
</dependency>
84104
<dependency>
85105
<groupId>org.springframework</groupId>
86106
<artifactId>spring-context</artifactId>
87107
<version>${spring.version}</version>
88108
<optional>true</optional>
89109
</dependency>
110+
<dependency>
111+
<groupId>org.springframework</groupId>
112+
<artifactId>spring-test</artifactId>
113+
<version>${spring.version}</version>
114+
<scope>test</scope>
115+
</dependency>
90116
<dependency>
91117
<groupId>org.springframework.boot</groupId>
92118
<artifactId>spring-boot-autoconfigure</artifactId>
93119
<version>${spring-boot.version}</version>
94120
<optional>true</optional>
95121
</dependency>
96-
<!-- Other -->
97122
<dependency>
98-
<groupId>com.fasterxml.jackson.core</groupId>
99-
<artifactId>jackson-databind</artifactId>
100-
<version>${jackson.version}</version>
101-
<optional>true</optional>
123+
<groupId>org.springframework.boot</groupId>
124+
<artifactId>spring-boot-test</artifactId>
125+
<version>${spring-boot.version}</version>
126+
<scope>test</scope>
102127
</dependency>
128+
<!-- Database -->
103129
<dependency>
104130
<groupId>jakarta.persistence</groupId>
105131
<artifactId>jakarta.persistence-api</artifactId>
106132
<version>${jakarta.persistence.version}</version>
107133
<optional>true</optional>
108134
</dependency>
109-
<!-- Testing -->
135+
<!-- Serialization -->
110136
<dependency>
111-
<groupId>org.springframework</groupId>
112-
<artifactId>spring-test</artifactId>
113-
<version>${spring.version}</version>
114-
<scope>test</scope>
115-
</dependency>
116-
<dependency>
117-
<groupId>org.springframework</groupId>
118-
<artifactId>spring-core-test</artifactId>
119-
<version>${spring.version}</version>
120-
<scope>test</scope>
137+
<groupId>com.fasterxml.jackson.core</groupId>
138+
<artifactId>jackson-databind</artifactId>
139+
<version>${jackson.version}</version>
140+
<optional>true</optional>
121141
</dependency>
142+
<!-- Testing -->
122143
<dependency>
123-
<groupId>org.springframework.boot</groupId>
124-
<artifactId>spring-boot-test</artifactId>
125-
<version>${spring-boot.version}</version>
144+
<groupId>org.assertj</groupId>
145+
<artifactId>assertj-core</artifactId>
146+
<version>${assertj.version}</version>
126147
<scope>test</scope>
127148
</dependency>
128149
<dependency>
@@ -131,12 +152,6 @@
131152
<version>${junit.jupiter.version}</version>
132153
<scope>test</scope>
133154
</dependency>
134-
<dependency>
135-
<groupId>org.assertj</groupId>
136-
<artifactId>assertj-core</artifactId>
137-
<version>${assertj.version}</version>
138-
<scope>test</scope>
139-
</dependency>
140155
<dependency>
141156
<groupId>org.mockito</groupId>
142157
<artifactId>mockito-core</artifactId>
@@ -156,37 +171,42 @@
156171
<plugins>
157172
<plugin>
158173
<artifactId>maven-clean-plugin</artifactId>
159-
<version>3.3.1</version>
174+
<version>${maven-clean.version}</version>
160175
</plugin>
161176
<plugin>
162177
<artifactId>maven-install-plugin</artifactId>
163-
<version>3.1.1</version>
178+
<version>${maven-install.version}</version>
164179
</plugin>
165180
</plugins>
166181
</pluginManagement>
182+
167183
<plugins>
184+
<!-- compile -->
168185
<plugin>
169-
<artifactId>maven-resources-plugin</artifactId>
170-
<version>3.3.1</version>
186+
<artifactId>maven-compiler-plugin</artifactId>
187+
<version>${maven-compiler.version}</version>
171188
<configuration>
172-
<encoding>UTF-8</encoding>
189+
<source>${maven.compiler.source}</source>
190+
<target>${maven.compiler.target}</target>
173191
</configuration>
174192
</plugin>
193+
<!-- test -->
175194
<plugin>
176-
<artifactId>maven-deploy-plugin</artifactId>
177-
<version>3.1.1</version>
178-
</plugin>
179-
<plugin>
180-
<artifactId>maven-compiler-plugin</artifactId>
181-
<version>3.11.0</version>
195+
<artifactId>maven-surefire-plugin</artifactId>
196+
<version>${maven-surefire.version}</version>
182197
<configuration>
183-
<source>${maven.compiler.source}</source>
184-
<target>${maven.compiler.target}</target>
198+
<includes>
199+
<include>**/*Test.java</include>
200+
<include>**/*Tests.java</include>
201+
<include>**/*Test_*.java</include>
202+
<include>**/*Tests_*.java</include>
203+
</includes>
185204
</configuration>
186205
</plugin>
206+
<!-- package -->
187207
<plugin>
188208
<artifactId>maven-assembly-plugin</artifactId>
189-
<version>3.6.0</version>
209+
<version>${maven-assembly.version}</version>
190210
<configuration>
191211
<descriptorSourceDirectory>assembly</descriptorSourceDirectory>
192212
<archiverConfig>
@@ -195,33 +215,23 @@
195215
</configuration>
196216
</plugin>
197217
<plugin>
198-
<artifactId>maven-release-plugin</artifactId>
199-
<version>3.0.1</version>
200-
<configuration>
201-
<mavenExecutorId>forked-path</mavenExecutorId>
202-
<localCheckout>true</localCheckout>
203-
<pushChanges>false</pushChanges>
204-
</configuration>
205-
</plugin>
206-
<plugin>
207-
<artifactId>maven-surefire-plugin</artifactId>
208-
<version>3.1.2</version>
218+
<artifactId>maven-jar-plugin</artifactId>
219+
<version>${maven-jar.version}</version>
209220
<configuration>
210-
<includes>
211-
<include>**/*Test.java</include>
212-
<include>**/*Tests.java</include>
213-
<include>**/*Test_*.java</include>
214-
<include>**/*Tests_*.java</include>
215-
</includes>
221+
<archive>
222+
<manifest>
223+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
224+
</manifest>
225+
</archive>
216226
</configuration>
217227
</plugin>
218228
<plugin>
219229
<artifactId>maven-javadoc-plugin</artifactId>
220-
<version>3.5.0</version>
230+
<version>${maven-javadoc.version}</version>
221231
<executions>
222232
<execution>
223233
<id>attach-javadoc</id>
224-
<phase>deploy</phase>
234+
<phase>package</phase>
225235
<goals>
226236
<goal>jar</goal>
227237
</goals>
@@ -231,20 +241,9 @@
231241
<doclint>none</doclint>
232242
</configuration>
233243
</plugin>
234-
<plugin>
235-
<artifactId>maven-jar-plugin</artifactId>
236-
<version>3.3.0</version>
237-
<configuration>
238-
<archive>
239-
<manifest>
240-
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
241-
</manifest>
242-
</archive>
243-
</configuration>
244-
</plugin>
245244
<plugin>
246245
<artifactId>maven-source-plugin</artifactId>
247-
<version>3.3.0</version>
246+
<version>${maven-source.version}</version>
248247
<executions>
249248
<execution>
250249
<id>attach-sources</id>
@@ -255,31 +254,55 @@
255254
</execution>
256255
</executions>
257256
</plugin>
257+
<!-- deploy -->
258+
<plugin>
259+
<artifactId>maven-deploy-plugin</artifactId>
260+
<version>${maven-deploy.version}</version>
261+
</plugin>
262+
<plugin>
263+
<artifactId>maven-release-plugin</artifactId>
264+
<version>${maven-release.version}</version>
265+
<configuration>
266+
<!-- prepare goal configuration -->
267+
<mavenExecutorId>forked-path</mavenExecutorId>
268+
<pushChanges>false</pushChanges>
269+
<!-- perform goal configuration -->
270+
<mavenExecutorId>forked-path</mavenExecutorId>
271+
<localCheckout>true</localCheckout>
272+
<releaseProfiles>release-sign-artifacts</releaseProfiles>
273+
</configuration>
274+
</plugin>
275+
<plugin>
276+
<artifactId>maven-resources-plugin</artifactId>
277+
<version>${maven-resources.version}</version>
278+
<configuration>
279+
<encoding>UTF-8</encoding>
280+
</configuration>
281+
</plugin>
258282
</plugins>
259283
</build>
260284

261285
<profiles>
262286
<profile>
263-
<id>release-sign-artifacts</id>
264-
<activation>
265-
<property>
266-
<name>performRelease</name>
267-
<value>true</value>
268-
</property>
269-
</activation>
287+
<id>coverage</id>
270288
<build>
271289
<plugins>
272290
<plugin>
273-
<groupId>org.apache.maven.plugins</groupId>
274-
<artifactId>maven-gpg-plugin</artifactId>
275-
<version>3.1.0</version>
291+
<groupId>org.jacoco</groupId>
292+
<artifactId>jacoco-maven-plugin</artifactId>
293+
<version>${jacoco-maven.version}</version>
294+
276295
<executions>
277296
<execution>
278-
<id>sign-artifacts</id>
279-
<phase>verify</phase>
280297
<goals>
281-
<!--suppress MavenModelInspection -->
282-
<goal>sign</goal>
298+
<goal>prepare-agent</goal>
299+
</goals>
300+
</execution>
301+
<execution>
302+
<id>report</id>
303+
<phase>prepare-package</phase>
304+
<goals>
305+
<goal>report</goal>
283306
</goals>
284307
</execution>
285308
</executions>
@@ -289,25 +312,19 @@
289312
</profile>
290313

291314
<profile>
292-
<id>coverage</id>
315+
<id>release-sign-artifacts</id>
293316
<build>
294317
<plugins>
295318
<plugin>
296-
<groupId>org.jacoco</groupId>
297-
<artifactId>jacoco-maven-plugin</artifactId>
298-
<version>${jacoco-maven-plugin.version}</version>
299-
319+
<artifactId>maven-gpg-plugin</artifactId>
320+
<version>${maven-gpg.version}</version>
300321
<executions>
301322
<execution>
323+
<id>sign-artifacts</id>
324+
<phase>verify</phase>
302325
<goals>
303-
<goal>prepare-agent</goal>
304-
</goals>
305-
</execution>
306-
<execution>
307-
<id>report</id>
308-
<phase>prepare-package</phase>
309-
<goals>
310-
<goal>report</goal>
326+
<!--suppress MavenModelInspection -->
327+
<goal>sign</goal>
311328
</goals>
312329
</execution>
313330
</executions>
@@ -330,6 +347,7 @@
330347
<uniqueVersion>false</uniqueVersion>
331348
</repository>
332349
</distributionManagement>
350+
333351
<scm>
334352
<connection>scm:git:git://github.com/AxonFramework/extension-spring-aot.git</connection>
335353
<developerConnection>scm:git:git@github.com:AxonFramework/extension-spring-aot.git</developerConnection>
@@ -365,5 +383,14 @@
365383
<role>Developer</role>
366384
</roles>
367385
</developer>
386+
<developer>
387+
<name>Mitchell Herrijgers</name>
388+
<email>mitchell.herrijgers@axoniq.io</email>
389+
<organization>AxonIQ</organization>
390+
<organizationUrl>https://axoniq.io</organizationUrl>
391+
<roles>
392+
<role>Developer</role>
393+
</roles>
394+
</developer>
368395
</developers>
369396
</project>

0 commit comments

Comments
 (0)