From 93ac9f74df810f1dd2dccdb4f187bd90f1baa243 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 26 Feb 2017 14:39:10 +0000 Subject: [PATCH] plugin: pom.xml: add dependency upon parent pom (for version properties) Moved version properties to parent pom (i.e. a pom that isn't itself) --- plugin/pom.xml | 5 ----- .../kemitix/checkstyle/ruleset/plugin/AbstractCheckMojo.java | 2 +- pom.xml | 4 ++++ 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/plugin/pom.xml b/plugin/pom.xml index d3b24d5..0e23bdf 100644 --- a/plugin/pom.xml +++ b/plugin/pom.xml @@ -30,11 +30,6 @@ 2.2.0 1.16.12 1.0.0 - - 1.0.0 - 2.17 - 7.5.1 - 1.23.0 diff --git a/plugin/src/main/java/net/kemitix/checkstyle/ruleset/plugin/AbstractCheckMojo.java b/plugin/src/main/java/net/kemitix/checkstyle/ruleset/plugin/AbstractCheckMojo.java index f09b608..a99607d 100644 --- a/plugin/src/main/java/net/kemitix/checkstyle/ruleset/plugin/AbstractCheckMojo.java +++ b/plugin/src/main/java/net/kemitix/checkstyle/ruleset/plugin/AbstractCheckMojo.java @@ -139,7 +139,7 @@ abstract class AbstractCheckMojo extends AbstractMojo { private Properties getProperties() throws MojoFailureException { // load properties from the plugin pom.xml - val pluginArtifactId = KEMITIX_ARTIFACTID + "-maven-plugin"; + val pluginArtifactId = KEMITIX_ARTIFACTID + "-parent"; val pluginArtifact = new DefaultArtifact(KEMITIX_GROUPID, pluginArtifactId, rulesetVersion, null, "", null, new DefaultArtifactHandler("pom") ); diff --git a/pom.xml b/pom.xml index 496da4f..d294662 100644 --- a/pom.xml +++ b/pom.xml @@ -19,6 +19,10 @@ 3.0.1 1.6 2.8.2 + + 2.17 + 7.5.1 + 1.23.0