Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [virgo-dev] Maven build issue with war files

The Virgo project proposal mentions that bundlor will be contributed to Eclipse. The thinking at that time was to contribute it along with the dm Server tools, but I think there may be a case for contributing it to Virgo so that it is more obviously available for batch/command line use. I will take this up internally in VMware and report back.

Glyn
On 8 Jun 2010, at 03:02, Dmitry Sklyut wrote:

Hi Chris,

Thanks for heads up.  I will take a look in there.

We ended up just doing this config for wars:

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifestFile>${bundlor.manifest.output.path}/META-INF/MANIFEST.MF</manifestFile>
                    </archive>
                    <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
                </configuration>
</plugin>

Nastier part was bundlor especially for webapps.  There is no way to plug into the war building process (from what I know).  That is run bundlor before war archive is created on the exploaded war directory.  So we ended up running bundlor 3 times :).  Once for compile (default) once on generated archive to create MANIFEST.MF for IDE usage and manual inspection and once to actually rewrite the once in the war...

Not sure if bundlor is moving over the the eclipse, but if it is - there are some things that can make it a bit easier to use.

Regards,

Dmitry

On Tue, Jun 1, 2010 at 11:08 AM, Christopher Frost <frostc@xxxxxxxxxx<mailto:frostc@xxxxxxxxxx>> wrote:

Hi Dmitry,

After the community call today my memory alerted me to some Maven work I did a while ago. We had to implement a work around to get a war file build to both exclude anything from getting packaged in the 'lib' directory. Then, in a parent pom file add in some web dependencies as they were no longer being reported up to it due to the exclude. This was a bit nasty really. I certainly know very little about Maven and our hierarchy of pom files might not be the normal way of doing things but I just wanted to give you a heads up that we had issues here. If you download the latest Greenpages sample for dm Server you will be able to see what I'm talking about in the solution pom files, greenpages.web and parent.

Chris.

--
Chris Frost
SpringSource<http://www.springsource.org/>, a division of VMware<http://www.vmware.com/>

Virgo Website<http://www.eclipse.org/virgo>, Wiki<http://wiki.eclipse.org/Virgo> and Forum<http://www.eclipse.org/forums/index.php?t=thread&frm_id=159>

_______________________________________________
virgo-dev mailing list
virgo-dev@xxxxxxxxxxx<mailto:virgo-dev@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/virgo-dev


<ATT00001..txt>



Back to the top