META-INF.plexus.components.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-interceptor Show documentation
Show all versions of maven-interceptor Show documentation
Plexus module that intercepts invocations of key Maven components
so that Hudson can monitor what's going on in Maven.
<!-- MAVEN-INTERCEPTION-TO-BE-MASKED: see MavenUtil.java for how we use this marker --> <!-- ******************************************************************************* * * Copyright (c) 2004-2009 Oracle Corporation. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * * Kohsuke Kawaguchi * ******************************************************************************* --> <!-- Override the plugin manager. TODO: this is fragile, as newer versions of Maven may add more <requirement>s or change configuration. Figure out how to do interception in plexus. --> <component-set> <components> <component> <role>org.apache.maven.plugin.PluginManager</role> <implementation>hudson.maven.agent.PluginManagerInterceptor</implementation> <requirements> <requirement> <role>org.apache.maven.project.path.PathTranslator</role> </requirement> <requirement> <role>org.apache.maven.plugin.MavenPluginCollector</role> </requirement> <requirement> <role>org.apache.maven.plugin.version.PluginVersionManager</role> </requirement> <requirement> <role>org.apache.maven.artifact.factory.ArtifactFactory</role> </requirement> <requirement> <role>org.apache.maven.artifact.resolver.ArtifactResolver</role> </requirement> <requirement> <role>org.apache.maven.artifact.metadata.ArtifactMetadataSource</role> </requirement> <requirement> <role>org.apache.maven.plugin.PluginMappingManager</role> </requirement> <requirement> <role>org.apache.maven.execution.RuntimeInformation</role> </requirement> <requirement> <role>org.apache.maven.project.MavenProjectBuilder</role> </requirement> </requirements> </component> <component> <role>org.apache.maven.lifecycle.LifecycleExecutor</role> <implementation>org.apache.maven.lifecycle.LifecycleExecutorInterceptor</implementation> <requirements> <requirement> <role>org.apache.maven.plugin.PluginManager</role> </requirement> <requirement> <role>org.apache.maven.extension.ExtensionManager</role> </requirement> <requirement> <role>org.apache.maven.artifact.handler.manager.ArtifactHandlerManager</role> </requirement> </requirements> <configuration> <lifecycles> <lifecycle> <id>default</id> <!-- START SNIPPET: lifecycle --> <phases> <phase>validate</phase> <phase>initialize</phase> <phase>generate-sources</phase> <phase>process-sources</phase> <phase>generate-resources</phase> <phase>process-resources</phase> <phase>compile</phase> <phase>process-classes</phase> <phase>generate-test-sources</phase> <phase>process-test-sources</phase> <phase>generate-test-resources</phase> <phase>process-test-resources</phase> <phase>test-compile</phase> <phase>process-test-classes</phase> <phase>test</phase> <phase>package</phase> <phase>pre-integration-test</phase> <phase>integration-test</phase> <phase>post-integration-test</phase> <phase>verify</phase> <phase>install</phase> <phase>deploy</phase> </phases> <!-- END SNIPPET: lifecycle --> </lifecycle> <lifecycle> <id>clean</id> <phases> <phase>pre-clean</phase> <phase>clean</phase> <phase>post-clean</phase> </phases> <default-phases> <clean>org.apache.maven.plugins:maven-clean-plugin:clean</clean> </default-phases> </lifecycle> <lifecycle> <id>site</id> <phases> <phase>pre-site</phase> <phase>site</phase> <phase>post-site</phase> <phase>site-deploy</phase> </phases> <default-phases> <site>org.apache.maven.plugins:maven-site-plugin:site</site> <site-deploy>org.apache.maven.plugins:maven-site-plugin:deploy</site-deploy> </default-phases> </lifecycle> </lifecycles> <!-- START SNIPPET: default-reports --> <defaultReports> <report>org.apache.maven.plugins:maven-project-info-reports-plugin</report> <!-- TODO: currently in mojo - should they be defaults any more? <report>org.apache.maven.plugins:maven-checkstyle-plugin</report> <report>org.apache.maven.plugins:maven-javadoc-plugin</report> <report>org.apache.maven.plugins:maven-changelog-plugin</report> <report>org.apache.maven.plugins:maven-surefire-report-plugin</report> <report>org.apache.maven.plugins:maven-jdepend-plugin</report> <report>org.apache.maven.plugins:maven-jxr-plugin</report> <report>org.apache.maven.plugins:maven-taglist-plugin</report> --> </defaultReports> <!-- END SNIPPET: default-reports --> <!-- START SNIPPET: default-lifecycle --> <!-- NOT USED, ACCORDING TO CODE. <defaultPhases> <process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources> <compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile> <process-test-resources>org.apache.maven.plugins:maven-resources-plugin:testResources</process-test-resources> <test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile> <test>org.apache.maven.plugins:maven-surefire-plugin:test</test> <package> org.apache.maven.plugins:maven-jar-plugin:jar, org.apache.maven.plugins:maven-source-plugin:jar </package> <install>org.apache.maven.plugins:maven-install-plugin:install</install> <deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy> </defaultPhases> --> <!-- END SNIPPET: default-lifecycle --> </configuration> </component> </components> </component-set>