Commit dce19ab1 authored by Jorge Solórzano at OnGres's avatar Jorge Solórzano at OnGres 🐘

Use the POM Code Convention

Follow the recommended ordering for Maven POM files:
https://maven.apache.org/developers/conventions/code.html#POM_Code_Convention
parent fa956844
......@@ -11,6 +11,8 @@
<name>ongres: build parent pom</name>
<description>Build parent pom for any project</description>
<url>https://gitlab.com/ongresinc/build-tools</url>
<inceptionYear>2019</inceptionYear>
<organization>
......@@ -18,6 +20,13 @@
<url>https://www.ongres.com</url>
</organization>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<id>@adescoms</id>
......@@ -37,19 +46,21 @@
</developer>
</developers>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<url>https://gitlab.com/ongresinc/build-tools</url>
<scm>
<url>https://gitlab.com/ongresinc/build-tools</url>
</scm>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
......@@ -59,13 +70,13 @@
<maven.compiler.release>${java.version}</maven.compiler.release>
<!-- Dependencies versions -->
<checkstyle.version>8.19</checkstyle.version>
<checkstyle.version>8.20</checkstyle.version>
<spotbugs.version>3.1.12</spotbugs.version>
<log4j2.version>2.11.2</log4j2.version>
<junit.version>5.4.1</junit.version>
<junit5.version>5.4.2</junit5.version>
<!-- Plugin versions -->
<compiler-plugin.version>3.8.0</compiler-plugin.version>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
<clean-plugin.version>3.1.0</clean-plugin.version>
<surefire-plugin.version>3.0.0-M3</surefire-plugin.version>
<failsafe-plugin.version>3.0.0-M3</failsafe-plugin.version>
......@@ -74,6 +85,8 @@
<resources-plugin.version>3.1.0</resources-plugin.version>
<dependency-plugin.version>3.1.1</dependency-plugin.version>
<javadoc-plugin.version>3.1.0</javadoc-plugin.version>
<source-plugin.version>3.0.1</source-plugin.version>
<gpg-plugin.version>1.6</gpg-plugin.version>
<checkstyle-plugin.version>3.0.0</checkstyle-plugin.version>
<enforcer-plugin.version>3.0.0-M2</enforcer-plugin.version>
<spotbugs-plugin.version>3.1.11</spotbugs-plugin.version>
......@@ -89,17 +102,6 @@
<spotbugs.excluded.location>${project.build.directory}/build-resources/com/ongres/spotbugs/spotbugs-exclude.xml</spotbugs.excluded.location>
</properties>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<dependencyManagement>
<dependencies>
<dependency>
......@@ -112,7 +114,7 @@
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit.version}</version>
<version>${junit5.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
......@@ -279,7 +281,7 @@
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc-plugin.version}</version>
<configuration>
<failOnWarnings>true</failOnWarnings>
<failOnWarnings>false</failOnWarnings>
</configuration>
</plugin>
</plugins>
......@@ -414,7 +416,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<version>${source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
......@@ -427,7 +429,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.0</version>
<version>${javadoc-plugin.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
......@@ -440,21 +442,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</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-gpg-plugin</artifactId>
<version>1.5</version>
<version>${gpg-plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
......
......@@ -11,6 +11,8 @@
<name>ongres: build-resources</name>
<description>Build resources pom for any project</description>
<url>https://gitlab.com/ongresinc/build-tools</url>
<inceptionYear>2019</inceptionYear>
<organization>
......@@ -18,6 +20,13 @@
<url>https://www.ongres.com</url>
</organization>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<id>@adescoms</id>
......@@ -37,15 +46,6 @@
</developer>
</developers>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<url>https://gitlab.com/ongresinc/build-tools</url>
<scm>
<url>https://gitlab.com/ongresinc/build-tools</url>
</scm>
......@@ -54,6 +54,10 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<checkstyle.skipExec>false</checkstyle.skipExec>
<license.skip>false</license.skip>
<javadoc-plugin.version>3.1.0</javadoc-plugin.version>
<source-plugin.version>3.0.1</source-plugin.version>
<gpg-plugin.version>1.6</gpg-plugin.version>
</properties>
<profiles>
......@@ -64,7 +68,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<version>${source-plugin.version}</version>
<executions>
<execution>
<id>attach-sources</id>
......@@ -77,7 +81,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.0</version>
<version>${javadoc-plugin.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
......@@ -90,21 +94,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</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-gpg-plugin</artifactId>
<version>1.5</version>
<version>${gpg-plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
......
......@@ -11,6 +11,8 @@
<name>ongres: build-tools</name>
<description>Build tools pom for any project</description>
<url>https://gitlab.com/ongresinc/build-tools</url>
<inceptionYear>2019</inceptionYear>
<organization>
......@@ -18,6 +20,13 @@
<url>https://www.ongres.com</url>
</organization>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<id>@adescoms</id>
......@@ -37,14 +46,10 @@
</developer>
</developers>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<url>https://gitlab.com/ongresinc/build-tools</url>
<modules>
<module>build-resources</module>
<module>build-parent</module>
</modules>
<scm>
<url>https://gitlab.com/ongresinc/build-tools</url>
......@@ -55,8 +60,4 @@
<url>https://gitlab.com/ongresinc/build-tools/issues</url>
</issueManagement>
<modules>
<module>build-resources</module>
<module>build-parent</module>
</modules>
</project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment