This is tricky as AFAIK each Maven module just produces a single output artifact. So if
you need a JAR and a WAR, perhaps you need 2 separate modules? E.g., ec2-demo and
ec2-demo-webapp?
This way the former contains the code for the JAR, along with deps + shell scripts, etc.,
and the latter has the GUI that you've built, and has dependencies on the former so
the JAR (and its deps) are in your WEB-INF/lib directory when the WAR is built.
HTH
Manik
On 25 May 2010, at 12:38, Noel OConnor wrote:
Hi,
I'm trying to fix the assembly stage of the EC2 demo and I'm hitting a brick wall
due to my limited maven knowledge.
The EC2 demo builds two artifacts, a JAR file containing the demo code and a WAR file
which is a basic UI.
Both compile fine but when it comes to assembly into the infinispan-all.zip the jars that
both of these depend on are not bundled in the modules/lib and the war is just a renamed
copy of the jar.
The correctly assembled war is present in the demo/ec2/target directory but the war
contained in infinispan-all.zip is just a renamed copy of the jar.
Has anybody got some time to take a look ?
cheers
Noel
_______________________________________________
infinispan-dev mailing list
infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Manik Surtani
manik(a)jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org