You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2019/03/05 14:38:20 UTC

[incubator-plc4x] 01/02: PLC4X-87 - Reduce the number of exception during site generation - Moved the declaration of the fake lifecycle-mapping plugin into a dedicated profile

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git

commit 4d9b4082271b48eb20e2a43447adf57c4a6853fe
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Tue Mar 5 13:34:56 2019 +0100

    PLC4X-87 - Reduce the number of exception during site generation
    - Moved the declaration of the fake lifecycle-mapping plugin into a dedicated profile
---
 pom.xml | 73 ++++++++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 43 insertions(+), 30 deletions(-)

diff --git a/pom.xml b/pom.xml
index 895253e..14dff85 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1143,36 +1143,6 @@
           <artifactId>maven-changelog-plugin</artifactId>
           <version>2.3</version>
         </plugin>
-
-        <!--                                                                                                                                                                  
-              This is a fake plugin which is used to tell m2e (Eclipse) how                                                                                                   
-              to process this maven project.                                                                                                                                  
-        -->
-        <plugin>
-          <groupId>org.eclipse.m2e</groupId>
-          <artifactId>lifecycle-mapping</artifactId>
-          <version>1.0.0</version>
-          <configuration>
-            <lifecycleMappingMetadata>
-              <pluginExecutions>
-                <pluginExecution>
-                  <pluginExecutionFilter>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-remote-resources-plugin</artifactId>
-                    <versionRange>[1.0.0,)</versionRange>
-                    <goals>
-                      <goal>process</goal>
-                    </goals>
-                  </pluginExecutionFilter>
-                  <action>
-                    <ignore/>
-                  </action>
-                </pluginExecution>
-              </pluginExecutions>
-            </lifecycleMappingMetadata>
-          </configuration>
-        </plugin>
-
       </plugins>
     </pluginManagement>
   </build>
@@ -1722,6 +1692,49 @@
       </reporting>
     </profile>
 
+    <profile>
+      <id>only-eclipse</id>
+      <activation>
+        <property>
+          <name>m2e.version</name>
+        </property>
+      </activation>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <!--
+              This is a fake plugin which is used to tell m2e (Eclipse) how
+              to process this maven project.
+            -->
+            <plugin>
+              <groupId>org.eclipse.m2e</groupId>
+              <artifactId>lifecycle-mapping</artifactId>
+              <version>1.0.0</version>
+              <configuration>
+                <lifecycleMappingMetadata>
+                  <pluginExecutions>
+                    <pluginExecution>
+                      <pluginExecutionFilter>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-remote-resources-plugin</artifactId>
+                        <versionRange>[1.0.0,)</versionRange>
+                        <goals>
+                          <goal>process</goal>
+                        </goals>
+                      </pluginExecutionFilter>
+                      <action>
+                        <ignore/>
+                      </action>
+                    </pluginExecution>
+                  </pluginExecutions>
+                </lifecycleMappingMetadata>
+              </configuration>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
+    </profile>
+
     <!--
       This profile extends the default "apache-release" configuration with automatic checksum-
       generation for the release source artifact. It is automatically activated during the