Skip to content

Commit 2cb9e4d

Browse files
committed
Adjust deploy and publish process
Adjust deploy and publish process. This aligns the process with the new process as described here: https://central.sonatype .org/publish/publish-portal-guide/
1 parent ba88b35 commit 2cb9e4d

File tree

1 file changed

+77
-48
lines changed

1 file changed

+77
-48
lines changed

pom.xml

Lines changed: 77 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
~ limitations under the License.
1616
-->
1717

18-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
18+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1920

2021
<groupId>org.axonframework.extensions.spring-aot</groupId>
2122
<artifactId>axon-spring-aot</artifactId>
@@ -59,11 +60,11 @@
5960
<mockito.version>5.15.2</mockito.version>
6061
<netty.version>4.1.117.Final</netty.version>
6162
<!-- Build / Plugin -->
63+
<central-publishing-maven-plugin.version>0.7.0</central-publishing-maven-plugin.version>
6264
<jacoco-maven.version>0.8.12</jacoco-maven.version>
6365
<maven-assembly.version>3.7.1</maven-assembly.version>
6466
<maven-clean.version>3.4.0</maven-clean.version>
6567
<maven-compiler.version>3.13.0</maven-compiler.version>
66-
<maven-deploy.version>3.1.3</maven-deploy.version>
6768
<maven-gpg.version>3.2.7</maven-gpg.version>
6869
<maven-install.version>3.1.3</maven-install.version>
6970
<maven-jar.version>3.4.2</maven-jar.version>
@@ -256,51 +257,29 @@
256257
</archive>
257258
</configuration>
258259
</plugin>
260+
<!-- deploy -->
259261
<plugin>
260-
<artifactId>maven-javadoc-plugin</artifactId>
261-
<version>${maven-javadoc.version}</version>
262-
<executions>
263-
<execution>
264-
<id>attach-javadoc</id>
265-
<phase>package</phase>
266-
<goals>
267-
<goal>jar</goal>
268-
</goals>
269-
</execution>
270-
</executions>
262+
<groupId>org.sonatype.central</groupId>
263+
<artifactId>central-publishing-maven-plugin</artifactId>
264+
<version>${central-publishing-maven-plugin.version}</version>
265+
<extensions>true</extensions>
271266
<configuration>
272-
<doclint>none</doclint>
267+
<publishingServerId>central</publishingServerId>
273268
</configuration>
274269
</plugin>
275-
<plugin>
276-
<artifactId>maven-source-plugin</artifactId>
277-
<version>${maven-source.version}</version>
278-
<executions>
279-
<execution>
280-
<id>attach-sources</id>
281-
<phase>package</phase>
282-
<goals>
283-
<goal>jar-no-fork</goal>
284-
</goals>
285-
</execution>
286-
</executions>
287-
</plugin>
288-
<!-- deploy -->
289-
<plugin>
290-
<artifactId>maven-deploy-plugin</artifactId>
291-
<version>${maven-deploy.version}</version>
292-
</plugin>
293270
<plugin>
294271
<artifactId>maven-release-plugin</artifactId>
295272
<version>${maven-release.version}</version>
296273
<configuration>
297274
<!-- prepare goal configuration -->
298275
<mavenExecutorId>forked-path</mavenExecutorId>
299276
<pushChanges>false</pushChanges>
277+
<autoVersionSubmodules>true</autoVersionSubmodules>
300278
<!-- perform goal configuration -->
301279
<mavenExecutorId>forked-path</mavenExecutorId>
302280
<localCheckout>true</localCheckout>
303-
<releaseProfiles>release-sign-artifacts</releaseProfiles>
281+
<releaseProfiles>javadoc,sources,sign</releaseProfiles>
282+
<tagNameFormat>axon-spring-aot-@{project.version}</tagNameFormat>
304283
</configuration>
305284
</plugin>
306285
<plugin>
@@ -343,7 +322,71 @@
343322
</profile>
344323

345324
<profile>
346-
<id>release-sign-artifacts</id>
325+
<id>sources</id>
326+
<build>
327+
<plugins>
328+
<plugin>
329+
<artifactId>maven-source-plugin</artifactId>
330+
<version>${maven-source.version}</version>
331+
<executions>
332+
<execution>
333+
<id>attach-sources</id>
334+
<phase>package</phase>
335+
<goals>
336+
<goal>jar-no-fork</goal>
337+
</goals>
338+
</execution>
339+
</executions>
340+
</plugin>
341+
</plugins>
342+
</build>
343+
</profile>
344+
345+
<profile>
346+
<id>javadoc</id>
347+
<build>
348+
<plugins>
349+
<plugin>
350+
<artifactId>maven-javadoc-plugin</artifactId>
351+
<version>${maven-javadoc.version}</version>
352+
<executions>
353+
<execution>
354+
<id>attach-javadoc</id>
355+
<phase>package</phase>
356+
<goals>
357+
<goal>jar</goal>
358+
</goals>
359+
</execution>
360+
</executions>
361+
<configuration>
362+
<doclint>none</doclint>
363+
<!-- These parameters are in preparation for resolution of this issue: -->
364+
<!-- https://bugs.openjdk.java.net/browse/JDK-8068562 -->
365+
<tags>
366+
<tag>
367+
<name>apiNote</name>
368+
<placement>a</placement>
369+
<head>API Note:</head>
370+
</tag>
371+
<tag>
372+
<name>implSpec</name>
373+
<placement>a</placement>
374+
<head>Implementation Requirements:</head>
375+
</tag>
376+
<tag>
377+
<name>implNote</name>
378+
<placement>a</placement>
379+
<head>Implementation Note:</head>
380+
</tag>
381+
</tags>
382+
</configuration>
383+
</plugin>
384+
</plugins>
385+
</build>
386+
</profile>
387+
388+
<profile>
389+
<id>sign</id>
347390
<build>
348391
<plugins>
349392
<plugin>
@@ -365,20 +408,6 @@
365408
</profile>
366409
</profiles>
367410

368-
<!-- Deploy and release configuration -->
369-
<distributionManagement>
370-
<snapshotRepository>
371-
<id>sonatype</id>
372-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
373-
<uniqueVersion>true</uniqueVersion>
374-
</snapshotRepository>
375-
<repository>
376-
<id>sonatype</id>
377-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
378-
<uniqueVersion>false</uniqueVersion>
379-
</repository>
380-
</distributionManagement>
381-
382411
<scm>
383412
<connection>scm:git:git://github.com/AxonFramework/extension-spring-aot.git</connection>
384413
<developerConnection>scm:git:git@github.com:AxonFramework/extension-spring-aot.git</developerConnection>

0 commit comments

Comments
 (0)