I’m facing an issue trying to get the eclipse-wtp plugin to generate the correct configuration for an Ear project for Eclipse.
I my EAR project, I have a JAR and two WAR subprojects. If I have Gradle generate the EAR, everything seems to get wrapped up nicely. In the configurationfile ‘.settings/org.eclipse.wst.common.component’ generated for Eclipse, the deploy-path attribute for both WAR projects is ‘/’. How can I specify a project’s deploy-path? This is the file currently generated:
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="2.0">
<wb-module deploy-name="near">
<wb-resource deploy-path="/" source-path="src/main/application"/>
<dependent-module deploy-path="/" handle="module:/resource/war/war">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module deploy-path="/" handle="module:/resource/jar/jar">
<dependency-type>uses</dependency-type>
</dependent-module>
</wb-module>
</project-modules>
And a note: If I apply the ‘java’ plugin on my EAR-project, Eclipse does show all configuration options in the project properties overview. It seems the ‘JavaNature’ should not be present for EAR projects.