当前位置: 首页>>代码示例>>Java>>正文


Java BuildPluginManager类代码示例

本文整理汇总了Java中org.apache.maven.plugin.BuildPluginManager的典型用法代码示例。如果您正苦于以下问题:Java BuildPluginManager类的具体用法?Java BuildPluginManager怎么用?Java BuildPluginManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


BuildPluginManager类属于org.apache.maven.plugin包,在下文中一共展示了BuildPluginManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: MavenEnvironment

import org.apache.maven.plugin.BuildPluginManager; //导入依赖的package包/类
public MavenEnvironment(MavenSession aMavenSession, BuildPluginManager aBuildPluginManager, Log aLog,
        DependencyTreeBuilder aDependencyTreeBuilder, ArtifactRepository aLocalRepository,
        SecDispatcher aSecurityDispatcher, MavenProjectBuilder aProjectBuilder,
        LifecycleExecutor aLifecycleExecutor, ArtifactFactory aArtifactFactory,
        ArtifactMetadataSource aArtifactMetadataSource, ArtifactCollector aArtifactCollector, RuntimeInformation aRuntimeInformation,
        MojoExecution aExecution) {
    mavenSession = aMavenSession;
    buildPluginManager = aBuildPluginManager;
    log = aLog;
    dependencyTreeBuilder = aDependencyTreeBuilder;
    localRepository = aLocalRepository;
    securityDispatcher = aSecurityDispatcher;
    projectBuilder = aProjectBuilder;
    lifecycleExecutor = aLifecycleExecutor;
    artifactFactory = aArtifactFactory;
    artifactMetadataSource = aArtifactMetadataSource;
    artifactCollector = aArtifactCollector;
    runtimeInformation = aRuntimeInformation;
    mojoExecution = aExecution;
}
 
开发者ID:mirkosertic,项目名称:mavensonarsputnik,代码行数:21,代码来源:MavenEnvironment.java

示例2: SetupsMojoTestHelper

import org.apache.maven.plugin.BuildPluginManager; //导入依赖的package包/类
public SetupsMojoTestHelper( AbstractSetupsMojo mojo ) throws IOException {
   this.workingDir = new File( System.getProperty( "java.io.tmpdir" ), "unit_test_working" );

   this.mojo = mojo;

   this.mojo.workingDir = this.workingDir.getCanonicalPath();
   this.mojo.root = FitNesseHelper.DEFAULT_ROOT;
   this.mojo.project = new MavenProject();
   this.mojo.project.setFile( new File( getClass().getResource( "pom.xml" ).getPath() ) );
   this.mojo.pluginDescriptor = new PluginDescriptor();
   this.mojo.pluginManager = mock( BuildPluginManager.class );
   this.mojo.session = mock( MavenSession.class );

   this.logStream = new ByteArrayOutputStream();
   this.mojo.setLog( new DefaultLog( new PrintStreamLogger( Logger.LEVEL_INFO, "test", new PrintStream( this.logStream ) ) ) );
}
 
开发者ID:ZsZs,项目名称:FitNesseLauncher,代码行数:17,代码来源:SetupsMojoTestHelper.java

示例3: execute

import org.apache.maven.plugin.BuildPluginManager; //导入依赖的package包/类
public static void execute(MavenProject mavenProject,
                           MavenSession mavenSession,
                           BuildPluginManager pluginManager) throws MojoExecutionException {
    executeMojo(
            plugin(
                    groupId("org.apache.maven.plugins"),
                    artifactId("maven-dependency-plugin"),
                    version("2.4")
            ),
            goal("list"),
            configuration(
                    element(name("outputFile"), "${project.build.directory}/" + FILENAME)
            ),
            executionEnvironment(
                    mavenProject,
                    mavenSession,
                    pluginManager
            )
    );
}
 
开发者ID:heroku,项目名称:heroku-maven-plugin,代码行数:21,代码来源:ListDependencies.java

示例4: execute

import org.apache.maven.plugin.BuildPluginManager; //导入依赖的package包/类
public static void execute(MavenProject mavenProject,
                           MavenSession mavenSession,
                           BuildPluginManager pluginManager) throws MojoExecutionException {
    executeMojo(
            plugin(
                    groupId("org.apache.maven.plugins"),
                    artifactId("maven-dependency-plugin"),
                    version("2.4")
            ),
            goal("copy-dependencies"),
            configuration(
                    element(name("outputDirectory"), "${project.build.directory}/dependency")
            ),
            executionEnvironment(
                    mavenProject,
                    mavenSession,
                    pluginManager
            )
    );
}
 
开发者ID:heroku,项目名称:heroku-maven-plugin,代码行数:21,代码来源:CopyDependencies.java

示例5: execute

