Changeset 19608 in josm


Ignore:
Timestamp:
2026-08-09T23:38:45+02:00 (2 days ago)
Author:
Don-vip
Message:

Prevent m2e from also running checkstyle:check during its own incremental/full IDE builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pom.xml

    r19605 r19608  
    244244      </testResource>
    245245    </testResources>
     246    <pluginManagement>
     247      <plugins>
     248        <!-- Prevent m2e from also running checkstyle:check during its own
     249             incremental/full IDE builds. Without this, m2e's background build
     250             and a manually launched "mvn test" can write checkstyle-josm.xml
     251             concurrently, corrupting it. -->
     252        <plugin>
     253          <groupId>org.eclipse.m2e</groupId>
     254          <artifactId>lifecycle-mapping</artifactId>
     255          <version>1.0.0</version>
     256          <configuration>
     257            <lifecycleMappingMetadata>
     258              <pluginExecutions>
     259                <pluginExecution>
     260                  <pluginExecutionFilter>
     261                    <groupId>org.apache.maven.plugins</groupId>
     262                    <artifactId>maven-checkstyle-plugin</artifactId>
     263                    <versionRange>[0,)</versionRange>
     264                    <goals>
     265                      <goal>check</goal>
     266                    </goals>
     267                  </pluginExecutionFilter>
     268                  <action>
     269                    <ignore/>
     270                  </action>
     271                </pluginExecution>
     272              </pluginExecutions>
     273            </lifecycleMappingMetadata>
     274          </configuration>
     275        </plugin>
     276      </plugins>
     277    </pluginManagement>
    246278    <plugins>
    247279      <!-- Generate sources -->
     
    472504          <argLine>
    473505            @{argLine}
     506            <!-- Must be a real -D flag: as a configurationParameters entry it is set too late,
     507                 after java-agents below already cached the JDK's default locale provider list. -->
     508            -Djava.locale.providers=SPI,CLDR
    474509            -javaagent:${org.jmockit:jmockit:jar}
    475510            --add-opens java.base/java.io=ALL-UNNAMED
     
    485520            <configurationParameters>
    486521              file.encoding = UTF-8
    487               java.locale.providers = SPI,CLDR
    488522              junit.jupiter.extensions.autodetection.enabled = true
    489523              junit.jupiter.execution.parallel.enabled = true
     
    755789              <argLine>
    756790                @{argLine}
     791                -Djava.locale.providers=SPI,CLDR
    757792                -javaagent:${com.ginsberg:junit5-system-exit:jar}
    758793                -javaagent:${org.jmockit:jmockit:jar}
Note: See TracChangeset for help on using the changeset viewer.