From bf72938a5b67b3cd88a16b1458f10fc4f37b6d41 Mon Sep 17 00:00:00 2001 From: Chesnay Schepler Date: Mon, 28 Dec 2020 20:02:45 +0100 Subject: [PATCH] [FLINK-20792][build] Allow shorthand calls to spotless It was not possible to just run 'mvn spotless:check', but instead one needed to use the fully qualified name of the plugin, i.e., 'mvn com.diffplug.spotless:spotless-maven-plugin:check'. This is due to 'force-shading'; this module is declared as a child of the flink-parent pom (i.e., the root pom of the project), but is not actually declaring that very module as it's parent. This seems to throw of maven, which fails to retrieve the plugin information from the parent. Note that this is just a band-aid; a proper fix would declare flink-parent as the parent of force-shading, but this is the easier fix. --- pom.xml | 3 --- tools/force-shading/pom.xml | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 78f87e430ef54..fabc652236466 100644 --- a/pom.xml +++ b/pom.xml @@ -1827,9 +1827,6 @@ under the License. - com.diffplug.spotless spotless-maven-plugin diff --git a/tools/force-shading/pom.xml b/tools/force-shading/pom.xml index 86fc6a7f01126..6ba1c2e907ee3 100644 --- a/tools/force-shading/pom.xml +++ b/tools/force-shading/pom.xml @@ -43,6 +43,21 @@ under the License. jar + + + + + + com.diffplug.spotless + spotless-maven-plugin + 2.4.2 + + + + + release