aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alasdair Nottingham <>
Subject Re: <_wab/> instruction ??
Date Fri, 07 Jan 2011 18:47:05 GMT
As you say it is an instruction to the maven-bundle-plugin to generate
a wab. In fact you are quoting an older copy of the pom. It should
look like this:


now, with the web content that goes into the root being in the
src/main/webapp directory rather than in the src/main/resources.

This will result in a good WAB being created. Before hand everything
was packaged in the root of the WAB which means that .class files were
servable, this is a bad practice.

Setting <_wab> moves everything on the Bundle-ClassPath into the
WEB-INF/classes directory. Assuming you put your static content in
src/main/resources This includes all the static content (and jsps)
which isn't what we want. So to fix this we put the static content in
src/main/webapp and that causes everything to go into the right place.


On 7 January 2011 15:49, Charles Moulliard <> wrote:
> Hi,
> In the pom.xml file of Aries Trader sample blog web, there is a special
> instruction <_wab/> added at the end of the configuration of the felix maven
> plugin
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <configuration>
> <instructions>
> <Web-ContextPath>/blog</Web-ContextPath>
> <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
> <Private-Package>*</Private-Package>
> <Export-Package>!*</Export-Package>
> <Import-Package>
>                            javax.servlet*;version=2.5,
>                            *
> </Import-Package>
> <_wab/>
> </instructions>
> </configuration>
> I have digged into the code of Aries but haven't found info about what is
> this command supposed to do. Can someone provide info about this command ?
> Is this instrcution used to generated the content of the bundle or WAR ?
> Regards,
> Charles

Alasdair Nottingham

View raw message