
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 --> <!-- The MIT License Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> <!-- 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>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy