From fef0999e6c2cc725272b1f181a41ae4a009bd314 Mon Sep 17 00:00:00 2001 From: Martyn Taylor Date: Wed, 4 Mar 2015 16:27:09 +0000 Subject: [PATCH] Add source assembly to distribution build --- distribution/activemq/pom.xml | 32 ++++++ .../src/main/assembly/source-assembly.xml | 108 ++++++++++++++++++ pom.xml | 47 -------- 3 files changed, 140 insertions(+), 47 deletions(-) create mode 100644 distribution/activemq/src/main/assembly/source-assembly.xml diff --git a/distribution/activemq/pom.xml b/distribution/activemq/pom.xml index 1a3c6cba8e..b83860da27 100644 --- a/distribution/activemq/pom.xml +++ b/distribution/activemq/pom.xml @@ -183,6 +183,38 @@ + + source-release + + + apache-release + + + + + + org.apache.maven.plugins + maven-deploy-plugin + + + maven-assembly-plugin + 2.2 + + src/main/assembly/source-assembly.xml + gnu + + + + package + + single + + + + + + + diff --git a/distribution/activemq/src/main/assembly/source-assembly.xml b/distribution/activemq/src/main/assembly/source-assembly.xml new file mode 100644 index 0000000000..1f2b91f9b3 --- /dev/null +++ b/distribution/activemq/src/main/assembly/source-assembly.xml @@ -0,0 +1,108 @@ + + + + + source-release + + + zip + tar.gz + + + true + + + + + ${activemq.basedir} + / + true + + + + + %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/).*${project.build.directory}.*] + + + + + %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?maven-eclipse\.xml] + + + %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.project] + + + %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.classpath] + + + %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.iws] + + + %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.idea(/.*)?] + + + %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?out(/.*)?] + + + %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.ipr] + + + %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.iml] + + + %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.settings(/.*)?] + + + %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.externalToolBuilders(/.*)?] + + + %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.deployables(/.*)?] + + + %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.wtpmodules(/.*)?] + + + + %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?cobertura\.ser] + + + + %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?pom\.xml\.releaseBackup] + + + %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?release\.properties] + + + + + diff --git a/pom.xml b/pom.xml index bdb4dcd3f7..cc892e4fc2 100644 --- a/pom.xml +++ b/pom.xml @@ -495,7 +495,6 @@ examples distribution - - - org.apache.geronimo.genesis - apache-source-release-assembly-descriptor - - 2.0 - - - - - - - true - -