Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution:
Out of Date
-
Affects Version/s: 3.3.0.M2
-
Fix Version/s: LATER
-
Component/s: common/jst/core, upstream
-
Labels:None
Description
In a Maven WAR project, when I create a XHTML file, it always suggests it to be under target/m2e-wtp/web-resources.
This is annoying, cause this folder is derived and building the project will clean it.
It should use the folder I selected before opening the wizard.
New XHTML File wizard inherits this behavior from New HTML File wizard.
I reported the problem to Eclipse Bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=356873
Temporarily, we can fix New XHTML File wizard by overriding relevant methods.
Also, there is a workaround: modify file /.settings/org.eclipse.wst.common.component putting line
<wb-resource deploy-path="/" source-path="/WebContent"/>before line
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>(use actual web content root path instead of /WebContent).