本文整理了Java中org.apache.maven.plugins.annotations.Execute
类的一些代码示例,展示了Execute
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Execute
类的具体详情如下:
包路径:org.apache.maven.plugins.annotations.Execute
类名称:Execute
暂无
代码示例来源:origin: vipshop/Saturn
@Mojo(name = "run", requiresDependencyResolution = ResolutionScope.RUNTIME)
@Execute(phase = LifecyclePhase.COMPILE)
public class SaturnJobRunMojo extends AbstractMojo {
@Parameter(property = "namespace")
private String namespace;
@Parameter(property = "executorName")
private String executorName;
代码示例来源:origin: vipshop/Saturn
@Mojo(name = "zip", requiresDependencyResolution = ResolutionScope.RUNTIME)
@Execute(phase = LifecyclePhase.PACKAGE)
public class SaturnJobZipMojo extends AbstractMojo {
代码示例来源:origin: org.apache.maven.plugin-tools/maven-plugin-tools-annotations
assertEquals( "foo", mojo.name() );
assertEquals( true, mojo.threadSafe() );
assertEquals( false, mojo.aggregator() );
assertEquals( LifecyclePhase.COMPILE, mojo.defaultPhase() );
assertEquals( "compiler", execute.goal() );
assertEquals( "my-lifecycle", execute.lifecycle() );
assertEquals( LifecyclePhase.PACKAGE, execute.phase() );
代码示例来源:origin: electronicarts/ea-async
@Mojo(name = "instrument",
defaultPhase = LifecyclePhase.PROCESS_CLASSES,
requiresProject = false,
threadSafe = true,
requiresDependencyResolution = ResolutionScope.RUNTIME)
@Execute(goal = "instrument", phase = LifecyclePhase.PROCESS_CLASSES)
public class MainMojo extends AbstractAsyncMojo
代码示例来源:origin: jooby-project/jooby
@Mojo(name = "assets", defaultPhase = LifecyclePhase.PREPARE_PACKAGE,
requiresDependencyResolution = ResolutionScope.COMPILE)
@Execute(phase = LifecyclePhase.PREPARE_PACKAGE)
public class AssetMojo extends AbstractMojo {
private MavenProject mavenProject;
@Parameter(property = "main.class", defaultValue = "${application.class}")
protected String mainClass;
@Parameter(defaultValue = "${project.build.outputDirectory}")
private File output;
@Parameter(defaultValue = "${project.build.directory}${file.separator}__public_")
private File assemblyOutput;
代码示例来源:origin: com.atlassian.maven.plugins/jira-maven-plugin
@Mojo(name = "run", requiresDependencyResolution = ResolutionScope.TEST)
@Execute(phase = LifecyclePhase.PACKAGE)
public class JiraRunMojo extends RunMojo
{
@Override
protected String getDefaultProductId() throws MojoExecutionException
{
return ProductHandlerFactory.JIRA;
}
}
代码示例来源:origin: jooby-project/jooby
@Mojo(name = "run", threadSafe = true, requiresDependencyResolution = ResolutionScope.TEST)
@Execute(phase = LifecyclePhase.TEST_COMPILE)
public class JoobyMojo extends AbstractMojo {
private static final Object LOCK = new Object();
@Parameter(defaultValue = "${project}", required = true, readonly = true)
private MavenProject mavenProject;
@Parameter(defaultValue = "${session}", required = true, readonly = true)
protected MavenSession session;
@Parameter(property = "main.class", defaultValue = "${application.class}")
protected String mainClass;
代码示例来源:origin: com.atlassian.maven.plugins/jira-maven-plugin
@Mojo(name = "debug", requiresDependencyResolution = ResolutionScope.TEST)
@Execute(phase = LifecyclePhase.PACKAGE)
public class JiraDebugMojo extends DebugMojo
{
@Override
protected String getDefaultProductId() throws MojoExecutionException
{
return ProductHandlerFactory.JIRA;
}
}
代码示例来源:origin: electronicarts/ea-async
@Mojo(name = "instrument-test",
defaultPhase = LifecyclePhase.PROCESS_TEST_CLASSES,
requiresProject = false,
requiresDirectInvocation = false,
requiresDependencyResolution = ResolutionScope.TEST)
@Execute(goal = "instrument-test", phase = LifecyclePhase.PROCESS_TEST_CLASSES)
public class TestMojo extends AbstractAsyncMojo
@Parameter(property = "maven.test.skip")
private boolean skip;
@Parameter(defaultValue = "${project.build.testOutputDirectory}", required = true)
private File testClassesDirectory;
代码示例来源:origin: com.atlassian.maven.plugins/maven-stash-plugin
@Mojo(name = "remote-test", requiresDependencyResolution = ResolutionScope.TEST, defaultPhase = LifecyclePhase.PRE_INTEGRATION_TEST)
@Execute(phase = LifecyclePhase.PACKAGE)
public class StashRemoteTestMojo extends RemoteTestMojo
{
}
代码示例来源:origin: com.atlassian.maven.plugins/maven-amps-plugin
/**
* Runs the plugin via the plugins 3 container.
*
* <strong>This is an experimental goal and may be removed in future versions</strong>
*/
@Mojo(name = "debug-container")
@Execute(phase = LifecyclePhase.PACKAGE)
public class DebugContainerMojo extends AbstractProductAwareMojo
{
@Parameter(property = "container.version", defaultValue = "LATEST")
private String containerVersion;
public void execute() throws MojoExecutionException, MojoFailureException
{
MavenProject project = getMavenContext().getProject();
File pluginFile = new File(project.getBuild().getDirectory(), project.getBuild().getFinalName() + ".jar");
getMavenGoals().copyContainerToOutputDirectory(containerVersion);
getMavenGoals().debugStandaloneContainer(pluginFile);
}
}
代码示例来源:origin: com.atlassian.maven.plugins/confluence-maven-plugin
@Mojo(name = "run", requiresDependencyResolution = ResolutionScope.TEST)
@Execute(phase = LifecyclePhase.PACKAGE)
public class ConfluenceRunMojo extends RunMojo
{
@Override
protected String getDefaultProductId() throws MojoExecutionException
{
return ProductHandlerFactory.CONFLUENCE;
}
}
代码示例来源:origin: com.atlassian.maven.plugins/amps-maven-plugin
/**
* Runs the plugin via the plugins 3 container.
*
* <strong>This is an experimental goal and may be removed in future versions</strong>
*/
@Mojo(name = "debug-container")
@Execute(phase = LifecyclePhase.PACKAGE)
public class DebugContainerMojo extends AbstractProductAwareMojo
{
@Parameter(property = "container.version", defaultValue = "LATEST")
private String containerVersion;
public void execute() throws MojoExecutionException, MojoFailureException
{
MavenProject project = getMavenContext().getProject();
File pluginFile = new File(project.getBuild().getDirectory(), project.getBuild().getFinalName() + ".jar");
getMavenGoals().copyContainerToOutputDirectory(containerVersion);
getMavenGoals().debugStandaloneContainer(pluginFile);
}
}
代码示例来源:origin: com.atlassian.maven.plugins/maven-crowd-plugin
@Mojo(name = "run", requiresDependencyResolution = ResolutionScope.TEST)
@Execute(phase = LifecyclePhase.PACKAGE)
public class CrowdRunMojo extends RunMojo
{
@Override
protected String getDefaultProductId() throws MojoExecutionException
{
return ProductHandlerFactory.CROWD;
}
}
代码示例来源:origin: fabric8io/fabric8-maven-plugin
/**
* This goal forks the install goal then applies the generated kubernetes resources to the current cluster.
*
* Note that the goals fabric8:resource and fabric8:build must be bound to the proper execution phases.
*
* @author roland
* @since 09/06/16
*/
@Mojo(name = "deploy", requiresDependencyResolution = ResolutionScope.COMPILE, defaultPhase = LifecyclePhase.VALIDATE)
@Execute(phase = LifecyclePhase.INSTALL)
public class DeployMojo extends ApplyMojo {
@Parameter(property = "docker.skip.deploy", defaultValue = "false")
protected boolean skipDeploy;
@Override
public void executeInternal() throws MojoExecutionException {
if (skipDeploy) {
return;
}
super.executeInternal();
}
}
代码示例来源:origin: com.atlassian.maven.plugins/maven-jira-plugin
@Mojo(name = "debug", requiresDependencyResolution = ResolutionScope.TEST)
@Execute(phase = LifecyclePhase.PACKAGE)
public class JiraDebugMojo extends DebugMojo
{
@Override
protected String getDefaultProductId() throws MojoExecutionException
{
return ProductHandlerFactory.JIRA;
}
}
代码示例来源:origin: wildfly/wildfly-maven-plugin
@Mojo(name = "redeploy-only", threadSafe = true)
@Execute(phase = LifecyclePhase.NONE)
public class RedeployOnlyMojo extends RedeployMojo {
@Parameter(alias = "content-url", property = PropertyNames.DEPLOYMENT_CONTENT_URL)
private URL contentUrl;
代码示例来源:origin: com.atlassian.maven.plugins/fecru-maven-plugin
@Mojo(name = "run", requiresDependencyResolution = ResolutionScope.TEST)
@Execute(phase = LifecyclePhase.PACKAGE)
public class FeCruRunMojo extends RunMojo
{
@Override
protected String getDefaultProductId() throws MojoExecutionException
{
return ProductHandlerFactory.FECRU;
}
}
代码示例来源:origin: zolyfarkas/spf4j
@Mojo(name = "descriptor", requiresDependencyResolution = ResolutionScope.COMPILE)
@Execute(phase = LifecyclePhase.VERIFY)
public final class ApiDescriptorMojo
extends BaseJDiffMojo {
@Parameter(defaultValue = "${project.artifactId}-${project.version}")
private String apiname;
代码示例来源:origin: com.atlassian.maven.plugins/bamboo-maven-plugin
@Mojo(name = "remote-test", requiresDependencyResolution = ResolutionScope.TEST, defaultPhase = LifecyclePhase.PRE_INTEGRATION_TEST)
@Execute(phase = LifecyclePhase.PACKAGE)
public class BambooRemoteTestMojo extends RemoteTestMojo
{
}
内容来源于网络,如有侵权,请联系作者删除!