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

it.ness.queryable.plugin.api.AddApiMojo Maven / Gradle / Ivy

There is a newer version: 3.0.3
Show newest version
package it.ness.queryable.plugin.api;

import it.ness.queryable.plugin.QuerableBaseMojo;
import it.ness.queryable.util.MojoUtils;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;

/**
 * Queryable is maven plugin for filter defs.
 */
@Mojo(name = "add-api",
        defaultPhase = LifecyclePhase.PROCESS_RESOURCES,
        threadSafe = true)
public class AddApiMojo extends QuerableBaseMojo {

    public void execute() throws MojoExecutionException {
        init(getLog());
        if (logging) log.info(String.format("Begin generating api sources for groupId {%s}", parameters.groupId));
        MojoUtils.addApi(parameters, log);
        if (logging) log.info("Done generating api sources");
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy