[BROOKLYN-183] Add WAB manifest headers for brooklyn-jsgui Enable pax-web WAR Extender to find and automatically install the web application into the web container.
Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/7b5e39b0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/7b5e39b0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/7b5e39b0 Branch: refs/heads/master Commit: 7b5e39b07323367c32a7387690624c70f1c624fe Parents: 05a2c5f Author: Ciprian Ciubotariu <[email protected]> Authored: Thu Nov 12 18:06:57 2015 +0200 Committer: Ciprian Ciubotariu <[email protected]> Committed: Thu Nov 12 18:11:42 2015 +0200 ---------------------------------------------------------------------- usage/jsgui/pom.xml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/7b5e39b0/usage/jsgui/pom.xml ---------------------------------------------------------------------- diff --git a/usage/jsgui/pom.xml b/usage/jsgui/pom.xml index 7ec8c4c..3355577 100644 --- a/usage/jsgui/pom.xml +++ b/usage/jsgui/pom.xml @@ -237,6 +237,9 @@ <directory>${basedir}/src/main/license/files</directory> </webResource> </webResources> + <archive> + <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> + </archive> </configuration> </plugin> <!-- Disable the automatic LICENSE/NOTICE placement from the upstream pom, because we need to include @@ -255,6 +258,29 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <executions> + <execution> + <id>bundle-manifest</id> + <phase>process-classes</phase> + <goals> + <goal>manifest</goal> + </goals> + </execution> + </executions> + <configuration> + <supportedProjectTypes> + <supportedProjectType>war</supportedProjectType> + </supportedProjectTypes> + <instructions> + <Web-ContextPath>/</Web-ContextPath> + <Implementation-SHA-1>${buildNumber}</Implementation-SHA-1> + <Implementation-Branch>${scmBranch}</Implementation-Branch> + </instructions> + </configuration> + </plugin> </plugins> <pluginManagement>
