Thanks, no I was not aware of this.
I am not sure if this is a good idea, getting the code I am working on
re-formatted just because I want to run the tests, is very confusing.
I guess this would be fine if done at a later state, after the tests -
but then I guess it doesnt fit the maven lifecycle.
And before someone mentions this :) I dont want to specify a
"-DDO_NOT_REFORMAT" everytime I am running maven
Regards
Carsten
On 4/24/2026 1:18 PM, Stefan Seifert wrote:
are you aware of the latest change to the parent pom from konrad (not released
yet) [1]
it autoformats the code if the build is run locally, so it should solve the
problem altogether?
stefan
[1] https://issues.apache.org/jira/browse/SLING-13125
-----Original Message-----
From: Carsten Ziegeler <[email protected]>
Sent: Friday, April 24, 2026 8:46 AM
To: [email protected]
Subject: Moving spotless check to a later phase?
The spotless maven plugin as configured in the parent pom runs in a very
early phase which makes it really annoying to work on code, especially
fixing tests.
Before the tests are run the spotless plugin complains about formatting
issues.
Couldnt we move this to a later phase like verify?
Carsten
--
Carsten Ziegeler
Adobe
[email protected]
--
Carsten Ziegeler
Adobe
[email protected]