]>
git.argeo.org Git - gpl/argeo-slc.git/blob - osgi/EquinoxShutdownMojo.java
1 package org
.argeo
.slc
.maven
.plugins
.osgi
;
3 import org
.apache
.maven
.plugin
.MojoExecutionException
;
4 import org
.apache
.maven
.plugin
.MojoFailureException
;
5 import org
.eclipse
.core
.runtime
.adaptor
.EclipseStarter
;
7 /** Shutdowns the Equinox runtime
8 * @goal equinox-shutdown
10 public class EquinoxShutdownMojo
extends AbstractOsgiMojo
{
12 public void execute() throws MojoExecutionException
, MojoFailureException
{
14 EclipseStarter
.shutdown();
15 } catch (Exception e
) {
16 throw new MojoExecutionException("Cannot shutdown OSGi runtime", e
);