Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 2.8
-
Fix Version/s: 2.9
-
Component/s: WTP support
-
Labels:None
-
Number of attachments :
Description
There is no way at the moment to map a webapp to the root context.
A root context is configured in the org.eclipse.wst.common.component file using:
<property name="context-root" value=""/>
However, setting an empty wtpContextName in pom.xml makes the eclipse plugin default to the artifact id for the context root, giving no way to set it to an empty value.
In order to make it configurable without breaking the old behavior we could use the magic word "ROOT" to map the webapp to the root context, just like tomcat commonly does (in order to map a webapp to the root context a common option in tomcat is to name it "ROOT")
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<wtpContextName>ROOT</wtpContextName>
</configuration>
</plugin>
added in version 2.9