Skip to content

Commit 98fe0c4

Browse files
committed
Move eclipse m2e plugin to a separate profile (avoid warnings when not building via eclipse)
1 parent 8d6556c commit 98fe0c4

File tree

1 file changed

+69
-54
lines changed

1 file changed

+69
-54
lines changed

pom.xml

Lines changed: 69 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -455,60 +455,6 @@ under the License.
455455
<version>3.13.0</version>
456456
</plugin>
457457

458-
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
459-
<plugin>
460-
<groupId>org.eclipse.m2e</groupId>
461-
<artifactId>lifecycle-mapping</artifactId>
462-
<version>1.0.0</version>
463-
<configuration>
464-
<lifecycleMappingMetadata>
465-
<pluginExecutions>
466-
<pluginExecution>
467-
<pluginExecutionFilter>
468-
<groupId>org.apache.maven.plugins</groupId>
469-
<artifactId>maven-enforcer-plugin</artifactId>
470-
<versionRange>[1.0,)</versionRange>
471-
<goals>
472-
<goal>enforce</goal>
473-
</goals>
474-
</pluginExecutionFilter>
475-
<action>
476-
<ignore />
477-
</action>
478-
</pluginExecution>
479-
480-
<pluginExecution>
481-
<pluginExecutionFilter>
482-
<groupId>org.apache.maven.plugins</groupId>
483-
<artifactId>maven-plugin-plugin</artifactId>
484-
<versionRange>[1.0,)</versionRange>
485-
<goals>
486-
<goal>descriptor</goal>
487-
<goal>helpmojo</goal>
488-
</goals>
489-
</pluginExecutionFilter>
490-
<action>
491-
<ignore />
492-
</action>
493-
</pluginExecution>
494-
495-
<pluginExecution>
496-
<pluginExecutionFilter>
497-
<groupId>org.codehaus.plexus</groupId>
498-
<artifactId>plexus-maven-plugin</artifactId>
499-
<versionRange>[1.0,)</versionRange>
500-
<goals>
501-
<goal>descriptor</goal>
502-
</goals>
503-
</pluginExecutionFilter>
504-
<action>
505-
<ignore />
506-
</action>
507-
</pluginExecution>
508-
</pluginExecutions>
509-
</lifecycleMappingMetadata>
510-
</configuration>
511-
</plugin>
512458
</plugins>
513459
</pluginManagement>
514460

@@ -855,6 +801,75 @@ under the License.
855801
</build>
856802
</profile>
857803

804+
<profile>
805+
<id>only-eclipse</id>
806+
<activation>
807+
<property>
808+
<name>m2e.version</name>
809+
</property>
810+
</activation>
811+
<build>
812+
<pluginManagement>
813+
<plugins>
814+
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
815+
<plugin>
816+
<groupId>org.eclipse.m2e</groupId>
817+
<artifactId>lifecycle-mapping</artifactId>
818+
<version>1.0.0</version>
819+
<configuration>
820+
<lifecycleMappingMetadata>
821+
<pluginExecutions>
822+
<pluginExecution>
823+
<pluginExecutionFilter>
824+
<groupId>org.apache.maven.plugins</groupId>
825+
<artifactId>maven-enforcer-plugin</artifactId>
826+
<versionRange>[1.0,)</versionRange>
827+
<goals>
828+
<goal>enforce</goal>
829+
</goals>
830+
</pluginExecutionFilter>
831+
<action>
832+
<ignore/>
833+
</action>
834+
</pluginExecution>
835+
836+
<pluginExecution>
837+
<pluginExecutionFilter>
838+
<groupId>org.apache.maven.plugins</groupId>
839+
<artifactId>maven-plugin-plugin</artifactId>
840+
<versionRange>[1.0,)</versionRange>
841+
<goals>
842+
<goal>descriptor</goal>
843+
<goal>helpmojo</goal>
844+
</goals>
845+
</pluginExecutionFilter>
846+
<action>
847+
<ignore/>
848+
</action>
849+
</pluginExecution>
850+
851+
<pluginExecution>
852+
<pluginExecutionFilter>
853+
<groupId>org.codehaus.plexus</groupId>
854+
<artifactId>plexus-maven-plugin</artifactId>
855+
<versionRange>[1.0,)</versionRange>
856+
<goals>
857+
<goal>descriptor</goal>
858+
</goals>
859+
</pluginExecutionFilter>
860+
<action>
861+
<ignore/>
862+
</action>
863+
</pluginExecution>
864+
</pluginExecutions>
865+
</lifecycleMappingMetadata>
866+
</configuration>
867+
</plugin>
868+
</plugins>
869+
</pluginManagement>
870+
</build>
871+
</profile>
872+
858873
</profiles>
859874

860875
</project>

0 commit comments

Comments
 (0)