001package org.andromda.maven.plugin;
002
003import org.andromda.core.AndroMDAServer;
004import org.andromda.core.configuration.Configuration;
005
006/**
007 * Provides the ability to stop the AndroMDA server.
008 *
009 * @author Chad Brandon
010 * @goal stop-server
011 * @requiresProject false
012 * @requiresDependencyResolution runtime
013 */
014public class AndroMDAServerStopMojo
015    extends AbstractAndroMDAMojo
016{
017    /**
018     * @see org.andromda.maven.plugin.AbstractAndroMDAMojo#execute(org.andromda.core.configuration.Configuration)
019     */
020    public void execute(final Configuration configuration)
021    {
022        final AndroMDAServer server = AndroMDAServer.newInstance();
023        server.stop(configuration);
024    }
025}