From 73a79cf0095e7fbbe11fa85fe24c26e2f73bb889 Mon Sep 17 00:00:00 2001 From: Filip Hrisafov Date: Sun, 17 May 2020 12:08:00 +0200 Subject: [PATCH] #1857 Use flatten-maven-plugin to remove test dependencies from released pom For some reason when using annotationProcessorPaths IntelliJ includes the provided and test scoped dependencies on the annotation processor paths. With this change there would be no test dependencies that IntelliJ can add. --- .gitignore | 1 + parent/pom.xml | 34 ++++++++++++++++++++++++++++++++++ processor/pom.xml | 16 ++++++++++++++++ 3 files changed, 51 insertions(+) diff --git a/.gitignore b/.gitignore index 0363e0707..a33f0014e 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ test-output # Misc. .DS_Store checkstyle.cache +.flattened-pom.xml diff --git a/parent/pom.xml b/parent/pom.xml index 5da1dfcbc..3e78dcfb8 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -578,6 +578,11 @@ + + org.codehaus.mojo + flatten-maven-plugin + 1.2.2 + @@ -614,6 +619,7 @@ mvnw* **/*.asciidoc **/binding.xjb + **/*.flattened-pom.xml SLASHSTAR_STYLE @@ -702,6 +708,34 @@ + + org.codehaus.mojo + flatten-maven-plugin + + + + flatten + package + + flatten + + + true + ossrh + + expand + + + + + flatten-clean + clean + + clean + + + + diff --git a/processor/pom.xml b/processor/pom.xml index dfe9bdbe6..c04730126 100644 --- a/processor/pom.xml +++ b/processor/pom.xml @@ -209,6 +209,21 @@ + + + org.codehaus.mojo + flatten-maven-plugin + + + + flatten + package + + flatten + + + + org.apache.maven.plugins maven-dependency-plugin @@ -334,6 +349,7 @@ jaxb-api 2.3.1 provided + true