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 start the AndroMDA server.
8    *
9    * @author Chad Brandon
10   * @goal start-server
11   * @requiresProject false
12   * @requiresDependencyResolution runtime
13   */
14  public class AndroMDAServerStartMojo
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          this.allowMultipleRuns = true;
23          final AndroMDAServer server = AndroMDAServer.newInstance();
24          server.start(configuration);
25      }
26  }