Skip to content

Commit 5e6bdda

Browse files
committed
Make the enforcer plugin work in Eclipse
This eliminates the warning: "maven-enforcer-plugin (goal "enforce") is ignored by m2e" And instead, enforcer problems are now visible in Eclipse. I tried doing it only on runConfiguration and not runIncremental, but it caused weirdness: the enforcer errors would appear for a couple of seconds and then disappear again after the incremental compile finished. Hopefully having it happen on incremental build every time won't cause too many problems for large projects like fiji.git which take several seconds to run through the RequireReproducibleBuilds enforcer rule...
1 parent c23bab8 commit 5e6bdda

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,6 +1369,22 @@ Projects wishing to use pom-scijava as a parent project need to override the &lt
13691369
</execute>
13701370
</action>
13711371
</pluginExecution>
1372+
<pluginExecution>
1373+
<pluginExecutionFilter>
1374+
<groupId>org.apache.maven.plugins</groupId>
1375+
<artifactId>maven-enforcer-plugin</artifactId>
1376+
<versionRange>[1.0.0,)</versionRange>
1377+
<goals>
1378+
<goal>enforce</goal>
1379+
</goals>
1380+
</pluginExecutionFilter>
1381+
<action>
1382+
<execute>
1383+
<runOnIncremental>true</runOnIncremental>
1384+
<runOnConfiguration>true</runOnConfiguration>
1385+
</execute>
1386+
</action>
1387+
</pluginExecution>
13721388
<pluginExecution>
13731389
<pluginExecutionFilter>
13741390
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)