I have added the eclipse-wtp plugin to a Java project, and I want to use that to add Java and Utility facets to my project. However, when I added the following code:
but that gave me an error that it couldn’t find method “facet()” on the root project, so it appears it isn’t getting the right object in either case. Does anyone know what I’m doing wrong? For reference, the other plugins I have applied are ‘java’ and ‘maven’.
Out of curiosity, what is the reasoning for that? Facets can be applied to non-War/Ear projects, so why wouldn’t there be a need to generate them for those projects?
If it is helpful I can write up a JIRA improvement issue for this, but I don’t want to proceed if there is some technical reasoning why this is the case.