Skip to content

Commit

Permalink
Merge pull request #40 from sentrysoftware/feature/implement-oss-parent
Browse files Browse the repository at this point in the history
Updated POM to be oss-parent based. Started at version 2.
  • Loading branch information
NassimBtk authored May 30, 2024
2 parents d7a7cf4 + 873c27c commit d44c7cb
Showing 1 changed file with 12 additions and 296 deletions.
308 changes: 12 additions & 296 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.sentrysoftware</groupId>
<artifactId>oss-parent</artifactId>
<version>2</version>
</parent>

<groupId>org.sentrysoftware.maven</groupId>
<artifactId>metricshub-connector-maven-plugin</artifactId>
<name>MetricsHub Connector Maven Plugin</name>
<version>1.0.03-SNAPSHOT</version>

<packaging>maven-plugin</packaging>

<name>MetricsHub Connector Maven Plugin</name>
<description>
The MetricsHub Connector Maven Plugin is a Maven report plugin that
helps generate documentation for MetricsHub connectors.
Expand All @@ -14,8 +23,6 @@
connectors in detail.
</description>

<packaging>maven-plugin</packaging>

<organization>
<name>Sentry Software</name>
<url>https://sentrysoftware.com</url>
Expand All @@ -24,17 +31,6 @@
<url>https://sentrysoftware.github.io/metricshub-connector-maven-plugin</url>
<inceptionYear>2023</inceptionYear>

<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>

<licenses>
<license>
<name>Apache-2.0</name>
Expand Down Expand Up @@ -75,11 +71,6 @@
<!-- Java 11 -->
<maven.compiler.release>11</maven.compiler.release>

<!-- UTF-8 -->
<project.build.encoding>UTF-8</project.build.encoding>
<project.build.sourceEncoding>${project.build.encoding}</project.build.sourceEncoding>
<project.build.resourceEncoding>${project.build.encoding}</project.build.resourceEncoding>

<!-- Reproducible Build -->
<!-- See https://maven.apache.org/guides/mini/guide-reproducible-builds.html -->
<project.build.outputTimestamp>2024-05-22T14:03:05Z</project.build.outputTimestamp>
Expand Down Expand Up @@ -190,137 +181,9 @@

<build>

<!-- Common configuration for plugins -->
<pluginManagement>
<plugins>

<!-- javadoc -->
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
<configuration>
<detectJavaApiLink>false</detectJavaApiLink>
<source>${maven.compiler.target}</source>
<show>public</show>
<notimestamp>true</notimestamp>
</configuration>
</plugin>

<!-- maven-invoker-plugin -->
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<version>3.6.0</version>
</plugin>

</plugins>
</pluginManagement>

<!-- Actual build plugins -->
<plugins>

<!-- compiler -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
</plugin>

<!-- source -->
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- resource -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
</plugin>

<!-- license -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>2.3.0</version>
<configuration>
<licenseName>apache_v2</licenseName>
<copyrightOwners>Sentry Software</copyrightOwners>
<copyrightStringFormat>Copyright %1$s %2$s</copyrightStringFormat>
<includes>
<include>main/java/**/*.java</include>
</includes>
<trimHeaderLine>true</trimHeaderLine>
<canUpdateCopyright>true</canUpdateCopyright>
<canUpdateDescription>true</canUpdateDescription>
<processStartTag>╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲</processStartTag>
<sectionDelimiter>჻჻჻჻჻჻</sectionDelimiter>
<processEndTag>╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱</processEndTag>
</configuration>
<executions>
<execution>
<id>check-license</id>
<phase>process-sources</phase>
<goals>
<goal>check-file-header</goal>
</goals>
<configuration>
<failOnMissingHeader>true</failOnMissingHeader>
</configuration>
</execution>
</executions>
</plugin>

<!-- javadoc -->
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- surefire -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.3</version>
</plugin>

<!-- site -->
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.12.1</version>
<dependencies>
<dependency>
<groupId>org.sentrysoftware.maven</groupId>
<artifactId>maven-skin-tools</artifactId>
<version>1.3.00</version>
</dependency>
</dependencies>
</plugin>

<!-- jar -->
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
</plugin>

<!-- deploy -->
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.1</version>
</plugin>

<!-- maven-plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -365,6 +228,7 @@
<!-- maven-invoker-plugin -->
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<debug>true</debug>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
Expand Down Expand Up @@ -395,16 +259,9 @@
<reporting>
<plugins>

<!-- jxr: creates XRef links -->
<plugin>
<artifactId>maven-jxr-plugin</artifactId>
<version>3.3.2</version>
</plugin>

<!-- checkstyle -->
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
<linkXref>true</linkXref>
Expand All @@ -419,12 +276,11 @@
<!-- pmd -->
<plugin>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.21.2</version>
<configuration>
<linkXref>true</linkXref>
<sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
<minimumTokens>50</minimumTokens>
<targetJdk>${maven.compiler.target}</targetJdk>
<targetJdk>${maven.compiler.release}</targetJdk>
<rulesets>
<ruleset>pmd.xml</ruleset>
</rulesets>
Expand All @@ -434,147 +290,7 @@
</configuration>
</plugin>

<!-- spotbugs -->
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.8.2.0</version>
</plugin>

<!-- changelog -->
<plugin>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.3</version>
</plugin>

<!-- surefire -->
<plugin>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>3.2.3</version>
</plugin>

<!-- javadoc -->
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<reportSets>
<reportSet>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
</reportSets>
</plugin>

<!-- Default project-info-reports -->
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.5.0</version>
<reportSets>
<reportSet>
<reports>
<report>ci-management</report>
<report>dependencies</report>
<report>dependency-info</report>
<report>distribution-management</report>
<report>issue-management</report>
<report>licenses</report>
<report>plugins</report>
<report>scm</report>
<report>summary</report>
<report>team</report>
</reports>
</reportSet>
</reportSets>
</plugin>

<!-- maven-invoker-plugin -->
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
</plugin>
</plugins>
</reporting>

<profiles>

<!-- Profile for releasing the project -->
<profile>
<id>release</id>
<build>
<plugins>

<!-- artifact (Reproducible Build) -->
<plugin>
<artifactId>maven-artifact-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>buildinfo</id>
<phase>verify</phase>
<goals>
<goal>buildinfo</goal>
</goals>
<configuration>
<reproducible>true</reproducible>
</configuration>
</execution>
</executions>
</plugin>

<!-- gpg to sign the released artifacts -->
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<updateReleaseInfo>true</updateReleaseInfo>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>

<!-- nexus-staging (Sonatype) -->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org</nexusUrl>
<autoReleaseAfterClose>${env.AUTO_RELEASE_AFTER_CLOSE}</autoReleaseAfterClose>
</configuration>
</plugin>

<!-- release -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
</configuration>
<executions>
<execution>
<id>default</id>
<goals>
<goal>perform</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit d44c7cb

Please sign in to comment.