All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.soento.TableGeneratorMojo Maven / Gradle / Ivy

package com.soento;

import com.soento.core.base.util.JsonUtil;
import com.soento.devtools.config.Settings;
import com.soento.devtools.generator.TableGenerator;
import com.soento.generator.BaseGeneratorMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;

/**
 * @author soento
 */
@Mojo(name = "table", defaultPhase = LifecyclePhase.GENERATE_SOURCES)
public class TableGeneratorMojo extends BaseGeneratorMojo {

    @Override
    public void execute() throws MojoExecutionException, MojoFailureException {
        try {
            Settings configuration = getSettings();
            log.info(JsonUtil.prettyJson(configuration));
            TableGenerator generator = new TableGenerator(configuration);
            generator.execute();
        } catch (Exception e) {
            log.error(e.getMessage(), e);
        }

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy