You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The patterns are matched using `String#matches(String)` against the absolute file path.
1700
1700
1701
+
## Does Spotless support incremental builds in Eclipse?
1702
+
1703
+
Spotless comes with [m2e](https://eclipse.dev/m2e/) support. However, by default its execution is skipped in incremental builds as most developers want to fix all issues in one go via explicit `mvn spotless:apply` prior to raising a PR and don't want to be bothered with Spotless issues during working on the source code in the IDE.
1704
+
To enable it use the following parameter
1705
+
1706
+
```
1707
+
<configuration>
1708
+
<m2eEnableForIncrementalBuild>true</m2eEnableForIncrementalBuild><!-- this is false by default -->
1709
+
</configuration>
1710
+
```
1711
+
1712
+
In addition Eclipse problem markers are being emitted for goal `check`. By default they have the severity `WARNING`.
1713
+
You can adjust this with
1714
+
1715
+
```
1716
+
<configuration>
1717
+
<m2eIncrementalBuildMessageSeverity>ERROR</m2eIncrementalBuildMessageSeverity><!-- WARNING or ERROR -->
1718
+
</configuration>
1719
+
```
1720
+
1721
+
Note that for Incremental build support the goals have to be bound to a phase prior to `test`.
1722
+
1701
1723
<aname="examples"></a>
1702
1724
1703
1725
## Example configurations (from real-world projects)
0 commit comments