feat: prepared to deploy to Maven Central

This commit is contained in:
dancingCycle 2022-01-05 13:17:00 -05:00
parent da13800dcf
commit 066a8bf5bf
1 changed files with 119 additions and 3 deletions

122
pom.xml
View File

@ -7,11 +7,116 @@
<groupId>de.swingbe.ifleet</groupId>
<artifactId>tgp</artifactId>
<version>1.0.0</version>
<version>0.0.1</version>
<description>
Parse ifleet telegrams.
</description>
<url>https://swingbe.de</url>
<name>tgp</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>
<licenses>
<license>
<name>GNU General Public License</name>
<url>https://www.gnu.org/licenses/gpl-3.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<name>Stefan Begerad</name>
<email>dialog@swingbe.de</email>
<organization>Software Ingenieur Begerad</organization>
<organizationUrl>https://swingbe.de</organizationUrl>
</developer>
</developers>
<scm>
<connection>
scm:git:git@github.com:Software-Ingenieur-Begerad/ifleett.git
</connection>
<developerConnection>
scm:git:ssh://github.com:Software-Ingenieur-Begerad/ifleett.git
</developerConnection>
<url>https://github.com/Software-Ingenieur-Begerad/ifleett/tree/main
</url>
</scm>
<profiles>
<profile>
<id>release</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<javadocExecutable>${java.home}/bin/javadoc
</javadocExecutable>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots
</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>
https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
</url>
</repository>
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@ -43,6 +148,17 @@
<build>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>