From fe89d91c8cfa0f38de98b0fe900954b969e0ed85 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 15 Sep 2017 11:09:46 +0100 Subject: [PATCH] Add flatten plugin to publish poms with no hierarchy Also strips out repositories and profiles and other stuff that users don't need in their dependency management. And adds the license and project metadata automatically. --- .gitignore | 1 + pom.xml | 186 +++++++++++++-------- spring-cloud-function-dependencies/pom.xml | 53 +----- 3 files changed, 124 insertions(+), 116 deletions(-) diff --git a/.gitignore b/.gitignore index b5eeb1e40..7d88e55a4 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ _site/ coverage-error.log .apt_generated credentials.yml +.flattened-pom.xml \ No newline at end of file diff --git a/pom.xml b/pom.xml index a51d2a797..3d1bdb0b7 100644 --- a/pom.xml +++ b/pom.xml @@ -61,6 +61,37 @@ + + + org.codehaus.mojo + flatten-maven-plugin + 1.0.0 + + oss + + flatten + + + + + + flatten + process-resources + + flatten + + + + + flatten.clean + clean + + clean + + + + + @@ -92,74 +123,97 @@ + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.codehaus.mojo + + + flatten-maven-plugin + + + [1.0.0,) + + + flatten + + + + + + + + + + - - - spring - - true - - - - spring-snapshots - Spring Snapshots - https://repo.spring.io/libs-snapshot-local - - true - - - false - - - - spring-milestones - Spring Milestones - https://repo.spring.io/libs-milestone-local - - false - - - - spring-releases - Spring Releases - https://repo.spring.io/release - - false - - - - - - spring-snapshots - Spring Snapshots - https://repo.spring.io/libs-snapshot-local - - true - - - false - - - - spring-milestones - Spring Milestones - https://repo.spring.io/libs-milestone-local - - false - - - - spring-releases - Spring Releases - https://repo.spring.io/libs-release-local - - false - - - - - + + + spring-snapshots + Spring Snapshots + https://repo.spring.io/libs-snapshot-local + + true + + + false + + + + spring-milestones + Spring Milestones + https://repo.spring.io/libs-milestone-local + + false + + + + spring-releases + Spring Releases + https://repo.spring.io/release + + false + + + + + + spring-snapshots + Spring Snapshots + https://repo.spring.io/libs-snapshot-local + + true + + + false + + + + spring-milestones + Spring Milestones + https://repo.spring.io/libs-milestone-local + + false + + + + spring-releases + Spring Releases + https://repo.spring.io/libs-release-local + + false + + + + diff --git a/spring-cloud-function-dependencies/pom.xml b/spring-cloud-function-dependencies/pom.xml index 7ca152ad9..ba128458e 100644 --- a/spring-cloud-function-dependencies/pom.xml +++ b/spring-cloud-function-dependencies/pom.xml @@ -75,56 +75,9 @@ spring - - - spring-snapshots - Spring Snapshots - https://repo.spring.io/libs-snapshot-local - - true - - - false - - - - spring-milestones - Spring Milestones - https://repo.spring.io/libs-milestone-local - - false - - - - spring-releases - Spring Releases - https://repo.spring.io/release - - false - - - - - - spring-snapshots - Spring Snapshots - https://repo.spring.io/libs-snapshot-local - - true - - - false - - - - spring-milestones - Spring Milestones - https://repo.spring.io/libs-milestone-local - - false - - - + + true +