Hmm,

I'm thinking there is no way I would have known to suggest that
configuration. This tells me that I knew even less about maven than I
thought (and I thought I knew very little already) :)

I'm glad you got something that works. I think I'm going to have to hit the
books to work out what this is doing.

Alasdair

On 12 September 2011 15:48, Barnaby Court <bco...@gmail.com> wrote:

> Thanks, the maven-bundle-plugin works.  The ideas put forth in your
> blog entry got me about half way there.  A sample pom would have
> gotten me the rest of the way.  Getting the plugin specification
> correct took a lot of digging around.  Here is what I ended up using.
> Cheers!
>
> <plugins>
>                        <plugin>
>                                <groupId>org.apache.felix</groupId>
>                                <artifactId>maven-bundle-plugin</artifactId>
>                                <extensions>true</extensions>
>                                <configuration>
>                                        <supportedProjectTypes>
>
>  <supportedProjectType>jar</supportedProjectType>
>
>  <supportedProjectType>war</supportedProjectType>
>
>  <supportedProjectType>bundle</supportedProjectType>
>                                        </supportedProjectTypes>
>                                        <instructions>
>
>  <Embed-Dependency>*;scope=compile;inline=false</Embed-Dependency>
>
>  <Embed-Directory>WEB-INF/lib</Embed-Directory>
>                                                <_wab>src/main/webapp</_wab>
>
>  <Web-ContextPath>/test-web</Web-ContextPath>
>                                        </instructions>
>                                </configuration>
>                                <executions>
>                                        <execution>
>                                                <id>bundle-bundle</id>
>                                                <phase>package</phase>
>                                                <inherited>false</inherited>
>                                                <goals>
>                                                        <goal>bundle</goal>
>                                                </goals>
>                                        </execution>
>                                </executions>
>                        </plugin>
>                        <plugin>
>                                <groupId>org.apache.maven.plugins</groupId>
>                                <artifactId>maven-war-plugin</artifactId>
>                                <configuration>
>
>  <failOnMissingWebXml>false</failOnMissingWebXml>
>                                </configuration>
>                        </plugin>
>                </plugins>
>
>
>
> On Fri, Sep 9, 2011 at 5:47 PM, Alasdair Nottingham <n...@apache.org>
> wrote:
> > Hi,
> > Have you considered using the maven-bundle-plugin to build your wab?
> > Shameless plug, but I blogged on how to do
> > this:
> http://coding.alasdair.info/2011/01/creating-web-application-bundle-using.html
> > Would that work for you? I'm interested to know.
> > Alasdair
> >
> > On 9 September 2011 21:09, Barnaby Court <bco...@gmail.com> wrote:
> >>
> >> Hi,  I'm trying to build an EBA using the eba-maven-plugin.  I am
> >> building a war file and then augmenting it using the
> >> maven-bundle-plugin to build the manifest.  The problem I am running
> >> into is that this still results in a war file.  The eba plugin is
> >> complaining because it has no jars on it's depenencies list.  Is there
> >> a way around this?  Should I be using a different method to create the
> >> bundle?  Thanks!
> >>
> >> -Barnaby
> >
> >
> >
> > --
> > Alasdair Nottingham
> > n...@apache.org
> >
>



-- 
Alasdair Nottingham
n...@apache.org

Reply via email to