Skip to content

Commit 777b058

Browse files
committed
Fixes #93 Add profile to avoid showing warnings for maven plugin plugin goals not supported in m2e
1 parent f9585af commit 777b058

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

pom.xml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
</reporting>
151151

152152
<profiles>
153+
153154
<profile>
154155
<id>run-its</id>
155156
<activation>
@@ -184,5 +185,48 @@
184185
</plugins>
185186
</build>
186187
</profile>
188+
189+
<!-- This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
190+
<profile>
191+
<id>only-eclipse</id>
192+
<activation>
193+
<property>
194+
<name>m2e.version</name>
195+
</property>
196+
</activation>
197+
<build>
198+
<pluginManagement>
199+
<plugins>
200+
<plugin>
201+
<groupId>org.eclipse.m2e</groupId>
202+
<artifactId>lifecycle-mapping</artifactId>
203+
<version>1.0.0</version>
204+
<configuration>
205+
<lifecycleMappingMetadata>
206+
<pluginExecutions>
207+
<pluginExecution>
208+
<pluginExecutionFilter>
209+
<groupId>org.apache.maven.plugins</groupId>
210+
<artifactId>maven-plugin-plugin</artifactId>
211+
<versionRange>[3.5,)</versionRange>
212+
<goals>
213+
<goal>descriptor</goal>
214+
<goal>helpmojo</goal>
215+
</goals>
216+
</pluginExecutionFilter>
217+
<action>
218+
<ignore/>
219+
</action>
220+
</pluginExecution>
221+
</pluginExecutions>
222+
</lifecycleMappingMetadata>
223+
</configuration>
224+
</plugin>
225+
</plugins>
226+
</pluginManagement>
227+
</build>
228+
</profile>
229+
187230
</profiles>
231+
188232
</project>

0 commit comments

Comments
 (0)