SDN Controller Programming Guide

143
<supportedProjectType>bundle</supportedProjectType>
<supportedProjectType>war</supportedProjectType>
</supportedProjectTypes>
<instructions>
<Import-Package>
com.sun.jersey.api.core,
com.sun.jersey.spi.container.servlet,
com.sun.jersey.server.impl.container.servlet,
com.hp.util.rs,
com.hp.util.rs.auth,
com.hp.sdn.rs.misc,*
</Import-Package>
<Export-Package>!${banned.rs.paths}</Export-Package>
<Webapp-Context>${webapp.context}</Webapp-Context>
<Web-ContextPath>${web.context.path}</Web-ContextPath>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.2</version>
<configuration>
<packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
<attachClasses>true</attachClasses>
<webResources>
<resource>
<directory>target/scr-plugin-generated</directory>
</resource>
</webResources>
<archive>
<manifestFile>${project.build.directory}/META-
INF/MANIFEST.MF</manifestFile>
<manifestEntries>
<Bundle-ClassPath>WEB-INF/classes</Bundle-ClassPath>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
Now update the application deployment plan hm-app/hm.plan (created in Application
Deployment Plan on page 110) to deploy the hm-rs module as highlighted in the following listing.
Sample Application Deployment Plan Considering REST Module: