From e1cb00ea48e95e9ac8933876f0ca5e7c396695c9 Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Wed, 28 Jul 2010 16:23:13 +0000 Subject: [PATCH] Include Bundlor-generated manifests in jars In the 2.0.0.M5 release bundlor successfully created manifests at target/classes/META-INF/MANIFEST.MF within each subproject directory, however they were not actually picked up by the maven-jar-plugin when creating each archive. The samples parent pom has now been configured to explictly specify the 'manifestFile' and refer to the bundlor-generated manifest. Additionally, the spring-integration-samples/pom.xml was updated with a similar configuration for the maven-jar-plugin, but in this case the spring-integration-parent/pom.xml configuration is being overwritten. The samples projects do not use Bundlor, and thus there is no generated manifest in the location mentioned above. This causes the maven-jar-plugin to error out for the samples, and as a workaround there is now a zero-length file at spring-integration-samples/src/main/resources/META-INF/MANIFEST.MF that samples refer to during jar/war packaging. Ugly, but effective. --- spring-integration-parent/pom.xml | 11 +++++++++++ spring-integration-samples/pom.xml | 17 +++++++++++++++++ .../src/main/resources/META-INF/MANIFEST.MF | 0 3 files changed, 28 insertions(+) create mode 100644 spring-integration-samples/src/main/resources/META-INF/MANIFEST.MF diff --git a/spring-integration-parent/pom.xml b/spring-integration-parent/pom.xml index 85235d7819..adf4b6c55d 100644 --- a/spring-integration-parent/pom.xml +++ b/spring-integration-parent/pom.xml @@ -355,6 +355,17 @@ + + org.apache.maven.plugins + maven-jar-plugin + 2.2 + + + target/classes/META-INF/MANIFEST.MF + + + diff --git a/spring-integration-samples/pom.xml b/spring-integration-samples/pom.xml index d2d5d53ec9..5e4d5ffbfb 100644 --- a/spring-integration-samples/pom.xml +++ b/spring-integration-samples/pom.xml @@ -27,6 +27,23 @@ ws-outbound-gateway xml + + + + org.apache.maven.plugins + maven-jar-plugin + 2.2 + + + ../src/main/resources/META-INF/MANIFEST.MF + + + + + diff --git a/spring-integration-samples/src/main/resources/META-INF/MANIFEST.MF b/spring-integration-samples/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..e69de29bb2