Hi,
Thanks!! That works great.
Only problem is that I now require two steps - the multiproject jar:install
from the top directory, and then the webapp war from the webapp
sub-directory.
Is there any way to get maven to do both in a single command?
cheers,
David
|---------+---------------------------->
| | Arik Kfir |
| | <[EMAIL PROTECTED]|
| | om> |
| | |
| | 04/27/2005 05:10 |
| | PM |
| | Please respond to|
| | "Maven Users |
| | List" |
| | |
|---------+---------------------------->
>---------------------------------------------------------------------------------------------------------------|
|
|
| To: Maven Users List <[email protected]>
|
| cc:
|
| Subject: Re: Single WAR from multiproject
|
>---------------------------------------------------------------------------------------------------------------|
oh, in addition, I would recommend running jar:install on each of the
other projects (you can do this more easily using the multiproject
plugin - http://maven.apache.org/using/multiproject.html) - running
jar:install will "install" the new generated jar of that project into
the repository, from which the war plugin will download and place in
your war file.
Arik Kfir wrote:
> I assume you have one project containing the web application (prolly
> src/webapp), and the other three generate the class files, which
> result in JAR files that should be placed in the WEB-INF/lib, correct?
>
> If so, simply have the webapp project use the other three as
> dependencies, and in each dependency state that you want its output to
> be included in the war, like this:
>
> <dependency>
> <groupId>the_other_proj_grp_id</groupId>
> <artifactId>the_other_proj_id</artifactId>
> <version>...</version>
> <properties>
> *<war.bundle>true</war.bundle>* > </properties>
> </dependency>
>
>
> [EMAIL PROTECTED] wrote:
>
>> Hi,
>>
>> We have 4 multiprojects which we build using Maven.
>>
>> However, now we want to create a War file from the output of all 4.
>>
>> How can I get Maven to do this?
>>
>> cheers,
>>
>> David
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]