You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Stephen Connolly <st...@gmail.com> on 2009/06/21 23:09:54 UTC

Re: multimodule project: jetty plugin running two webapp-modules on same port

you'll need another module that depends on the two web apps

On Sunday, June 21, 2009, aldana <al...@gmx.de> wrote:
>
> hi,
>
> I got following project structure:
>
> app1/
>   -core-stuff
>   -webapp1/
>   -webapp2/
>
> I tried to put jetty plugin config to app1/pom.xml and expected that
> submodules with war packaging would inherit this setting. This does not work
> because jetty plugin moans about core-stuff/ not having a webapp folder.
>
> Now my questions are:
> -Is it possible to tell a plugin run only to be applied on a certain
> packaging (war in my case). Is there a possiblity to configure a plugin
> execution by packaging type? If yes, is maven reactor so clever that both
> apps are indeed deployed to the same port and no adress-already-in-use
> problem occurs?
> -Is there another alternative to run two sub-module webapps under the same
> port with maven jetty plugin?
>
> thanks.
>
> -----
> manuel aldana
> aldana((at))gmx.de <http://gmx.de>
> software-engineering blog: http://www.aldana-online.de
> --
> View this message in context: http://www.nabble.com/multimodule-project%3A-jetty-plugin-running-two-webapp-modules-on-same-port-tp24138613p24138613.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: multimodule project: jetty plugin running two webapp-modules on same port

Posted by Stephen Connolly <st...@gmail.com>.
which is why you need a third module...

the third module is the one that you run jetty:run in.

2009/6/22 aldana <al...@gmx.de>:
>
> I tried this out, but it would not work, because jetty:run config is not
> "merged" to both webapps and they are deployed at once to the same port, but
> jetty:run goal is executed sequentially for both webapps.
>
>
> Stephen Connolly-2 wrote:
>>
>> you'll need another module that depends on the two web apps
>>
>> On Sunday, June 21, 2009, aldana <al...@gmx.de> wrote:
>>>
>>> hi,
>>>
>>> I got following project structure:
>>>
>>> app1/
>>>   -core-stuff
>>>   -webapp1/
>>>   -webapp2/
>>>
>>> I tried to put jetty plugin config to app1/pom.xml and expected that
>>> submodules with war packaging would inherit this setting. This does not
>>> work
>>> because jetty plugin moans about core-stuff/ not having a webapp folder.
>>>
>>> Now my questions are:
>>> -Is it possible to tell a plugin run only to be applied on a certain
>>> packaging (war in my case). Is there a possiblity to configure a plugin
>>> execution by packaging type? If yes, is maven reactor so clever that both
>>> apps are indeed deployed to the same port and no adress-already-in-use
>>> problem occurs?
>>> -Is there another alternative to run two sub-module webapps under the
>>> same
>>> port with maven jetty plugin?
>>>
>>> thanks.
>>>
>>> -----
>>> manuel aldana
>>> aldana((at))gmx.de <http://gmx.de>
>>> software-engineering blog: http://www.aldana-online.de
>>> --
>>> View this message in context:
>>> http://www.nabble.com/multimodule-project%3A-jetty-plugin-running-two-webapp-modules-on-same-port-tp24138613p24138613.html
>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
> -----
> manuel aldana
> aldana((at))gmx.de
> software-engineering blog: http://www.aldana-online.de
> --
> View this message in context: http://www.nabble.com/multimodule-project%3A-jetty-plugin-running-two-webapp-modules-on-same-port-tp24138613p24139869.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: multimodule project: jetty plugin running two webapp-modules on same port

Posted by aldana <al...@gmx.de>.
I tried this out, but it would not work, because jetty:run config is not
"merged" to both webapps and they are deployed at once to the same port, but
jetty:run goal is executed sequentially for both webapps. 


Stephen Connolly-2 wrote:
> 
> you'll need another module that depends on the two web apps
> 
> On Sunday, June 21, 2009, aldana <al...@gmx.de> wrote:
>>
>> hi,
>>
>> I got following project structure:
>>
>> app1/
>>   -core-stuff
>>   -webapp1/
>>   -webapp2/
>>
>> I tried to put jetty plugin config to app1/pom.xml and expected that
>> submodules with war packaging would inherit this setting. This does not
>> work
>> because jetty plugin moans about core-stuff/ not having a webapp folder.
>>
>> Now my questions are:
>> -Is it possible to tell a plugin run only to be applied on a certain
>> packaging (war in my case). Is there a possiblity to configure a plugin
>> execution by packaging type? If yes, is maven reactor so clever that both
>> apps are indeed deployed to the same port and no adress-already-in-use
>> problem occurs?
>> -Is there another alternative to run two sub-module webapps under the
>> same
>> port with maven jetty plugin?
>>
>> thanks.
>>
>> -----
>> manuel aldana
>> aldana((at))gmx.de <http://gmx.de>
>> software-engineering blog: http://www.aldana-online.de
>> --
>> View this message in context:
>> http://www.nabble.com/multimodule-project%3A-jetty-plugin-running-two-webapp-modules-on-same-port-tp24138613p24138613.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 


-----
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de
-- 
View this message in context: http://www.nabble.com/multimodule-project%3A-jetty-plugin-running-two-webapp-modules-on-same-port-tp24138613p24139869.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org