Reputation: 9502
For some reason my Eclipse sometimes changes the context root of my web application in the weblogic.xml file to the name of the project. The name of the project is different from the context root. How do I prevent this?
Upvotes: 3
Views: 1892
Reputation: 386
Add following property to your pom.xml:
<properties>
<m2eclipse.wtp.contextRoot>my-context</m2eclipse.wtp.contextRoot>
</properties>
Upvotes: 3
Reputation: 1
In your workspace, find the following file:
{workspace}\{project name}\.settings\org.eclipse.wst.common.component
Then edit it with the following:
<property name="context-root" value="your context root"/>
Upvotes: 0