Oh, no, you misunderstood my intention. You don't build a war file using
the two other wars as a dependency. The only reason you make them
dependencies is to make them available to the plugin for deployment.
Your third project doesn't really have its own artifact, other than the
*.pom file.

nagl wrote:
> by declaring the two war files as dependencies in the third project, after i
> build the third project as a war and deploy it, I am not able to access the
> first two web apps. 
> what i want to knw is a way to sort of merge the two wars. 
> now maven cargo plugin as something called uber war which does the job of
> merging. but it is quite complicated and there is very little documentation
> on it. 
>
>
>
> dchicks wrote:
>   
>> The first question is relatively straightforward. Since your wars are
>> created in different projects, just set up a third project that has the
>> artifact WAR files from the other two as dependencies. If your war files
>> are generated in different modules of the same project, you would
>> accomplish the same thing using a third module that depends on the other
>> two. Think of it like you would an assembly, in that case.
>>
>> Looking at the Tomcat plugin, I don't see any configuration for
>> deploying multiple wars at the same time. Your third project could have
>> multiple modules - one for each deployment.
>>
>> Hopefully, someone has a better answer than that. That seems a bit like
>> overkill.
>>
>> Dave
>>
>>
>> nagl wrote:
>>     
>>> So I have two wars which I deploy in tow maven projects using tomcat
>>> plugin.
>>> I want to do this in one step and be able to deploy more than one wars in
>>> a
>>> single maven project. how can i do this. any suggestions
>>>
>>> if tomcat plugin doesnt work, is there anyother way this can be done?
>>>   
>>>       
>> ---------------------------------------------------------------------
>> 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]

Reply via email to