import org.apache.maven.plugin.BuildPluginManager; //导入依赖的package包/类
public static void execute(MavenProject mavenProject,
                           MavenSession mavenSession,
                           BuildPluginManager pluginManager,
                           String webappRunnerversion) throws MojoExecutionException {
    executeMojo(
            plugin(
                    groupId("org.apache.maven.plugins"),
                    artifactId("maven-dependency-plugin"),
                    version("2.4")
            ),
            goal("copy"),
            configuration(
                    element(name("artifactItems"),
                            element(name("artifactItem"),
                                    element(name("groupId"), "com.github.jsimone"),
                                    element(name("artifactId"), "webapp-runner"),
                                    element(name("version"), webappRunnerversion),
                                    element(name("destFileName"), "webapp-runner.jar")))
            ),
            executionEnvironment(
                    mavenProject,
                    mavenSession,
                    pluginManager
            )
    );
}
 
开发者ID:heroku,项目名称:heroku-maven-plugin,代码行数:27,代码来源:CopyWebappRunner.java

示例6: initialize

import org.apache.maven.plugin.BuildPluginManager; //导入依赖的package包/类
public static void initialize(MavenSession aMavenSession, BuildPluginManager aBuildPluginManager, Log aLog,
        DependencyTreeBuilder aDependencyTreeBuilder, ArtifactRepository aLocalRepository,
        SecDispatcher aSecurityDispatcher, MavenProjectBuilder aProjectBuilder,
        LifecycleExecutor aLifecycleExecutor, ArtifactFactory aArtifactFactory,
        ArtifactMetadataSource aArtifactMetadataSource, ArtifactCollector aArtifactCollector, RuntimeInformation aRuntimeInformation, MojoExecution aExecution) {
    ENVIRONMENT.set(new MavenEnvironment(aMavenSession, aBuildPluginManager, aLog,
            aDependencyTreeBuilder, aLocalRepository,
            aSecurityDispatcher, aProjectBuilder,
            aLifecycleExecutor, aArtifactFactory,
            aArtifactMetadataSource, aArtifactCollector, aRuntimeInformation, aExecution));
}
 
开发者ID:mirkosertic,项目名称:mavensonarsputnik,代码行数:12,代码来源:MavenEnvironment.java

示例7: NonDexSurefireExecution

import org.apache.maven.plugin.BuildPluginManager; //导入依赖的package包/类
public NonDexSurefireExecution(Mode mode, int seed, Pattern filter, long start, long end, String nondexDir,
        String nondexJarDir, Plugin surefire, String originalArgLine, MavenProject mavenProject,
        MavenSession mavenSession, BuildPluginManager pluginManager) {
    this(surefire, originalArgLine, mavenProject, mavenSession, pluginManager, nondexDir);
    this.configuration = new Configuration(mode, seed, filter, start, end, nondexDir, nondexJarDir, null,
            this.executionId, Logger.getGlobal().getLoggingLevel());
}
 
开发者ID:TestingResearchIllinois,项目名称:NonDex,代码行数:8,代码来源:NonDexSurefireExecution.java

示例8: CleanSurefireExecution

import org.apache.maven.plugin.BuildPluginManager; //导入依赖的package包/类
protected CleanSurefireExecution(Plugin surefire, String originalArgLine, String executionId,
        MavenProject mavenProject, MavenSession mavenSession, BuildPluginManager pluginManager,
        String nondexDir) {
    this.executionId = executionId;
    this.surefire = surefire;
    this.originalArgLine = sanitizeAndRemoveEnvironmentVars(originalArgLine);
    this.mavenProject = mavenProject;
    this.mavenSession = mavenSession;
    this.pluginManager = pluginManager;
    this.configuration = new Configuration(executionId, nondexDir);
}
 
开发者ID:TestingResearchIllinois,项目名称:NonDex,代码行数:12,代码来源:CleanSurefireExecution.java

示例9: DebugTask

import org.apache.maven.plugin.BuildPluginManager; //导入依赖的package包/类
public DebugTask(String test, Plugin surefire, String originalArgLine, MavenProject mavenProject,
                 MavenSession mavenSession, BuildPluginManager pluginManager,
                 List<Configuration> failingConfigurations) {
    this.test = test;
    this.surefire = surefire;
    this.originalArgLine = originalArgLine;
    this.mavenProject = mavenProject;
    this.mavenSession = mavenSession;
    this.pluginManager = pluginManager;
    this.failingConfigurations = failingConfigurations;
}
 
开发者ID:TestingResearchIllinois,项目名称:NonDex,代码行数:12,代码来源:DebugTask.java

示例10: DefaultLifecycleExecutionPlanCalculator

