SDN Controller Programming Guide

169
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Health Monitor UI</display-name>
</web-app>
Now update the hm-ui module POM file hm-ui/pom.xml with the extract shown in the following
hm-ui/pom.xml to generate .war listing, to generate the .war file during the build process.
hm-ui/pom.xml to generate .war:
...
<modelVersion>4.0.0</modelVersion>
<artifactId>hm-ui</artifactId>
<packaging>war</packaging>
...
<properties>
<banned.rs.paths>com.hp.hm.ui</banned.rs.paths>
<webapp.context>sdn/ui/hm</webapp.context>
<web.context.path>sdn/ui/hm<web.context.path>
</properties>
<dependencies>
...
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.6</version>
<extensions>true</extensions>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
<configuration>
<manifestLocation>${project.build.directory}/META-
INF</manifestLocation>
<supportedProjectTypes>
<supportedProjectType>bundle</supportedProjectType>