Skip to content

Commit 744e72d

Browse files
Simplify POM and update publishing configuration
Removed outdated plugins and properties, including Maven Release and Nexus Staging plugins, to streamline the build process. Updated developer information and added the Central Publishing Maven Plugin for handling artifact publishing to Maven Central. This change improves maintainability and aligns with current best practices.
1 parent ff6cc9f commit 744e72d

File tree

1 file changed

+21
-46
lines changed

1 file changed

+21
-46
lines changed

pom.xml

Lines changed: 21 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
<groupId>io.beanmapper</groupId>
66
<artifactId>beanmapper-spring-boot-starter</artifactId>
7-
<version>6.0.1-SNAPSHOT</version>
7+
<version>6.0.1-RC1</version>
88
<packaging>jar</packaging>
9+
910
<name>42 BeanMapper Spring Boot Starter</name>
1011
<description>Spring boot starter/autoconfig for BeanMapper</description>
1112
<inceptionYear>2017</inceptionYear>
@@ -34,25 +35,21 @@
3435
<developers>
3536
<developer>
3637
<name>Bas de Vos</name>
37-
<organization>42</organization>
38+
<organization>42 B.V.</organization>
39+
<organizationUrl>https://www.42.nl</organizationUrl>
3840
</developer>
3941
<developer>
4042
<name>Robert Bor</name>
41-
<organization>42</organization>
43+
<organization>42 B.V.</organization>
44+
<organizationUrl>https://www.42.nl</organizationUrl>
45+
</developer>
46+
<developer>
47+
<name>Marcus Talbot</name>
48+
<organization>42 B.V.</organization>
49+
<organizationUrl>https://www.42.nl</organizationUrl>
4250
</developer>
4351
</developers>
4452

45-
<distributionManagement>
46-
<snapshotRepository>
47-
<id>ossrh</id>
48-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
49-
</snapshotRepository>
50-
<repository>
51-
<id>ossrh</id>
52-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
53-
</repository>
54-
</distributionManagement>
55-
5653
<properties>
5754
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5855
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
@@ -61,8 +58,6 @@
6158

6259
<spring.boot.version>3.4.0</spring.boot.version>
6360
<beanmapper.spring.version>6.0.0</beanmapper.spring.version>
64-
<maven.release.plugin.version>3.1.1</maven.release.plugin.version>
65-
<maven.scm.provider.gitexe.version>2.1.0</maven.scm.provider.gitexe.version>
6661
</properties>
6762

6863
<dependencies>
@@ -129,18 +124,6 @@
129124

130125
<build>
131126
<plugins>
132-
<plugin>
133-
<groupId>org.sonatype.plugins</groupId>
134-
<artifactId>nexus-staging-maven-plugin</artifactId>
135-
<version>1.7.0</version>
136-
<extensions>true</extensions>
137-
<configuration>
138-
<serverId>sonatype-nexus-staging</serverId>
139-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
140-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
141-
</configuration>
142-
</plugin>
143-
144127
<plugin>
145128
<groupId>org.apache.maven.plugins</groupId>
146129
<artifactId>maven-javadoc-plugin</artifactId>
@@ -155,24 +138,6 @@
155138
</executions>
156139
</plugin>
157140

158-
<plugin>
159-
<artifactId>maven-release-plugin</artifactId>
160-
<version>${maven.release.plugin.version}</version>
161-
<dependencies>
162-
<!-- Fixes release commit creation on systems which are not in English -->
163-
<dependency>
164-
<groupId>org.apache.maven.scm</groupId>
165-
<artifactId>maven-scm-api</artifactId>
166-
<version>2.1.0</version>
167-
</dependency>
168-
<dependency>
169-
<groupId>org.apache.maven.scm</groupId>
170-
<artifactId>maven-scm-provider-gitexe</artifactId>
171-
<version>${maven.scm.provider.gitexe.version}</version>
172-
</dependency>
173-
</dependencies>
174-
</plugin>
175-
176141
<plugin>
177142
<groupId>org.apache.maven.plugins</groupId>
178143
<artifactId>maven-source-plugin</artifactId>
@@ -202,6 +167,16 @@
202167
</executions>
203168
</plugin>
204169

170+
<plugin>
171+
<groupId>org.sonatype.central</groupId>
172+
<artifactId>central-publishing-maven-plugin</artifactId>
173+
<version>0.7.0</version>
174+
<extensions>true</extensions>
175+
<configuration>
176+
<publishingServerId>central</publishingServerId>
177+
</configuration>
178+
</plugin>
179+
205180
<plugin>
206181
<groupId>org.jacoco</groupId>
207182
<artifactId>jacoco-maven-plugin</artifactId>

0 commit comments

Comments
 (0)