Package org.apache.maven.monitor.event

Examples of org.apache.maven.monitor.event.DefaultEventMonitor


        // TODO [BP]: do we set one per mojo? where to do it?
        Logger logger = loggerManager.getLoggerForComponent( Mojo.ROLE );

        if ( logger != null )
        {
            request.addEventMonitor( new DefaultEventMonitor( logger ) );
        }

        if ( commandLine.hasOption( CLIManager.NON_RECURSIVE ) )
        {
            request.setRecursive( false );
View Full Code Here


        // TODO [BP]: do we set one per mojo? where to do it?
        Logger logger = loggerManager.getLoggerForComponent( Mojo.ROLE );

        if ( logger != null )
        {
            request.addEventMonitor( new DefaultEventMonitor( logger ) );
        }

        if ( commandLine.hasOption( CLIManager.NON_RECURSIVE ) )
        {
            request.setRecursive( false );
View Full Code Here

        // TODO [BP]: do we set one per mojo? where to do it?
        Logger logger = loggerManager.getLoggerForComponent( Mojo.ROLE );

        if ( logger != null )
        {
            request.addEventMonitor( new DefaultEventMonitor( logger ) );
        }

        if ( commandLine.hasOption( CLIManager.NON_RECURSIVE ) )
        {
            request.setRecursive( false );
View Full Code Here

    protected void testArchetype(String groupId, String artifactId, String version, Properties archetypeRequiredParameters) throws Exception {
        File targetDir = new File(baseDir, "target/archetypes/" + artifactId);
        FileUtils.deleteDirectory(targetDir);
        targetDir.mkdirs();
        EventMonitor eventMonitor = new DefaultEventMonitor(new PlexusLoggerAdapter(
                new MavenEmbedderConsoleLogger()));

        Properties props = new Properties();
        props.setProperty("archetypeGroupId", groupId);
        props.setProperty("archetypeArtifactId", artifactId);
View Full Code Here

        // TODO [BP]: do we set one per mojo? where to do it?
        Logger logger = loggerManager.getLoggerForComponent( Mojo.ROLE );

        if ( logger != null )
        {
            request.addEventMonitor( new DefaultEventMonitor( logger ) );
        }

        if ( commandLine.hasOption( CLIManager.NON_RECURSIVE ) )
        {
            request.setRecursive( false );
View Full Code Here

   
    protected void testArchetype(String groupId, String artifactId, String version) throws Exception {
        File targetDir = new File(baseDir, "target/archetypes/" + artifactId);
        FileUtils.deleteDirectory(targetDir);
        targetDir.mkdirs();
        EventMonitor eventMonitor = new DefaultEventMonitor(new PlexusLoggerAdapter(
                        new MavenEmbedderConsoleLogger()));
        Properties props = new Properties();
        props.setProperty("archetypeGroupId", groupId);
        props.setProperty("archetypeArtifactId", artifactId);
        props.setProperty("archetypeVersion", version);
View Full Code Here

        // TODO [BP]: do we set one per mojo? where to do it?
        Logger logger = loggerManager.getLoggerForComponent( Mojo.ROLE );

        if ( logger != null )
        {
            request.addEventMonitor( new DefaultEventMonitor( logger ) );
        }

        if ( commandLine.hasOption( CLIManager.NON_RECURSIVE ) )
        {
            request.setRecursive( false );
View Full Code Here

      getLog().warn("can not stop the maven embedder", e);
    }
  }

  protected void executeGoals() throws MojoExecutionException {
    EventMonitor eventMonitor = new DefaultEventMonitor(new PlexusLoggerAdapter(maven.getLogger()));
    boolean hasJavaSources = PomUtils.getJavaSourceFiles( executedProject ).size()>0;
    boolean hasJavaTests = PomUtils.getJavaTestFiles( executedProject ).size()>0;

    for (Report report : Report.getReports()) {
      ReportHandler reportHandler = report.getReportHandler();
View Full Code Here

          MavenEmbedder embedder = new MavenEmbedder();
          embedder.setClassLoader(Thread.currentThread()
              .getContextClassLoader());
          embedder.start();
          embedder.execute(reactorProjects, Collections
              .singletonList(qualifiedGoal), new DefaultEventMonitor(
              new PlexusLoggerAdapter(embedder.getLogger())),
              new ConsoleDownloadMonitor(), properties,
              ((MavenProject) reactorProjects.get(0)).getBasedir());
          embedderWorked = true;
        }
View Full Code Here

      getLog().warn("can not stop the maven embedder", e);
    }
  }

  protected void executeGoals() throws MojoExecutionException {
    EventMonitor eventMonitor = new DefaultEventMonitor(new PlexusLoggerAdapter(maven.getLogger()));
    boolean hasJavaSources = PomUtils.getJavaSourceFiles( executedProject ).size()>0;
    boolean hasJavaTests = PomUtils.getJavaTestFiles( executedProject ).size()>0;

    for (Report report : Report.getReports()) {
      ReportHandler reportHandler = report.getReportHandler();
View Full Code Here

TOP

Related Classes of org.apache.maven.monitor.event.DefaultEventMonitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.