Author: rfscholte
Date: Sat Aug 13 09:12:25 2016
New Revision: 1756248

URL: http://svn.apache.org/viewvc?rev=1756248&view=rev
Log:
[MPLUGIN-275] Move LifecycleMapping and ArtifactHandler from maven-core to 
target packaging plugin

Added:
    maven/plugin-tools/trunk/maven-plugin-plugin/src/main/filtered-resources/
    
maven/plugin-tools/trunk/maven-plugin-plugin/src/main/filtered-resources/META-INF/
    
maven/plugin-tools/trunk/maven-plugin-plugin/src/main/filtered-resources/META-INF/plexus/
    
maven/plugin-tools/trunk/maven-plugin-plugin/src/main/filtered-resources/META-INF/plexus/components.xml
Modified:
    maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml

Modified: maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml
URL: 
http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml?rev=1756248&r1=1756247&r2=1756248&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml (original)
+++ maven/plugin-tools/trunk/maven-plugin-plugin/pom.xml Sat Aug 13 09:12:25 
2016
@@ -197,17 +197,18 @@
   </dependencies>
 
   <build>
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+      </resource>
+      <resource>
+        <directory>src/main/filtered-resources</directory>
+        <filtering>true</filtering>
+      </resource>
+    </resources>
     <pluginManagement>
       <plugins>
         <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-compiler-plugin</artifactId>
-          <configuration><!-- TODO remove when upgrading parent pom -->
-            <source>${maven.compiler.source}</source>
-            <target>${maven.compiler.target}</target>
-          </configuration>
-        </plugin>
-        <plugin>
           <groupId>org.apache.rat</groupId>
           <artifactId>apache-rat-plugin</artifactId>
           <configuration>

Added: 
maven/plugin-tools/trunk/maven-plugin-plugin/src/main/filtered-resources/META-INF/plexus/components.xml
URL: 
http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/src/main/filtered-resources/META-INF/plexus/components.xml?rev=1756248&view=auto
==============================================================================
--- 
maven/plugin-tools/trunk/maven-plugin-plugin/src/main/filtered-resources/META-INF/plexus/components.xml
 (added)
+++ 
maven/plugin-tools/trunk/maven-plugin-plugin/src/main/filtered-resources/META-INF/plexus/components.xml
 Sat Aug 13 09:12:25 2016
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License. You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied. See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<component-set>
+  <components>
+    <!--
+     | MAVEN PLUGIN
+     |-->
+    <component>
+      <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
+      <role-hint>maven-plugin</role-hint>
+      
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
+      <configuration>
+        <type>maven-plugin</type>
+        <extension>jar</extension>
+        <language>java</language>
+        <addedToClasspath>true</addedToClasspath>
+      </configuration>
+    </component>
+    
+    <!--
+      | Defining the phases with their appropriate plugins
+      ! and versions which will be executed during the 'default'
+      ! life cycle.
+    -->
+    <!--
+     | MAVEN PLUGIN
+     |-->
+    <component>
+      <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
+      <role-hint>maven-plugin</role-hint>
+      
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
+      <configuration>
+        <lifecycles>
+          <lifecycle>
+            <id>default</id>
+            <!-- START SNIPPET: maven-plugin-lifecycle -->
+            <phases>
+              <process-resources>
+                org.apache.maven.plugins:maven-resources-plugin:3.0.1:resources
+              </process-resources>
+              <compile>
+                org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile
+              </compile>
+              <process-classes>
+                
org.apache.maven.plugins:maven-plugin-plugin:${project.version}:descriptor
+              </process-classes>
+              <process-test-resources>
+                
org.apache.maven.plugins:maven-resources-plugin:3.0.1:testResources
+              </process-test-resources>
+              <test-compile>
+                
org.apache.maven.plugins:maven-compiler-plugin:3.5.1:testCompile
+              </test-compile>
+              <test>
+                org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test
+              </test>
+              <package>
+                org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar,
+                
org.apache.maven.plugins:maven-plugin-plugin:${project.version}:addPluginArtifactMetadata
+              </package>
+              <install>
+                org.apache.maven.plugins:maven-install-plugin:2.5.2:install
+              </install>
+              <deploy>
+                org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy
+              </deploy>
+            </phases>
+            <!-- END SNIPPET: maven-plugin-lifecycle -->
+          </lifecycle>
+        </lifecycles>
+      </configuration>
+    </component>
+
+  </components>
+</component-set>


Reply via email to