sens2010 / run-jetty-run

Automatically exported from code.google.com/p/run-jetty-run
0 stars 0 forks source link

Respect m2eclipse.wtp.contextRoot from POM file #160

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

One can specify m2eclipse.wtp.contextRoot in his Maven POM file to override the 
default context root when deploying the web app. to a test server, e.g.:

<properties>
  <m2eclipse.wtp.contextRoot>/my-context</m2eclipse.wtp.contextRoot>
</properties

http://wiki.eclipse.org/M2E-WTP_FAQ#How_do_I_change_the_context_root_of_my_proje
ct.3F

It would be nice if run-jetty-run was respecting this parameter if it's present 
and use it instead of defaulting to the project name.

Thanks !

What steps will reproduce the problem?
1. Create a Maven WAR project
2. Set the contextRoot property in the POM file
3. Deploy it onto a WTP server, say Tomcat: It uses the contextRoot property 
for the app URL
4. Use run-jetty-run: It uses the project name for the app URL

What Eclipse version are you using ?

Eclipse 3.8

What Run-Jetty-Run version are you using?

1.3.3.201203161919

What OS are you using ? 32bit or 64 bit?

Windows 7 64bit

Original issue reported on code.google.com by nicolas@guillaumin.me on 7 Feb 2013 at 3:52