You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/10/12 21:11:01 UTC

(maven) branch master updated (a709014340 -> 8aa4ae18d4)

This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git


    from a709014340 build: bump actions/download-artifact from 8.0.1 to 8.0.2 (#13418)
     new 054488084e Skip Spotless in the JDK 27 site build too
     new d7f9c28ae8 Skip Spotless on JDK 27 through a POM profile
     new 8aa4ae18d4 Activate the JDK 27 Spotless profile by property, not <jdk>

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/maven.yml |  6 ++----
 pom.xml                     | 16 ++++++++++++++++
 2 files changed, 18 insertions(+), 4 deletions(-)


(maven) 02/03: Skip Spotless on JDK 27 through a POM profile

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git

commit d7f9c28ae8aa68265ed857b2a5fe535b2de0d763
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Mon Oct 12 19:22:29 2026 +0000

    Skip Spotless on JDK 27 through a POM profile
    
    The profile applies to local builds as well as CI, so the -Dspotless.skip
    arguments leave the workflow. Drop it once maven-parent ships a
    palantir-java-format that runs on JDK 27 (palantir/palantir-java-format#1786).
---
 .github/workflows/maven.yml |  9 +++------
 pom.xml                     | 11 +++++++++++
 2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 5dab576e5c..2777daa379 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -222,13 +222,11 @@ jobs:
 
       - name: Build with downloaded Maven
         shell: bash
-        # palantir-java-format crashes on JDK 27 (palantir/palantir-java-format#1786); drop the skip once a fixed release is in maven-parent
-        run: mvn verify -Papache-release -Dgpg.skip=true -e -B -V ${{ matrix.java == '27' && '-Dspotless.skip=true' || '' }}
+        run: mvn verify -Papache-release -Dgpg.skip=true -e -B -V
 
       - name: Build site with downloaded Maven
         shell: bash
-        # the javadoc report forks a build that runs Spotless; same JDK 27 skip as above
-        run: mvn site -e -B -V -Preporting ${{ matrix.java == '27' && '-Dspotless.skip=true' || '' }}
+        run: mvn site -e -B -V -Preporting
 
       - name: Upload Mimir caches
         uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -328,8 +326,7 @@ jobs:
 
       - name: Build Maven and ITs and run them
         shell: bash
-        # palantir-java-format crashes on JDK 27 (palantir/palantir-java-format#1786); drop the skip once a fixed release is in maven-parent
-        run: mvn install -e -B -V -Prun-its,mimir ${{ matrix.java == '27' && '-Dspotless.skip=true' || '' }}
+        run: mvn install -e -B -V -Prun-its,mimir
 
       - name: Upload Mimir caches
         uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
diff --git a/pom.xml b/pom.xml
index c7d9cfef09..fdf762de93 100644
--- a/pom.xml
+++ b/pom.xml
@@ -978,6 +978,17 @@ under the License.
   </build>
 
   <profiles>
+    <profile>
+      <!-- palantir-java-format crashes on JDK 27 (palantir/palantir-java-format#1786);
+           drop this profile once maven-parent ships a fixed release -->
+      <id>jdk27-skip-spotless</id>
+      <activation>
+        <jdk>[27,)</jdk>
+      </activation>
+      <properties>
+        <spotless.skip>true</spotless.skip>
+      </properties>
+    </profile>
     <profile>
       <id>mockito</id>
       <activation>


(maven) 01/03: Skip Spotless in the JDK 27 site build too

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 054488084e9180625f878c10110d596fdc5712d7
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Mon Oct 12 14:32:45 2026 +0000

    Skip Spotless in the JDK 27 site build too
    
    The javadoc report forks a build that runs spotless:check, which crashes on
    JDK 27 like the main build (palantir/palantir-java-format#1786).
---
 .github/workflows/maven.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 035358ea72..5dab576e5c 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -227,7 +227,8 @@ jobs:
 
       - name: Build site with downloaded Maven
         shell: bash
-        run: mvn site -e -B -V -Preporting
+        # the javadoc report forks a build that runs Spotless; same JDK 27 skip as above
+        run: mvn site -e -B -V -Preporting ${{ matrix.java == '27' && '-Dspotless.skip=true' || '' }}
 
       - name: Upload Mimir caches
         uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1


(maven) 03/03: Activate the JDK 27 Spotless profile by property, not

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 8aa4ae18d4a0a514a8319a40c800ad13368bc48a
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Mon Oct 12 22:04:49 2026 +0200

    Activate the JDK 27 Spotless profile by property, not <jdk>
    
    The model builder tests in maven-impl build the root POM in sessions
    without java.version, where a <jdk> activation is an error.
---
 pom.xml | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index fdf762de93..72c784caaf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -980,10 +980,15 @@ under the License.
   <profiles>
     <profile>
       <!-- palantir-java-format crashes on JDK 27 (palantir/palantir-java-format#1786);
-           drop this profile once maven-parent ships a fixed release -->
+           drop this profile once maven-parent ships a fixed release.
+           Activated by property, not <jdk>: the model builder tests build this POM in sessions
+           without java.version, where a <jdk> activation is an error. -->
       <id>jdk27-skip-spotless</id>
       <activation>
-        <jdk>[27,)</jdk>
+        <property>
+          <name>java.specification.version</name>
+          <value>27</value>
+        </property>
       </activation>
       <properties>
         <spotless.skip>true</spotless.skip>