Community
Participate
Working Groups
Build Identifier: According to the Programmer Guide, plan projects should be created as follows: > This is done by creating a new faceted project and then applying the OSGi Plan facet. However, doing this gives the following error: > Nature org.eclipse.virgo.ide.facet.core.plannature is missing prerequisite nature org.springframework.ide.eclipse.core.springnature. and the plan facet is not added. Adding the facet to a Spring project works. Reproducible: Always Steps to Reproduce: Create a new faceted project and then apply the OSGi Plan facet.
Hmm.. right now it's working, but that's because it is now actually adding the org.springframework.ide.eclipse.core.springnature facet! Don't know how that got in there, but my understanding is that we do not want that added, *and* we don't want the error.
Unless I hear otherwise, I'm going to assume that we also want to get rid of the: org.springframework.ide.eclipse.core.springbuilder But the virgo pannature is also getting added. org.eclipse.virgo.ide.facet.core.plannature I'm going to assume that we want that nature in addition to adding the facet? Now, the weird thing is that the code for adding the plan facet doesn't seem to be doing anything. That's: fProject.installProjectFacet(ProjectFacetsManager.getProjectFacet(FacetCorePlugin.PLAN_FACET_ID) .getDefaultVersion(), null, monitor); Instead, it all seems to be coming as a consequence of adding the Spring nature. Some kind of magic going on there.
(In reply to comment #2) > Now, the weird thing is that the code for adding the plan facet doesn't seem to > be doing anything. That's: > > > fProject.installProjectFacet(ProjectFacetsManager.getProjectFacet(FacetCorePlugin.PLAN_FACET_ID) > .getDefaultVersion(), null, monitor); > > Instead, it all seems to be coming as a consequence of adding the Spring > nature. Some kind of magic going on there. Miles that looks right to me. You'll want to remove the bit that adds the Spring nature though. You'll also want to go to the plugin.xml for all 3 of our facet types (Plan, PAR & Bundle) & remove the <requires-nature> dependency on the Spring nature.
http://git.eclipse.org/c/virgo/org.eclipse.virgo.ide.git/commit/?id=521ff1df5c43a084b762e5f9915577510c2ba850