From 042711e4b977c63fea448d0d41f528ca368c659c Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 22 Feb 2022 17:33:38 +0100 Subject: [PATCH] Remove Maven warnings This commit removes the warnings that Maven emits when building the effective model of the project. This boils down to locking down plugin versions. Because there is no version for javaformat, Maven could decide to use the latest, which requires extra care to build with Java 8. This commit upgrades explicitly to the latest and configure it to be compatible with Java 8 --- .springjavaformatconfig | 1 + pom.xml | 51 +++++++++++++++++++++++++++-------------- 2 files changed, 35 insertions(+), 17 deletions(-) create mode 100644 .springjavaformatconfig diff --git a/.springjavaformatconfig b/.springjavaformatconfig new file mode 100644 index 0000000..6d408bb --- /dev/null +++ b/.springjavaformatconfig @@ -0,0 +1 @@ +java-baseline=8 diff --git a/pom.xml b/pom.xml index 57f9a3c..6821632 100644 --- a/pom.xml +++ b/pom.xml @@ -97,9 +97,10 @@ + org.apache.maven.plugins maven-javadoc-plugin - -Xdoclint:none + none @@ -300,16 +301,30 @@ + + io.spring.javaformat + spring-javaformat-maven-plugin + 0.0.31 + org.apache.maven.plugins - maven-site-plugin - - - org.apache.maven.wagon - wagon-ssh - 2.0 - - + maven-assembly-plugin + 3.3.0 + + + project + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.9.0 + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.3.1 org.apache.maven.plugins @@ -317,13 +332,14 @@ 2.5 - maven-assembly-plugin - false - - - project - - + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.1 @@ -339,7 +355,6 @@ org.apache.maven.plugins maven-surefire-plugin - 2.22.1 @@ -351,6 +366,7 @@ + org.apache.maven.plugins maven-javadoc-plugin @@ -363,6 +379,7 @@ + org.apache.maven.plugins maven-source-plugin