01: package org.andromda.maven.plugin;
02:
03: import org.andromda.core.AndroMDAServer;
04: import org.andromda.core.configuration.Configuration;
05:
06: /**
07: * Provides the ability to start the AndroMDA server.
08: *
09: * @author Chad Brandon
10: * @goal start-server
11: * @requiresProject false
12: * @requiresDependencyResolution runtime
13: */
14: public class AndroMDAServerStartMojo extends AbstractAndroMDAMojo {
15: /**
16: * @see org.andromda.maven.plugin.AbstractAndroMDAMojo#execute(org.andromda.core.configuration.Configuration)
17: */
18: public void execute(final Configuration configuration) {
19: final AndroMDAServer server = AndroMDAServer.newInstance();
20: server.start(configuration);
21: }
22:
23: }
|