Skip to content

Commit

Permalink
Fixes #93 Add profile to avoid showing warnings for maven plugin plug…
Browse files Browse the repository at this point in the history
…in goals not supported in m2e
  • Loading branch information
stefanseifert committed Jun 2, 2020
1 parent f9585af commit 777b058
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
</reporting>

<profiles>

<profile>
<id>run-its</id>
<activation>
Expand Down Expand Up @@ -184,5 +185,48 @@
</plugins>
</build>
</profile>

<!-- This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
<profile>
<id>only-eclipse</id>
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
<build>
<pluginManagement>
<plugins>
<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-plugin-plugin</artifactId>
<versionRange>[3.5,)</versionRange>
<goals>
<goal>descriptor</goal>
<goal>helpmojo</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore/>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>

</profiles>

</project>

0 comments on commit 777b058

Please sign in to comment.