SDN Controller Programming Guide

171
<?xml version="1.0" encoding="UTF-8"?>
<plan name="health-monitor.plan" version="1.0.0" scoped="false"
atomic="false"
xmlns="http://www.eclipse.org/virgo/schema/plan"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.eclipse.org/virgo/schema/plan
http://www.eclipse.org/virgo/schema/plan/eclipse-virgo-
plan.xsd">
<artifact type="bundle" name="com.hp.hm.hm-model" version="1.0.0.SNAPSHOT
"/>
<artifact type="bundle" name="com.hp.hm.hm-api" version="1.0.0.SNAPSHOT
"/>
<artifact type="bundle" name="com.hp.hm.hm-dao.api"
version="1.0.0.SNAPSHOT "/>
<artifact type="bundle" name="com.hp.hm.hm-dao.model"
version="1.0.0.SNAPSHOT "/>
<artifact type="bundle" name="com.hp.hm.hm-dao" version="1.0.0.SNAPSHOT
"/>
<artifact type="bundle" name="com.hp.hm.hm-bl" version="1.0.0.SNAPSHOT
"/>
<artifact type="bundle" name="com.hp.hm.hm-rs" version="1.0.0.SNAPSHOT
"/>
<artifact type="bundle" name="com.hp.hm.hm-ui" version="1.0.0.SNAPSHOT
"/>
</plan>
Finally update the application packaging POM file hm-app/pom.xml with the extract shown in the
following listing to include the .war file into the application package.
Sample Application Packaging POM File Including UI Module:
...
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>package-app</id>
<phase>package</phase>
<configuration>
<tasks>
<mkdir dir="target/bundles" />
<copy todir="target/bundles/" flatten="true">
<fileset
dir="${user.home}/.m2/repository/com/hp/hm/">
<include name="hm-
model/${project.version}/hm-model-${project.version}.jar"/>