本文整理了Java中org.apache.maven.plugins.annotations.Mojo.<init>()
方法的一些代码示例,展示了Mojo.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mojo.<init>()
方法的具体详情如下:
包路径:org.apache.maven.plugins.annotations.Mojo
类名称:Mojo
方法名:<init>
暂无
代码示例来源:origin: eirslett/frontend-maven-plugin
@Mojo(name="jspm", defaultPhase = LifecyclePhase.GENERATE_RESOURCES)
public class JspmMojo extends AbstractFrontendMojo {
/**
* JSPM arguments. Default is "install".
*/
@Parameter(defaultValue = "install", property = "frontend.bower.arguments", required = false)
private String arguments;
/**
* Skips execution of this mojo.
*/
@Parameter(property = "skip.jspm", defaultValue = "${skip.jspm}")
private boolean skip;
@Override
protected boolean skipExecution() {
return this.skip;
}
@Override
protected void execute(FrontendPluginFactory factory) throws TaskRunnerException {
factory.getJspmRunner().execute(arguments, environmentVariables);
}
}
代码示例来源:origin: jooby-project/jooby
@Mojo(name = "apitool", requiresDependencyResolution = ResolutionScope.COMPILE,
defaultPhase = LifecyclePhase.PREPARE_PACKAGE)
public class ApiToolMojo extends AbstractMojo {
@Component
private MavenProject mavenProject;
@Parameter(property = "main.class", defaultValue = "${application.class}")
protected String mainClass;
代码示例来源:origin: apache/usergrid
@Mojo( name = "setup" )
public class SetupMojo extends MainMojo {
@Component
private MavenProjectHelper projectHelper;
代码示例来源:origin: eirslett/frontend-maven-plugin
@Mojo(name="karma", defaultPhase = LifecyclePhase.TEST)
public final class KarmaRunMojo extends AbstractFrontendMojo {
/**
* Path to your karma configuration file, relative to the working directory (default is "karma.conf.js")
*/
@Parameter(defaultValue = "karma.conf.js", property = "karmaConfPath")
private String karmaConfPath;
/**
* Skips execution of this mojo.
*/
@Parameter(property = "skip.karma", defaultValue = "${skip.karma}")
private boolean skip;
@Override
protected boolean skipExecution() {
return this.skip;
}
@Override
public void execute(FrontendPluginFactory factory) throws TaskRunnerException {
factory.getKarmaRunner().execute("start " + karmaConfPath, environmentVariables);
}
}
代码示例来源:origin: eirslett/frontend-maven-plugin
@Mojo(name = "bower", defaultPhase = LifecyclePhase.GENERATE_RESOURCES)
public final class BowerMojo extends AbstractFrontendMojo {
@Parameter(defaultValue = "install", property = "frontend.bower.arguments", required = false)
private String arguments;
@Parameter(property = "skip.bower", defaultValue = "${skip.bower}")
private boolean skip;
@Parameter(property = "session", defaultValue = "${session}", readonly = true)
private MavenSession session;
private boolean bowerInheritsProxyConfigFromMaven;
@Component(role = SettingsDecrypter.class)
private SettingsDecrypter decrypter;
代码示例来源:origin: apache/usergrid
@Mojo( name = "runner", requiresDependencyResolution = ResolutionScope.TEST,
requiresDependencyCollection = ResolutionScope.TEST )
public class RunnerMojo extends MainMojo {
@Component
private MavenProjectHelper projectHelper;
代码示例来源:origin: MorphiaOrg/morphia
@Mojo(name = "revapi-config", defaultPhase = LifecyclePhase.GENERATE_RESOURCES)
public class RevApiConfig extends AbstractMojo {
@Parameter(name = "input", defaultValue = "${project.basedir}/config/revapi-input.json")
private File input;
@Parameter(name = "output", defaultValue = "${project.basedir}/config/revapi.json")
private File output;
代码示例来源:origin: eirslett/frontend-maven-plugin
@Mojo(name="npm", defaultPhase = LifecyclePhase.GENERATE_RESOURCES)
public final class NpmMojo extends AbstractFrontendMojo {
@Parameter(defaultValue = "install", property = "frontend.npm.arguments", required = false)
private String arguments;
@Parameter(property = "frontend.npm.npmInheritsProxyConfigFromMaven", required = false, defaultValue = "true")
private boolean npmInheritsProxyConfigFromMaven;
@Parameter(property = NPM_REGISTRY_URL, required = false, defaultValue = "")
private String npmRegistryURL;
private MavenSession session;
@Component
private BuildContext buildContext;
@Component(role = SettingsDecrypter.class)
private SettingsDecrypter decrypter;
代码示例来源:origin: vipshop/Saturn
@Mojo(name = "zip", requiresDependencyResolution = ResolutionScope.RUNTIME)
@Execute(phase = LifecyclePhase.PACKAGE)
public class SaturnJobZipMojo extends AbstractMojo {
@Component
private MavenProjectHelper projectHelper;
代码示例来源:origin: runelite/runelite
@Mojo(
name = "build-index",
defaultPhase = LifecyclePhase.GENERATE_RESOURCES
@Parameter(required = true)
private File archiveOverlayDirectory;
@Parameter(required = true)
private File indexFile;
代码示例来源:origin: eirslett/frontend-maven-plugin
@Mojo(name="gulp", defaultPhase = LifecyclePhase.GENERATE_RESOURCES)
public final class GulpMojo extends AbstractFrontendMojo {
@Parameter(property = "frontend.gulp.arguments")
private String arguments;
@Parameter(property = "triggerfiles")
private List<File> triggerfiles;
@Parameter(property = "srcdir")
private File srcdir;
private boolean skip;
@Component
private BuildContext buildContext;
代码示例来源:origin: com.github.swissquote/zet-maven-plugin
/**
* Starts a shell in a running container and binds it's IO to the current process
*/
@Mojo(name = "shell", defaultPhase = LifecyclePhase.NONE, threadSafe = true, requiresDependencyResolution = ResolutionScope.COMPILE)
public class ShellMojo extends AbstractZetMojo {
@Component
private Prompter prompter;
@Override
public void executeInternal() throws MojoExecutionException, MojoFailureException {
Shell.execute(getRuntime(), prompter, getLog(), getService());
}
}
代码示例来源:origin: spullara/mustache.java
@Mojo(name = "validate", defaultPhase = LifecyclePhase.PROCESS_RESOURCES)
public class MustacheValidationMojo extends AbstractMojo {
@Parameter(defaultValue = "src/main/resources")
private File sourceDirectory;
@Parameter(defaultValue = "target/classes")
private File outputDirectory;
@Parameter(defaultValue = "mustache")
private String extension;
代码示例来源:origin: eirslett/frontend-maven-plugin
@Mojo(name="ember", defaultPhase = LifecyclePhase.GENERATE_RESOURCES)
public final class EmberMojo extends AbstractFrontendMojo {
@Parameter(property = "frontend.ember.arguments")
private String arguments;
@Parameter(property = "triggerfiles")
private List<File> triggerfiles;
@Parameter(property = "srcdir")
private File srcdir;
private boolean skip;
@Component
private BuildContext buildContext;
代码示例来源:origin: org.codehaus.mojo/wagon-maven-plugin
/**
* Merge artifacts from one Maven repository to another Maven repository.
*/
@Mojo( name = "merge-maven-repos" , requiresProject = false)
public class MergeMavenRepoMojo
extends AbstractCopyMojo
{
@Component
private MavenRepoMerger mavenRepoMerger;
@Override
protected void copy( Wagon srcWagon, Wagon targetWagon )
throws IOException, WagonException
{
mavenRepoMerger.merge( srcWagon, targetWagon, optimize, this.getLog() );
}
}
代码示例来源:origin: jeremylong/DependencyCheck
@Mojo(
name = "check",
defaultPhase = LifecyclePhase.VERIFY,
@Parameter(property = "name", defaultValue = "dependency-check", required = true)
private String name = "dependency-check";
代码示例来源:origin: eirslett/frontend-maven-plugin
@Mojo(name="webpack", defaultPhase = LifecyclePhase.GENERATE_RESOURCES)
public final class WebpackMojo extends AbstractFrontendMojo {
@Parameter(property = "frontend.webpack.arguments")
private String arguments;
@Parameter(property = "triggerfiles")
private List<File> triggerfiles;
@Parameter(property = "srcdir")
private File srcdir;
private boolean skip;
@Component
private BuildContext buildContext;
代码示例来源:origin: runelite/runelite
@Mojo(
name = "assemble",
defaultPhase = LifecyclePhase.GENERATE_RESOURCES
@Parameter(required = true)
private File scriptDirectory;
@Parameter(required = true)
private File outputDirectory;
代码示例来源:origin: eirslett/frontend-maven-plugin
@Mojo(name="grunt", defaultPhase = LifecyclePhase.GENERATE_RESOURCES)
public final class GruntMojo extends AbstractFrontendMojo {
@Parameter(property = "frontend.grunt.arguments")
private String arguments;
@Parameter(property = "triggerfiles")
private List<File> triggerfiles;
@Parameter(property = "srcdir")
private File srcdir;
private boolean skip;
@Component
private BuildContext buildContext;
代码示例来源:origin: fabric8io/docker-maven-plugin
@Mojo(name = "push", defaultPhase = LifecyclePhase.DEPLOY)
public class PushMojo extends AbstractDockerMojo {
@Parameter(property = "docker.push.registry")
private String pushRegistry;
@Parameter(property = "docker.skip.push", defaultValue = "false")
private boolean skipPush;
@Parameter(property = "docker.skip.tag", defaultValue = "false")
private boolean skipTag;
内容来源于网络,如有侵权,请联系作者删除!