import org.apache.maven.plugin.BuildPluginManager; //导入依赖的package包/类
public DefaultLifecycleExecutionPlanCalculator( BuildPluginManager pluginManager,
                                                DefaultLifecycles defaultLifeCycles,
                                                MojoDescriptorCreator mojoDescriptorCreator,
                                                LifecyclePluginResolver lifecyclePluginResolver,
                                                DefaultSchedules defaultSchedules )
{
    this.pluginManager = pluginManager;
    this.defaultLifeCycles = defaultLifeCycles;
    this.mojoDescriptorCreator = mojoDescriptorCreator;
    this.lifecyclePluginResolver = lifecyclePluginResolver;
    this.defaultSchedules = defaultSchedules;
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:13,代码来源:DefaultLifecycleExecutionPlanCalculator.java

示例11: MojoDescriptorCreator

import org.apache.maven.plugin.BuildPluginManager; //导入依赖的package包/类
public MojoDescriptorCreator( PluginVersionResolver pluginVersionResolver, BuildPluginManager pluginManager,
                              PluginPrefixResolver pluginPrefixResolver,
                              LifecyclePluginResolver lifecyclePluginResolver )
{
    this.pluginVersionResolver = pluginVersionResolver;
    this.pluginManager = pluginManager;
    this.pluginPrefixResolver = pluginPrefixResolver;
    this.lifecyclePluginResolver = lifecyclePluginResolver;
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:10,代码来源:MojoDescriptorCreator.java

示例12: getBuildPluginManager

import org.apache.maven.plugin.BuildPluginManager; //导入依赖的package包/类
public BuildPluginManager getBuildPluginManager() {
    return buildPluginManager;
}
 
开发者ID:mirkosertic,项目名称:mavensonarsputnik,代码行数:4,代码来源:MavenEnvironment.java

示例13: testInitialize

import org.apache.maven.plugin.BuildPluginManager; //导入依赖的package包/类
@Test
public void testInitialize() {
    assertNull(MavenEnvironment.get());

    MavenSession aMavenSession = mock(MavenSession.class);
    BuildPluginManager aBuildPluginManager = mock(BuildPluginManager.class);
    Log aLog = mock(Log.class);
    DependencyTreeBuilder aDependencyTreeBuilder = mock(DependencyTreeBuilder.class);
    ArtifactRepository aLocalRepository = mock(ArtifactRepository.class);
    SecDispatcher aSecurityDispatcher = mock(SecDispatcher.class);
    MavenProjectBuilder aProjectBuilder = mock(MavenProjectBuilder.class);
    LifecycleExecutor aLifecycleExecutor = mock(LifecycleExecutor.class);
    ArtifactFactory aArtifactFactory = mock(ArtifactFactory.class);
    ArtifactMetadataSource aArtifactMetadataSource = mock(ArtifactMetadataSource.class);
    ArtifactCollector aArtifactCollector = mock(ArtifactCollector.class);
    RuntimeInformation aRuntimeInformation = mock(RuntimeInformation.class);
    MojoExecution theExecution = mock(MojoExecution.class);

    MavenEnvironment.initialize(aMavenSession, aBuildPluginManager, aLog,
            aDependencyTreeBuilder, aLocalRepository,
            aSecurityDispatcher, aProjectBuilder,
            aLifecycleExecutor, aArtifactFactory,
            aArtifactMetadataSource, aArtifactCollector, aRuntimeInformation, theExecution);

    MavenEnvironment theMavenEnvironment = MavenEnvironment.get();
    assertNotNull(theMavenEnvironment);

    assertSame(aMavenSession, theMavenEnvironment.getMavenSession());
    assertSame(aBuildPluginManager, theMavenEnvironment.getBuildPluginManager());
    assertSame(aLog, theMavenEnvironment.getLog());
    assertSame(aDependencyTreeBuilder, theMavenEnvironment.getDependencyTreeBuilder());
    assertSame(aLocalRepository, theMavenEnvironment.getLocalRepository());
    assertSame(aSecurityDispatcher, theMavenEnvironment.getSecurityDispatcher());
    assertSame(aProjectBuilder, theMavenEnvironment.getProjectBuilder());
    assertSame(aLifecycleExecutor, theMavenEnvironment.getLifecycleExecutor());
    assertSame(aArtifactFactory, theMavenEnvironment.getArtifactFactory());
    assertSame(aArtifactMetadataSource, theMavenEnvironment.getArtifactMetadataSource());
    assertSame(aArtifactCollector, theMavenEnvironment.getArtifactCollector());
    assertSame(aRuntimeInformation, theMavenEnvironment.getRuntimeInformation());

    MavenEnvironment.cleanUp();;
    assertNull(MavenEnvironment.get());
}
 
开发者ID:mirkosertic,项目名称:mavensonarsputnik,代码行数:44,代码来源:MavenEnvironmentTest.java

示例14: getPluginManager

import org.apache.maven.plugin.BuildPluginManager; //导入依赖的package包/类
@Override
protected BuildPluginManager getPluginManager() {
	return pluginManager;
}
 
开发者ID:fastconnect,项目名称:tibco-bwmaven,代码行数:5,代码来源:CopyBWTestDependenciesMojo.java

示例15: getPluginManager

import org.apache.maven.plugin.BuildPluginManager; //导入依赖的package包/类
@Override
protected BuildPluginManager getPluginManager() {
	// TODO Auto-generated method stub
	return pluginManager;
}
 
开发者ID:fastconnect,项目名称:tibco-bwmaven,代码行数:6,代码来源:ResolveBWDependenciesMojo.java


注:本文中的org.apache.maven.plugin.BuildPluginManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。