From 7780d0d1334a294d9aa7418228cb627a68e816a9 Mon Sep 17 00:00:00 2001 From: Markus Rathgeb Date: Sat, 18 May 2019 00:07:14 +0200 Subject: [PATCH] Travis CI: check POM convention (#795) * Travis CI: check POM convention We could use Travis CI to execute some checks in front of the normal build. This change adds a check if the POM files follow our POM conventions. If something fails, it show which files violates the convention and the command that should be executed to fix the situation. For example if the base POM file breaks the convention: At least one POM file breaks the convention, please use sortpom to fix the POM file(s). modified: pom.xml You should run the following command in the root directory of your working copy: mvn com.github.ekryd.sortpom:sortpom-maven-plugin:sort -Dsort.keepBlankLines=true -Dsort.createBackupFile=false -Dsort.predefinedSortOrder=recommended_2008_06 * add sortpom plugin to verify phase * do not use dependency reduced pom (use scope) Signed-off-by: Markus Rathgeb --- .../pom.xml | 2 ++ pom.xml | 28 +++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/bundles/org.openhab.core.io.jetty.certificate/pom.xml b/bundles/org.openhab.core.io.jetty.certificate/pom.xml index 09189158d..f3c00d197 100644 --- a/bundles/org.openhab.core.io.jetty.certificate/pom.xml +++ b/bundles/org.openhab.core.io.jetty.certificate/pom.xml @@ -17,6 +17,7 @@ org.bouncycastle bcpkix-jdk15on 1.52 + provided @@ -33,6 +34,7 @@ package + false org.bouncycastle:* diff --git a/pom.xml b/pom.xml index 7ced1957e..1a3467a8b 100644 --- a/pom.xml +++ b/pom.xml @@ -624,6 +624,30 @@ Import-Package: \\ + + + com.github.ekryd.sortpom + sortpom-maven-plugin + 2.10.0 + + recommended_2008_06 + false + true + + + + sortpom-verify + + verify + + verify + + Stop + + + + + com.itemis.maven.plugins unleash-maven-plugin @@ -676,6 +700,10 @@ Import-Package: \\ + + com.github.ekryd.sortpom + sortpom-maven-plugin +