Skip to content

Commit e147a20

Browse files
committed
chore(pom): restructure and upgrade Maven configuration
- Remove parent POM dependency and declare groupId directly - Add organization, licenses, and developers metadata - Add project properties for encoding and Java compiler target (11) - Add distributionManagement for Sonatype Central snapshots
1 parent c40e927 commit e147a20

1 file changed

Lines changed: 127 additions & 28 deletions

File tree

‎pom.xml‎

Lines changed: 127 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,41 @@
11
<?xml version="1.0"?>
22
<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">
33
<modelVersion>4.0.0</modelVersion>
4-
<parent>
5-
<groupId>de.taimos</groupId>
6-
<artifactId>oss-parent</artifactId>
7-
<version>5</version>
8-
</parent>
4+
5+
<groupId>de.taimos</groupId>
96
<artifactId>gpsd4java</artifactId>
107
<version>1.12-SNAPSHOT</version>
118
<packaging>bundle</packaging>
9+
1210
<name>GPSd4Java</name>
1311
<description>Java Client library for GPSd deamon</description>
14-
<prerequisites>
15-
<maven>3.0.0</maven>
16-
</prerequisites>
17-
1812
<url>http://taimos.github.com/GPSd4Java/</url>
1913
<inceptionYear>2011</inceptionYear>
2014

15+
<organization>
16+
<name>Taimos GmbH</name>
17+
<url>http://www.taimos.de</url>
18+
</organization>
19+
20+
<licenses>
21+
<license>
22+
<name>The Apache Software License, Version 2.0</name>
23+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
24+
<distribution>repo</distribution>
25+
</license>
26+
</licenses>
27+
28+
<developers>
29+
<developer>
30+
<id>thoeger</id>
31+
<email>thorsten.hoeger@taimos.de</email>
32+
<name>Thorsten Hoeger</name>
33+
<organization>Taimos GmbH</organization>
34+
<organizationUrl>http://www.taimos.de</organizationUrl>
35+
<timezone>+1</timezone>
36+
</developer>
37+
</developers>
38+
2139
<contributors>
2240
<contributor>
2341
<name>Irakli Betchvaia</name>
@@ -42,6 +60,19 @@
4260
</contributor>
4361
</contributors>
4462

63+
<properties>
64+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
65+
<maven.compiler.source>11</maven.compiler.source>
66+
<maven.compiler.target>11</maven.compiler.target>
67+
</properties>
68+
69+
<scm>
70+
<connection>scm:git:git@github.com:taimos/GPSd4Java.git</connection>
71+
<developerConnection>scm:git:git@github.com:taimos/GPSd4Java.git</developerConnection>
72+
<url>git@github.com:taimos/GPSd4Java.git</url>
73+
<tag>HEAD</tag>
74+
</scm>
75+
4576
<dependencies>
4677
<dependency>
4778
<groupId>org.json</groupId>
@@ -67,36 +98,28 @@
6798
</dependency>
6899
</dependencies>
69100

70-
<scm>
71-
<connection>scm:git:git@github.com:taimos/GPSd4Java.git</connection>
72-
<developerConnection>scm:git:git@github.com:taimos/GPSd4Java.git</developerConnection>
73-
<url>git@github.com:taimos/GPSd4Java.git</url>
74-
<tag>HEAD</tag>
75-
</scm>
101+
<distributionManagement>
102+
<snapshotRepository>
103+
<id>central</id>
104+
<name>Central Portal Snapshots</name>
105+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
106+
</snapshotRepository>
107+
</distributionManagement>
76108

77109
<build>
78-
<pluginManagement>
79-
<plugins>
80-
<plugin>
81-
<artifactId>maven-compiler-plugin</artifactId>
82-
<version>3.6.0</version>
83-
</plugin>
84-
</plugins>
85-
</pluginManagement>
86-
87110
<plugins>
88111
<plugin>
89112
<groupId>org.apache.maven.plugins</groupId>
90113
<artifactId>maven-compiler-plugin</artifactId>
114+
<version>3.13.0</version>
91115
<configuration>
92-
<source>11</source>
93-
<target>11</target>
94116
<showDeprecation>true</showDeprecation>
95117
</configuration>
96118
</plugin>
97119
<plugin>
120+
<groupId>org.apache.maven.plugins</groupId>
98121
<artifactId>maven-jar-plugin</artifactId>
99-
<version>3.0.2</version>
122+
<version>3.4.2</version>
100123
<configuration>
101124
<archive>
102125
<addMavenDescriptor />
@@ -110,9 +133,85 @@
110133
<plugin>
111134
<groupId>org.apache.felix</groupId>
112135
<artifactId>maven-bundle-plugin</artifactId>
113-
<version>5.1.8</version>
136+
<version>5.1.9</version>
137+
<extensions>true</extensions>
138+
</plugin>
139+
<plugin>
140+
<groupId>org.apache.maven.plugins</groupId>
141+
<artifactId>maven-release-plugin</artifactId>
142+
<version>3.1.1</version>
143+
<configuration>
144+
<useReleaseProfile>false</useReleaseProfile>
145+
<tagNameFormat>v@{project.version}</tagNameFormat>
146+
<goals>deploy</goals>
147+
<arguments>-Ptaimos-oss-release</arguments>
148+
<localCheckout>true</localCheckout>
149+
</configuration>
150+
</plugin>
151+
<plugin>
152+
<groupId>org.sonatype.central</groupId>
153+
<artifactId>central-publishing-maven-plugin</artifactId>
154+
<version>0.7.0</version>
114155
<extensions>true</extensions>
156+
<configuration>
157+
<publishingServerId>central</publishingServerId>
158+
<!-- false = stage a deployment for manual review/release in the Portal UI.
159+
Set to true to release to Maven Central automatically once validated. -->
160+
<autoPublish>false</autoPublish>
161+
</configuration>
115162
</plugin>
116163
</plugins>
117164
</build>
165+
166+
<profiles>
167+
<!-- Activated during release (-Ptaimos-oss-release) to attach sources,
168+
javadoc and GPG signatures, all required by Maven Central. -->
169+
<profile>
170+
<id>taimos-oss-release</id>
171+
<build>
172+
<plugins>
173+
<plugin>
174+
<groupId>org.apache.maven.plugins</groupId>
175+
<artifactId>maven-source-plugin</artifactId>
176+
<version>3.3.1</version>
177+
<executions>
178+
<execution>
179+
<id>attach-sources</id>
180+
<goals>
181+
<goal>jar-no-fork</goal>
182+
</goals>
183+
</execution>
184+
</executions>
185+
</plugin>
186+
<plugin>
187+
<groupId>org.apache.maven.plugins</groupId>
188+
<artifactId>maven-javadoc-plugin</artifactId>
189+
<version>3.11.2</version>
190+
<executions>
191+
<execution>
192+
<id>attach-javadocs</id>
193+
<goals>
194+
<goal>jar</goal>
195+
</goals>
196+
</execution>
197+
</executions>
198+
</plugin>
199+
<plugin>
200+
<groupId>org.apache.maven.plugins</groupId>
201+
<artifactId>maven-gpg-plugin</artifactId>
202+
<version>3.2.7</version>
203+
<executions>
204+
<execution>
205+
<id>sign-artifacts</id>
206+
<phase>verify</phase>
207+
<goals>
208+
<goal>sign</goal>
209+
</goals>
210+
</execution>
211+
</executions>
212+
</plugin>
213+
</plugins>
214+
</build>
215+
</profile>
216+
</profiles>
118217
</project>

0 commit comments

Comments
 (0)