Import the code into your Eclipse IDE

Now you can Import ▸ Gradle ▸ Gradle Project into your IDE.
The project folder is called recipe-serving-web-content and lies directly in the "Sample Applications" folder you created previously with the Git clone command. (org.eclipse.virgo.samples).

Note

Before you can drag’n’drop the project onto your freshly created Virgo Server you might have to execute
Virgo ▸ Run Generation of META-INF/MANIFEST.MF (via a right click on the project) within your Eclipse IDE.

Create new Virgo Server Runtime

Define a new server

Within the IDE New ▸ Server ▸ EclipseRT ▸ Virgo Runtime and choose the directory of the previously installed Virgo server VIRGO_HOME.

Directions

Virgo has no support for Spring’s @EnableAutoConfiguration, so you have to be more explicit than in the Spring Boot version of this guide - after all, Virgo is an OSGi runtime and every bundle needs to declare its needs in the META-INF/MANIFEST.MF.

Basically, you have to specify necessary dependencies (via Import-Package or Import-Bundle headers) and the Web-ContextPath the REST service application wants to be published on.