Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356656 - Virgo Plan project facet requires Spring nature
Summary: Virgo Plan project facet requires Spring nature
Status: RESOLVED FIXED
Alias: None
Product: Virgo
Classification: RT
Component: tooling (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 370029
Blocks: 371023
  Show dependency tree
 
Reported: 2011-09-03 03:50 EDT by Alexey Romanov CLA
Modified: 2012-02-08 18:22 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Romanov CLA 2011-09-03 03:50:01 EDT
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.
Comment 1 Miles Parker CLA 2012-02-08 14:37:04 EST
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.
Comment 2 Miles Parker CLA 2012-02-08 15:21:23 EST
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.
Comment 3 Leo Dos Santos CLA 2012-02-08 16:13:16 EST
(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.