View Javadoc
1   package org.andromda.maven.plugin;
2   
3   import org.andromda.core.AndroMDAServer;
4   import org.andromda.core.configuration.Configuration;
5   
6   /**
7    * Provides the ability to stop the AndroMDA server.
8    *
9    * @author Chad Brandon
10   * @goal stop-server
11   * @requiresProject false
12   * @requiresDependencyResolution runtime
13   */
14  public class AndroMDAServerStopMojo
15      extends AbstractAndroMDAMojo
16  {
17      /**
18       * @see org.andromda.maven.plugin.AbstractAndroMDAMojo#execute(org.andromda.core.configuration.Configuration)
19       */
20      public void execute(final Configuration configuration)
21      {
22          final AndroMDAServer server = AndroMDAServer.newInstance();
23          server.stop(configuration);
24      }
25  }