Renaming Eclipse project names and eclipse-wtp

Hello, I need to rename my eclipse project names in order to make them unique in the eclipse workspace. I import from other project too. Unfortunately this doesn’t work together with the eclipse-wtp plugin. This places module dependencies in the “org.eclipse.wst.common.component” file without using the prefix declared in the eclipse plugin even if the eclipse-wtp plugin is applied after the modification to the eclipse project name.

I do this with the following code:

eclipse { = “somePrefix-${}”


apply plugin: ‘eclipse-wtp’

Thanks in advance, david

Can you post the actual and expected file content?

Supposed the main project name is “anyProject” and the sub-project name I want a dependency on is “webServer”. For unambiguousness in Eclipse the subproject is prefixed “anyProject-webServer” for the eclipse project only. When adding this manually to the “Deployment Assembly” section of the Eclipse project properties eclipse adds the below stated xml fragment into the “org.eclipse.wst.common.component” file. I guess the archiveName attribute is important here. All external or none renamed do not have it.


sorry, I posted that plain xml


<dependent-module archiveName=“webServer.jar” deploy-path="/WEB-INF/lib" handle=“module:/resource/anyProject-webServer/anyProject-webServer”>



So the ‘handle’ attribute is missing the ‘anyProject-’ prefixes?

Yes. I suspect that the eclipse-wtp plugin refers to the ‘’ but not for the ‘’ which was configured differently (just with that prefix). This may apply to other eclipse settings as well, e.g. for the archive name.

As a workaround you may configure the wtp component explicitly: