Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package maven for openSUSE:Factory checked in at 2026-11-23 12:25:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/maven (Old) and /work/SRC/openSUSE:Factory/.maven.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "maven" Mon Nov 23 12:25:16 2026 rev:43 rq:1399758 version:3.10.2 Changes: -------- --- /work/SRC/openSUSE:Factory/maven/maven.changes 2026-11-16 12:28:42.750266282 +0100 +++ /work/SRC/openSUSE:Factory/.maven.new.1340718/maven.changes 2026-11-23 12:29:43.875684880 +0100 @@ -1,0 +2,33 @@ +Sun Nov 22 12:44:23 UTC 2026 - Fridrich Strba <[email protected]> + +- Upgrade to upstream release 3.10.2 + * Bug Fixes + + Enable ANSI colors on Windows 11 terminals without WT_SESSION + + Fix #13985: Do not reuse imported dependency management cached + without locations + + Let build extensions override core lifecycle mappings again + + Protect cached version range restrictions + + Respect plugin-level inherited=false when the plugin has + executions + + MNG-6864: Report well-formed-but-invalid POMs as invalid, not + malformed + + Report a clear error for an unparsable extensions.xml + * Dependency updates + + build: bump actions/setup-java from 6.2.0 to 6.3.0 + + deps: minor updates + + deps: resolver 2.0.26 + + build: bump org.codehaus.modello:modello-maven-plugin from + 2.8.1 to 2.9.0 + + build: bump org.codehaus.mojo:exec-maven-plugin from 3.6.4 to + 3.7.0 + + build: bump org.codehaus.mojo:buildnumber-maven-plugin from + 3.3.1 to 3.4.0 + + build: bump org.codehaus.mojo:build-helper-maven-plugin from + 3.7.0 to 3.8.0 + + build: bump org.codehaus.mojo:animal-sniffer-maven-plugin from + 1.29 to 1.29.1 +- Modified patch: + * 0006-Plexus-utils-4.x-Plexus-xml-3.x-and-javax.annotation.patch + + rebase + +------------------------------------------------------------------- Old: ---- apache-maven-3.10.1-src.tar.gz New: ---- apache-maven-3.10.2-src.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ maven.spec ++++++ --- /var/tmp/diff_new_pack.ENnTkN/_old 2026-11-23 12:29:45.479752408 +0100 +++ /var/tmp/diff_new_pack.ENnTkN/_new 2026-11-23 12:29:45.481752492 +0100 @@ -20,7 +20,7 @@ %global homedir %{_datadir}/%{base_name}%{?maven_version_suffix} %global confdir %{_sysconfdir}/%{base_name}%{?maven_version_suffix} Name: %{base_name}%{?maven_version_suffix} -Version: 3.10.1 +Version: 3.10.2 Release: 0 Summary: Java project management and project comprehension tool # maven itself is ASL 2.0 ++++++ 0006-Plexus-utils-4.x-Plexus-xml-3.x-and-javax.annotation.patch ++++++ --- /var/tmp/diff_new_pack.ENnTkN/_old 2026-11-23 12:29:45.550755397 +0100 +++ /var/tmp/diff_new_pack.ENnTkN/_new 2026-11-23 12:29:45.556755650 +0100 @@ -79,9 +79,9 @@ <plexusVersion>2.2.0</plexusVersion> <plexusInterpolationVersion>1.30.0</plexusInterpolationVersion> <!-- Blocked by 3.4.0+ changes, see MNG-7710, downgrade from parent 4.0.1 --> -- <version.plexus-utils>3.6.2</version.plexus-utils> -+ <version.plexus-utils>4.0.2</version.plexus-utils> -+ <version.plexus-xml>3.0.2</version.plexus-xml> +- <version.plexus-utils>3.6.4</version.plexus-utils> ++ <version.plexus-utils>4.2.0</version.plexus-utils> ++ <version.plexus-xml>3.1.1</version.plexus-xml> <guiceVersion>5.1.0</guiceVersion> <guavaVersion>33.8.0-jre</guavaVersion> <guavafailureaccessVersion>1.0.3</guavafailureaccessVersion> ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.ENnTkN/_old 2026-11-23 12:29:45.615758134 +0100 +++ /var/tmp/diff_new_pack.ENnTkN/_new 2026-11-23 12:29:45.624758512 +0100 @@ -1,6 +1,6 @@ -mtime: 1794756797 -commit: 1546372ec0a9f84fd0a8c24ff326584e73efb15f960ec02adb851a2fc0fc6151 +mtime: 1795351717 +commit: 80124d845d5923c582f4a9454c161359a90cd750d23eb538bafd38d87f0c5808 url: https://src.opensuse.org/java-packages/maven -revision: 1546372ec0a9f84fd0a8c24ff326584e73efb15f960ec02adb851a2fc0fc6151 +revision: 80124d845d5923c582f4a9454c161359a90cd750d23eb538bafd38d87f0c5808 projectscmsync: https://src.opensuse.org/java-packages/_ObsPrj ++++++ apache-maven-3.10.1-src.tar.gz -> apache-maven-3.10.2-src.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/.github/workflows/maven.yml new/apache-maven-3.10.2/.github/workflows/maven.yml --- old/apache-maven-3.10.1/.github/workflows/maven.yml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/.github/workflows/maven.yml 2026-11-18 20:48:23.000000000 +0100 @@ -46,7 +46,7 @@ with: persist-credentials: false - - uses: actions/setup-java@77dd5b2ce225ea11469928ac317850245a74ae78 # v6.2.0 + - uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0 with: java-version: 25 distribution: 'temurin' @@ -136,7 +136,7 @@ path: built-maven/ - name: Set up JDK - uses: actions/setup-java@77dd5b2ce225ea11469928ac317850245a74ae78 # v6.2.0 + uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0 with: java-version: ${{ matrix.java }} # Temurin comes from the runners' tool cache; it has no JDK 8 for macOS on Apple Silicon diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/DEPENDENCIES new/apache-maven-3.10.2/DEPENDENCIES --- old/apache-maven-3.10.1/DEPENDENCIES 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/DEPENDENCIES 2026-11-18 20:48:23.000000000 +0100 @@ -44,7 +44,7 @@ - Plexus Security Dispatcher Component (https://codehaus-plexus.github.io/plexus-sec-dispatcher/) org.codehaus.plexus:plexus-sec-dispatcher:jar:2.0 License: Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - - Plexus Common Utilities (https://codehaus-plexus.github.io/plexus-utils/) org.codehaus.plexus:plexus-utils:jar:3.6.2 + - Plexus Common Utilities (https://codehaus-plexus.github.io/plexus-utils/) org.codehaus.plexus:plexus-utils:jar:3.6.4 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) @@ -99,73 +99,73 @@ - Apache Commons Codec (https://commons.apache.org/proper/commons-codec/) commons-codec:commons-codec:jar:1.23.0 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Artifact (https://maven.apache.org/ref/3.10.1/maven-artifact/) org.apache.maven:maven-artifact:jar:3.10.1 + - Maven Artifact (https://maven.apache.org/ref/3.10.2/maven-artifact/) org.apache.maven:maven-artifact:jar:3.10.2 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Builder Support (https://maven.apache.org/ref/3.10.1/maven-builder-support/) org.apache.maven:maven-builder-support:jar:3.10.1 + - Maven Builder Support (https://maven.apache.org/ref/3.10.2/maven-builder-support/) org.apache.maven:maven-builder-support:jar:3.10.2 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Compat (https://maven.apache.org/ref/3.10.1/maven-compat/) org.apache.maven:maven-compat:jar:3.10.1 + - Maven Compat (https://maven.apache.org/ref/3.10.2/maven-compat/) org.apache.maven:maven-compat:jar:3.10.2 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Core (https://maven.apache.org/ref/3.10.1/maven-core/) org.apache.maven:maven-core:jar:3.10.1 + - Maven Core (https://maven.apache.org/ref/3.10.2/maven-core/) org.apache.maven:maven-core:jar:3.10.2 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Embedder (https://maven.apache.org/ref/3.10.1/maven-embedder/) org.apache.maven:maven-embedder:jar:3.10.1 + - Maven Embedder (https://maven.apache.org/ref/3.10.2/maven-embedder/) org.apache.maven:maven-embedder:jar:3.10.2 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven 3 Message Colors (https://maven.apache.org/ref/3.10.1/maven-jline/) org.apache.maven:maven-jline:jar:3.10.1 + - Maven 3 Message Colors (https://maven.apache.org/ref/3.10.2/maven-jline/) org.apache.maven:maven-jline:jar:3.10.2 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Model (https://maven.apache.org/ref/3.10.1/maven-model/) org.apache.maven:maven-model:jar:3.10.1 + - Maven Model (https://maven.apache.org/ref/3.10.2/maven-model/) org.apache.maven:maven-model:jar:3.10.2 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Model Builder (https://maven.apache.org/ref/3.10.1/maven-model-builder/) org.apache.maven:maven-model-builder:jar:3.10.1 + - Maven Model Builder (https://maven.apache.org/ref/3.10.2/maven-model-builder/) org.apache.maven:maven-model-builder:jar:3.10.2 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Plugin API (https://maven.apache.org/ref/3.10.1/maven-plugin-api/) org.apache.maven:maven-plugin-api:jar:3.10.1 + - Maven Plugin API (https://maven.apache.org/ref/3.10.2/maven-plugin-api/) org.apache.maven:maven-plugin-api:jar:3.10.2 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Repository Metadata Model (https://maven.apache.org/ref/3.10.1/maven-repository-metadata/) org.apache.maven:maven-repository-metadata:jar:3.10.1 + - Maven Repository Metadata Model (https://maven.apache.org/ref/3.10.2/maven-repository-metadata/) org.apache.maven:maven-repository-metadata:jar:3.10.2 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Artifact Resolver Provider (https://maven.apache.org/ref/3.10.1/maven-resolver-provider/) org.apache.maven:maven-resolver-provider:jar:3.10.1 + - Maven Artifact Resolver Provider (https://maven.apache.org/ref/3.10.2/maven-resolver-provider/) org.apache.maven:maven-resolver-provider:jar:3.10.2 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Settings (https://maven.apache.org/ref/3.10.1/maven-settings/) org.apache.maven:maven-settings:jar:3.10.1 + - Maven Settings (https://maven.apache.org/ref/3.10.2/maven-settings/) org.apache.maven:maven-settings:jar:3.10.2 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Settings Builder (https://maven.apache.org/ref/3.10.1/maven-settings-builder/) org.apache.maven:maven-settings-builder:jar:3.10.1 + - Maven Settings Builder (https://maven.apache.org/ref/3.10.2/maven-settings-builder/) org.apache.maven:maven-settings-builder:jar:3.10.2 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven SLF4J Simple Provider (https://maven.apache.org/ref/3.10.1/maven-slf4j-provider/) org.apache.maven:maven-slf4j-provider:jar:3.10.1 + - Maven SLF4J Simple Provider (https://maven.apache.org/ref/3.10.2/maven-slf4j-provider/) org.apache.maven:maven-slf4j-provider:jar:3.10.2 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Artifact Resolver API (https://maven.apache.org/resolver/maven-resolver-api/) org.apache.maven.resolver:maven-resolver-api:jar:2.0.25 + - Maven Artifact Resolver API (https://maven.apache.org/resolver/maven-resolver-api/) org.apache.maven.resolver:maven-resolver-api:jar:2.0.26 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Artifact Resolver Connector Basic (https://maven.apache.org/resolver/maven-resolver-connector-basic/) org.apache.maven.resolver:maven-resolver-connector-basic:jar:2.0.25 + - Maven Artifact Resolver Connector Basic (https://maven.apache.org/resolver/maven-resolver-connector-basic/) org.apache.maven.resolver:maven-resolver-connector-basic:jar:2.0.26 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Artifact Resolver Implementation (https://maven.apache.org/resolver/maven-resolver-impl/) org.apache.maven.resolver:maven-resolver-impl:jar:2.0.25 + - Maven Artifact Resolver Implementation (https://maven.apache.org/resolver/maven-resolver-impl/) org.apache.maven.resolver:maven-resolver-impl:jar:2.0.26 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Artifact Resolver Named Locks (https://maven.apache.org/resolver/maven-resolver-named-locks/) org.apache.maven.resolver:maven-resolver-named-locks:jar:2.0.25 + - Maven Artifact Resolver Named Locks (https://maven.apache.org/resolver/maven-resolver-named-locks/) org.apache.maven.resolver:maven-resolver-named-locks:jar:2.0.26 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Artifact Resolver SPI (https://maven.apache.org/resolver/maven-resolver-spi/) org.apache.maven.resolver:maven-resolver-spi:jar:2.0.25 + - Maven Artifact Resolver SPI (https://maven.apache.org/resolver/maven-resolver-spi/) org.apache.maven.resolver:maven-resolver-spi:jar:2.0.26 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Artifact Resolver Transport Apache (https://maven.apache.org/resolver/maven-resolver-transport-apache/) org.apache.maven.resolver:maven-resolver-transport-apache:jar:2.0.25 + - Maven Artifact Resolver Transport Apache (https://maven.apache.org/resolver/maven-resolver-transport-apache/) org.apache.maven.resolver:maven-resolver-transport-apache:jar:2.0.26 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Artifact Resolver Transport File (https://maven.apache.org/resolver/maven-resolver-transport-file/) org.apache.maven.resolver:maven-resolver-transport-file:jar:2.0.25 + - Maven Artifact Resolver Transport File (https://maven.apache.org/resolver/maven-resolver-transport-file/) org.apache.maven.resolver:maven-resolver-transport-file:jar:2.0.26 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Artifact Resolver Transport Wagon (https://maven.apache.org/resolver/maven-resolver-transport-wagon/) org.apache.maven.resolver:maven-resolver-transport-wagon:jar:2.0.25 + - Maven Artifact Resolver Transport Wagon (https://maven.apache.org/resolver/maven-resolver-transport-wagon/) org.apache.maven.resolver:maven-resolver-transport-wagon:jar:2.0.26 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - - Maven Artifact Resolver Utilities (https://maven.apache.org/resolver/maven-resolver-util/) org.apache.maven.resolver:maven-resolver-util:jar:2.0.25 + - Maven Artifact Resolver Utilities (https://maven.apache.org/resolver/maven-resolver-util/) org.apache.maven.resolver:maven-resolver-util:jar:2.0.26 License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) - Apache Maven Wagon :: Providers :: File Provider (https://maven.apache.org/wagon/wagon-providers/wagon-file) org.apache.maven.wagon:wagon-file:jar:3.5.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/apache-maven/pom.xml new/apache-maven-3.10.2/apache-maven/pom.xml --- old/apache-maven-3.10.1/apache-maven/pom.xml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/apache-maven/pom.xml 2026-11-18 20:48:23.000000000 +0100 @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.maven</groupId> <artifactId>maven</artifactId> - <version>3.10.1</version> + <version>3.10.2</version> </parent> <artifactId>apache-maven</artifactId> @@ -358,7 +358,7 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> - <version>3.6.4</version> + <version>3.7.0</version> <executions> <execution> <id>test-mvn-path-conversion</id> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-artifact/pom.xml new/apache-maven-3.10.2/maven-artifact/pom.xml --- old/apache-maven-3.10.1/maven-artifact/pom.xml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-artifact/pom.xml 2026-11-18 20:48:23.000000000 +0100 @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.maven</groupId> <artifactId>maven</artifactId> - <version>3.10.1</version> + <version>3.10.2</version> </parent> <artifactId>maven-artifact</artifactId> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java new/apache-maven-3.10.2/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java --- old/apache-maven-3.10.1/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java 2026-11-18 20:48:23.000000000 +0100 @@ -46,13 +46,21 @@ private VersionRange(ArtifactVersion recommendedVersion, List<Restriction> restrictions) { this.recommendedVersion = recommendedVersion; - this.restrictions = restrictions; + this.restrictions = Collections.unmodifiableList(restrictions); } public ArtifactVersion getRecommendedVersion() { return recommendedVersion; } + /** + * Returns the intervals used to match versions against this range. + * + * <p>If this list is empty, {@link #containsVersion(ArtifactVersion)} returns {@code false}. + * A recommended version may still be available from {@link #getRecommendedVersion()}.</p> + * + * @return an unmodifiable, non-null list of version restrictions + */ public List<Restriction> getRestrictions() { return restrictions; } @@ -251,7 +259,7 @@ if (r1.isEmpty() || r2.isEmpty()) { restrictions = Collections.emptyList(); } else { - restrictions = Collections.unmodifiableList(intersection(r1, r2)); + restrictions = intersection(r1, r2); } ArtifactVersion version = null; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java new/apache-maven-3.10.2/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java --- old/apache-maven-3.10.1/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java 2026-11-18 20:48:23.000000000 +0100 @@ -18,6 +18,7 @@ */ package org.apache.maven.artifact.versioning; +import java.util.ArrayList; import java.util.List; import org.apache.maven.artifact.Artifact; @@ -27,6 +28,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertSame; +import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; @@ -749,4 +751,64 @@ spec.equals(version), "check !VersionRange.createFromVersionSpec(x).equals(VersionRange.createFromVersion(x))"); } + + @Test + public void testCachedRestrictionsAreUnmodifiable() throws InvalidVersionSpecificationException { + for (String spec : new String[] {"[1.1234,2.5678]", "[1.1234]", "(,1.1234],[2.5678,)", "1.1234"}) { + VersionRange range = VersionRange.createFromVersionSpec(spec); + List<Restriction> restrictions = new ArrayList<>(range.getRestrictions()); + ArtifactVersion version = new DefaultArtifactVersion("1.1234"); + assertTrue(range.containsVersion(version)); + + assertThrows( + UnsupportedOperationException.class, + () -> range.getRestrictions().clear()); + assertThrows( + UnsupportedOperationException.class, + () -> range.getRestrictions().set(0, Restriction.EVERYTHING)); + + VersionRange cached = VersionRange.createFromVersionSpec(spec); + assertSame(range, cached); + assertEquals(restrictions, cached.getRestrictions()); + assertTrue(cached.containsVersion(version)); + } + } + + @Test + @SuppressWarnings("deprecation") + public void testClonedRestrictionsAreUnmodifiable() throws InvalidVersionSpecificationException { + VersionRange range = VersionRange.createFromVersionSpec("[3.1234,4.5678]"); + VersionRange clone = range.cloneOf(); + + assertThrows( + UnsupportedOperationException.class, + () -> clone.getRestrictions().clear()); + assertEquals(range, clone); + assertTrue(clone.containsVersion(new DefaultArtifactVersion("3.5000"))); + assertFalse(clone.containsVersion(new DefaultArtifactVersion("5.0"))); + } + + @Test + public void testIntersectedRestrictionsAreUnmodifiable() throws InvalidVersionSpecificationException { + VersionRange range = VersionRange.createFromVersionSpec("[3.1234,4.5678]") + .restrict(VersionRange.createFromVersionSpec("[3.5000,5.0]")); + + assertThrows( + UnsupportedOperationException.class, + () -> range.getRestrictions().clear()); + assertTrue(range.containsVersion(new DefaultArtifactVersion("4.0"))); + assertFalse(range.containsVersion(new DefaultArtifactVersion("3.2500"))); + } + + @Test + public void testVersionRestrictionsAreUnmodifiable() { + VersionRange range = VersionRange.createFromVersion("3.1234"); + + assertThrows( + UnsupportedOperationException.class, + () -> range.getRestrictions().add(Restriction.EVERYTHING)); + assertSame(range, VersionRange.createFromVersion("3.1234")); + assertTrue(range.getRestrictions().isEmpty()); + assertEquals(new DefaultArtifactVersion("3.1234"), range.getRecommendedVersion()); + } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-builder-support/pom.xml new/apache-maven-3.10.2/maven-builder-support/pom.xml --- old/apache-maven-3.10.1/maven-builder-support/pom.xml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-builder-support/pom.xml 2026-11-18 20:48:23.000000000 +0100 @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.maven</groupId> <artifactId>maven</artifactId> - <version>3.10.1</version> + <version>3.10.2</version> </parent> <artifactId>maven-builder-support</artifactId> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-compat/pom.xml new/apache-maven-3.10.2/maven-compat/pom.xml --- old/apache-maven-3.10.1/maven-compat/pom.xml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-compat/pom.xml 2026-11-18 20:48:23.000000000 +0100 @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.maven</groupId> <artifactId>maven</artifactId> - <version>3.10.1</version> + <version>3.10.2</version> </parent> <artifactId>maven-compat</artifactId> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-core/pom.xml new/apache-maven-3.10.2/maven-core/pom.xml --- old/apache-maven-3.10.1/maven-core/pom.xml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-core/pom.xml 2026-11-18 20:48:23.000000000 +0100 @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.maven</groupId> <artifactId>maven</artifactId> - <version>3.10.1</version> + <version>3.10.2</version> </parent> <artifactId>maven-core</artifactId> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java new/apache-maven-3.10.2/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java --- old/apache-maven-3.10.1/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java 2026-11-18 20:48:23.000000000 +0100 @@ -131,8 +131,10 @@ public List<Lifecycle> getLifeCycles() { // ensure canonical order of standard lifecycles - // take "snapshot": will filter by visibility - Map<String, Lifecycle> lifecycles = new LinkedHashMap<>(this.lifecycles); + // take "snapshot": will filter by visibility; keep the highest-ranked lifecycle for each id, so a build + // extension can override a lifecycle that core already defines + Map<String, Lifecycle> lifecycles = new LinkedHashMap<>(); + this.lifecycles.forEach(lifecycles::putIfAbsent); // apply enabled lifecycles.entrySet().removeIf(e -> !isEnabled(e.getKey())); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzer.java new/apache-maven-3.10.2/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzer.java --- old/apache-maven-3.10.1/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzer.java 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzer.java 2026-11-18 20:48:23.000000000 +0100 @@ -22,7 +22,6 @@ import javax.inject.Named; import javax.inject.Singleton; -import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.List; @@ -83,10 +82,9 @@ + Thread.currentThread().getContextClassLoader()); } - // take "snapshot": will filter by visibility - Map<String, LifecycleMapping> filtered = new HashMap<>(this.lifecycleMappings); - - LifecycleMapping lifecycleMappingForPackaging = filtered.get(packaging); + // look up directly: the injected map filters by visibility and returns the highest-ranked mapping, + // so a build extension can override a packaging that core already maps + LifecycleMapping lifecycleMappingForPackaging = lifecycleMappings.get(packaging); if (lifecycleMappingForPackaging == null) { return null; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java new/apache-maven-3.10.2/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java --- old/apache-maven-3.10.1/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java 2026-11-18 20:48:23.000000000 +0100 @@ -28,6 +28,7 @@ import java.util.stream.Collectors; import org.apache.maven.lifecycle.internal.stub.LoggerStub; +import org.apache.maven.lifecycle.internal.stub.RankedEntriesMap; import org.apache.maven.lifecycle.providers.lifecycle.CleanLifecycleProvider; import org.apache.maven.lifecycle.providers.lifecycle.DefaultLifecycleProvider; import org.apache.maven.lifecycle.providers.lifecycle.SiteLifecycleProvider; @@ -37,6 +38,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertSame; /** * @author Kristian Rosenvold @@ -78,4 +80,28 @@ System.clearProperty("maven.site.lifecycle.disabled"); } } + + @Test + public void testHighestRankedLifecycleWinsForDuplicateId() { + // a build extension registers its own "clean" lifecycle, which ranks above the one in core + Lifecycle extensionClean = + new Lifecycle(CleanLifecycleProvider.NAME, Collections.singletonList("extension-clean"), null); + RankedEntriesMap<Lifecycle> all = new RankedEntriesMap<Lifecycle>() + .add(CleanLifecycleProvider.NAME, extensionClean) + .add( + CleanLifecycleProvider.NAME, + new Lifecycle(CleanLifecycleProvider.NAME, Collections.singletonList("clean"), null)) + .add( + DefaultLifecycleProvider.NAME, + new Lifecycle(DefaultLifecycleProvider.NAME, Collections.singletonList("compile"), null)) + .add( + SiteLifecycleProvider.NAME, + new Lifecycle(SiteLifecycleProvider.NAME, Collections.singletonList("site"), null)); + + DefaultLifecycles lifecycles = new DefaultLifecycles(all, new LoggerStub()); + + assertSame(extensionClean, lifecycles.getLifeCycles().get(0)); + assertSame(extensionClean, lifecycles.get("extension-clean")); + assertNull(lifecycles.get("clean")); + } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-core/src/test/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzerTest.java new/apache-maven-3.10.2/maven-core/src/test/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzerTest.java --- old/apache-maven-3.10.1/maven-core/src/test/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzerTest.java 1970-01-01 01:00:00.000000000 +0100 +++ new/apache-maven-3.10.2/maven-core/src/test/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzerTest.java 2026-11-18 20:48:23.000000000 +0100 @@ -0,0 +1,81 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.maven.lifecycle.internal; + +import java.lang.reflect.Field; +import java.util.Arrays; +import java.util.Collections; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Set; +import java.util.stream.Collectors; + +import org.apache.maven.lifecycle.DefaultLifecycles; +import org.apache.maven.lifecycle.Lifecycle; +import org.apache.maven.lifecycle.internal.stub.LoggerStub; +import org.apache.maven.lifecycle.internal.stub.RankedEntriesMap; +import org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping; +import org.apache.maven.lifecycle.mapping.LifecycleMapping; +import org.apache.maven.lifecycle.mapping.LifecyclePhase; +import org.apache.maven.model.Plugin; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +class DefaultLifecyclePluginAnalyzerTest { + + @Test + void highestRankedMappingWinsForDuplicatePackaging() throws Exception { + // a build extension registers its own "jar" mapping, which ranks above the one in core + RankedEntriesMap<LifecycleMapping> mappings = new RankedEntriesMap<LifecycleMapping>() + .add("jar", mapping("org.example:extension-plugin:1.0:prepare")) + .add("jar", mapping("org.example:core-plugin:1.0:prepare")); + + Set<Plugin> plugins = analyzer(mappings).getPluginsBoundByDefaultToAllLifecycles("jar"); + + assertEquals( + Collections.singletonList("org.example:extension-plugin"), + plugins.stream().map(Plugin::getKey).collect(Collectors.toList())); + } + + private static LifecycleMapping mapping(String goal) { + org.apache.maven.lifecycle.mapping.Lifecycle lifecycle = new org.apache.maven.lifecycle.mapping.Lifecycle(); + lifecycle.setId("default"); + lifecycle.setLifecyclePhases(Collections.singletonMap("initialize", new LifecyclePhase(goal))); + return new DefaultLifecycleMapping(Collections.singletonList(lifecycle)); + } + + private static DefaultLifecyclePluginAnalyzer analyzer(Map<String, LifecycleMapping> mappings) throws Exception { + Map<String, Lifecycle> lifecycles = new LinkedHashMap<>(); + lifecycles.put("default", new Lifecycle("default", Arrays.asList("initialize"), null)); + lifecycles.put("clean", new Lifecycle("clean", Arrays.asList("clean"), null)); + lifecycles.put("site", new Lifecycle("site", Arrays.asList("site"), null)); + + DefaultLifecyclePluginAnalyzer analyzer = new DefaultLifecyclePluginAnalyzer(); + set(analyzer, "lifecycleMappings", mappings); + set(analyzer, "defaultLifeCycles", new DefaultLifecycles(lifecycles, new LoggerStub())); + return analyzer; + } + + private static void set(Object target, String name, Object value) throws Exception { + Field field = DefaultLifecyclePluginAnalyzer.class.getDeclaredField(name); + field.setAccessible(true); + field.set(target, value); + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/RankedEntriesMap.java new/apache-maven-3.10.2/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/RankedEntriesMap.java --- old/apache-maven-3.10.1/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/RankedEntriesMap.java 1970-01-01 01:00:00.000000000 +0100 +++ new/apache-maven-3.10.2/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/RankedEntriesMap.java 2026-11-18 20:48:23.000000000 +0100 @@ -0,0 +1,60 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.maven.lifecycle.internal.stub; + +import java.util.AbstractMap; +import java.util.AbstractSet; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; + +/** + * Read-only map that behaves like the {@code Map<String, T>} Sisu injects: its entries are all visible beans in rank + * order, so one key can appear more than once, and {@link #get(Object)} returns the first (highest-ranked) match. + * + * @param <V> the type of the values + */ +public class RankedEntriesMap<V> extends AbstractMap<String, V> { + private final List<Map.Entry<String, V>> entries = new ArrayList<>(); + + /** + * Adds an entry ranked below all entries added before it. + */ + public RankedEntriesMap<V> add(String key, V value) { + entries.add(new SimpleImmutableEntry<>(key, value)); + return this; + } + + @Override + public Set<Map.Entry<String, V>> entrySet() { + return new AbstractSet<Map.Entry<String, V>>() { + @Override + public Iterator<Map.Entry<String, V>> iterator() { + return entries.iterator(); + } + + @Override + public int size() { + return entries.size(); + } + }; + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-embedder/pom.xml new/apache-maven-3.10.2/maven-embedder/pom.xml --- old/apache-maven-3.10.1/maven-embedder/pom.xml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-embedder/pom.xml 2026-11-18 20:48:23.000000000 +0100 @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.maven</groupId> <artifactId>maven</artifactId> - <version>3.10.1</version> + <version>3.10.2</version> </parent> <artifactId>maven-embedder</artifactId> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java new/apache-maven-3.10.2/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java --- old/apache-maven-3.10.1/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java 2026-11-18 20:48:23.000000000 +0100 @@ -847,11 +847,13 @@ } } - private List<CoreExtension> readCoreExtensionsDescriptor(Path extensionsFile) - throws IOException, XmlPullParserException { + List<CoreExtension> readCoreExtensionsDescriptor(Path extensionsFile) throws IOException { CoreExtensionsXpp3Reader parser = new CoreExtensionsXpp3Reader(); try (BufferedReader is = Files.newBufferedReader(extensionsFile, StandardCharsets.UTF_8)) { return parser.read(is).getExtensions(); + } catch (IOException | XmlPullParserException e) { + throw new IOException( + "Unable to parse core extensions descriptor " + extensionsFile + ": " + e.getMessage(), e); } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java new/apache-maven-3.10.2/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java --- old/apache-maven-3.10.1/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java 2026-11-18 20:48:23.000000000 +0100 @@ -113,6 +113,20 @@ null, new ByteArrayInputStream("\n".getBytes(StandardCharsets.UTF_8)), "Password: ")); } + /** + * An empty or otherwise unparsable extensions descriptor should fail with a message naming the file, not a bare + * {@code EOFException} from the XML parser (MNG-8369). + */ + @Test + public void testReadCoreExtensionsDescriptorRejectsUnparsableFile(@TempDir Path tempDir) throws Exception { + Path extensionsFile = tempDir.resolve("extensions.xml"); + Files.createFile(extensionsFile); + + IOException e = assertThrows(IOException.class, () -> cli.readCoreExtensionsDescriptor(extensionsFile)); + + assertTrue(e.getMessage().contains(extensionsFile.toString()), e.getMessage()); + } + @Test public void testCalculateDegreeOfConcurrency() { assertThrows(IllegalArgumentException.class, () -> cli.calculateDegreeOfConcurrency("0")); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-jline/pom.xml new/apache-maven-3.10.2/maven-jline/pom.xml --- old/apache-maven-3.10.1/maven-jline/pom.xml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-jline/pom.xml 2026-11-18 20:48:23.000000000 +0100 @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.maven</groupId> <artifactId>maven</artifactId> - <version>3.10.1</version> + <version>3.10.2</version> </parent> <artifactId>maven-jline</artifactId> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-jline/src/main/java/org/apache/maven/jline/MessageUtils.java new/apache-maven-3.10.2/maven-jline/src/main/java/org/apache/maven/jline/MessageUtils.java --- old/apache-maven-3.10.1/maven-jline/src/main/java/org/apache/maven/jline/MessageUtils.java 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-jline/src/main/java/org/apache/maven/jline/MessageUtils.java 2026-11-18 20:48:23.000000000 +0100 @@ -145,10 +145,16 @@ } catch (ReflectiveOperationException e) { // Java < 22: a non-null console already means a terminal } - if (System.getProperty("os.name", "").startsWith("Windows")) { + String osName = System.getProperty("os.name", ""); + if (osName.startsWith("Windows")) { // ponytail: no native call to switch on VT processing, so trust only consoles known to do ANSI already // (Windows Terminal, ConEmu/Cmder, ANSICON, VS Code, mintty & co); legacy conhost users use --color=always - return System.getenv("WT_SESSION") != null + // Windows 11 defaults to Windows Terminal, which may not set WT_SESSION when it gets a console via + // default-terminal handoff (e.g. shells launched by GitHub Desktop); conhost there is opt-in (#14018) + // shortcut: Win11 with conhost as default terminal shows raw escapes, use --color=never; needs a JDK + // that reports "Windows 11" (older ones say "Windows 10" and keep the env checks) + return osName.startsWith("Windows 11") + || System.getenv("WT_SESSION") != null || "ON".equals(System.getenv("ConEmuANSI")) || System.getenv("ANSICON") != null || "vscode".equals(System.getenv("TERM_PROGRAM")) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-model/pom.xml new/apache-maven-3.10.2/maven-model/pom.xml --- old/apache-maven-3.10.1/maven-model/pom.xml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-model/pom.xml 2026-11-18 20:48:23.000000000 +0100 @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.maven</groupId> <artifactId>maven</artifactId> - <version>3.10.1</version> + <version>3.10.2</version> </parent> <artifactId>maven-model</artifactId> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-model-builder/pom.xml new/apache-maven-3.10.2/maven-model-builder/pom.xml --- old/apache-maven-3.10.1/maven-model-builder/pom.xml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-model-builder/pom.xml 2026-11-18 20:48:23.000000000 +0100 @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.maven</groupId> <artifactId>maven</artifactId> - <version>3.10.1</version> + <version>3.10.2</version> </parent> <artifactId>maven-model-builder</artifactId> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java new/apache-maven-3.10.2/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java --- old/apache-maven-3.10.1/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java 2026-11-18 20:48:23.000000000 +0100 @@ -708,13 +708,15 @@ throw e; } + // the document parsed successfully once unknown/misplaced elements were tolerated, + // so it is well-formed XML that merely violates the POM schema - invalid, not malformed if (pomFile != null) { problems.add(new ModelProblemCollectorRequest(Severity.ERROR, Version.V20) - .setMessage("Malformed POM " + modelSource.getLocation() + ": " + e.getMessage()) + .setMessage("Invalid POM " + modelSource.getLocation() + ": " + e.getMessage()) .setException(e)); } else { problems.add(new ModelProblemCollectorRequest(Severity.WARNING, Version.V20) - .setMessage("Malformed POM " + modelSource.getLocation() + ": " + e.getMessage()) + .setMessage("Invalid POM " + modelSource.getLocation() + ": " + e.getMessage()) .setException(e)); } } @@ -1224,6 +1226,9 @@ ModelBuildingRequest importRequest = null; + ModelCacheTag<DependencyManagement> importTag = + request.isLocationTracking() ? ModelCacheTag.IMPORT_WITH_LOCATIONS : ModelCacheTag.IMPORT; + List<DependencyManagement> importMgmts = null; for (Iterator<Dependency> it = depMgmt.getDependencies().iterator(); it.hasNext(); ) { @@ -1275,7 +1280,7 @@ } DependencyManagement importMgmt = - getCache(request.getModelCache(), groupId, artifactId, version, ModelCacheTag.IMPORT); + getCache(request.getModelCache(), groupId, artifactId, version, importTag); if (importMgmt == null) { if (workspaceResolver == null && modelResolver == null) { @@ -1349,7 +1354,7 @@ importMgmt = new DependencyManagement(); } - putCache(request.getModelCache(), groupId, artifactId, version, ModelCacheTag.IMPORT, importMgmt); + putCache(request.getModelCache(), groupId, artifactId, version, importTag, importMgmt); } if (importMgmts == null) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelCacheTag.java new/apache-maven-3.10.2/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelCacheTag.java --- old/apache-maven-3.10.1/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelCacheTag.java 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelCacheTag.java 2026-11-18 20:48:23.000000000 +0100 @@ -114,4 +114,31 @@ return intoCache(data); } }; + + /** + * The tag used to denote an effective dependency management section from an imported model that was built with + * location tracking enabled. + */ + ModelCacheTag<DependencyManagement> IMPORT_WITH_LOCATIONS = new ModelCacheTag<DependencyManagement>() { + + @Override + public String getName() { + return "import-with-locations"; + } + + @Override + public Class<DependencyManagement> getType() { + return DependencyManagement.class; + } + + @Override + public DependencyManagement intoCache(DependencyManagement data) { + return (data != null) ? data.clone() : null; + } + + @Override + public DependencyManagement fromCache(DependencyManagement data) { + return intoCache(data); + } + }; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-model-builder/src/main/java/org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java new/apache-maven-3.10.2/maven-model-builder/src/main/java/org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java --- old/apache-maven-3.10.1/maven-model-builder/src/main/java/org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-model-builder/src/main/java/org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java 2026-11-18 20:48:23.000000000 +0100 @@ -228,9 +228,15 @@ plugin.setGroupId(null); mergePlugin(plugin, element, sourceDominant, context); - Object key = getPluginKey(element); + // a plugin marked inherited=false only reaches the child through an execution + // whose own inherited flag overrides the plugin-level setting (MNG-2103); if no + // execution survives that per-execution filtering, the plugin itself must not be + // inherited either (MNG-6373), so only commit it once we know which case applies + if (element.isInherited() || !plugin.getExecutions().isEmpty()) { + Object key = getPluginKey(element); - master.put(key, plugin); + master.put(key, plugin); + } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderTest.java new/apache-maven-3.10.2/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderTest.java --- old/apache-maven-3.10.1/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderTest.java 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderTest.java 2026-11-18 20:48:23.000000000 +0100 @@ -18,6 +18,9 @@ */ package org.apache.maven.model.building; +import java.util.HashMap; +import java.util.Map; + import org.apache.maven.model.Dependency; import org.apache.maven.model.Parent; import org.apache.maven.model.Repository; @@ -28,6 +31,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; /** * @author Guillaume Nodet @@ -90,6 +94,143 @@ }); } + /** + * MNG-6864: a well-formed POM that merely has an unrecognized/misplaced element is invalid, + * not malformed - the "Malformed POM" message is reserved for documents that are not + * well-formed XML at all. + */ + @Test + public void testInvalidPomIsNotReportedAsMalformed() throws Exception { + String pom = "<project>\n" + " <modelVersion>4.0.0</modelVersion>\n" + + " <groupId>thegroup</groupId>\n" + + " <artifactId>invalid</artifactId>\n" + + " <version>1</version>\n" + + " <dependencies>\n" + + " <project>\n" + + " </project>\n" + + " </dependencies>\n" + + "</project>\n"; + + ModelBuilder builder = new DefaultModelBuilderFactory().newInstance(); + + DefaultModelBuildingRequest request = new DefaultModelBuildingRequest(); + request.setModelSource(new StringModelSource(pom)); + + ModelBuildingResult result = builder.build(request); + + assertTrue( + result.getProblems().stream().anyMatch(p -> p.getMessage().startsWith("Invalid POM")), + () -> "Expected an \"Invalid POM\" problem, got: " + result.getProblems()); + assertTrue( + result.getProblems().stream().noneMatch(p -> p.getMessage().startsWith("Malformed POM")), + () -> "Did not expect a \"Malformed POM\" problem, got: " + result.getProblems()); + } + + /** + * Contrast case for {@link #testInvalidPomIsNotReportedAsMalformed()}: a document that is not + * well-formed XML at all must still fail outright, unaffected by MNG-6864. + */ + @Test + public void testNotWellFormedPomFailsBuild() { + String pom = "<project>\n" + " <modelVersion>4.0.0</modelVersion>\n" + + " <groupId>thegroup</groupId>\n" + + " <artifactId>malformed</artifactId>\n" + + " <version>1</version>\n" + + " <name>mismatched</foo>\n" + + "</project>\n"; + + ModelBuilder builder = new DefaultModelBuilderFactory().newInstance(); + + DefaultModelBuildingRequest request = new DefaultModelBuildingRequest(); + request.setModelSource(new StringModelSource(pom)); + + ModelBuildingException e = assertThrows(ModelBuildingException.class, () -> builder.build(request)); + assertTrue( + e.getProblems().stream().anyMatch(p -> p.getMessage().startsWith("Non-parseable POM")), + () -> "Expected a \"Non-parseable POM\" problem, got: " + e.getProblems()); + } + + /** + * #13985: an import cached by a build without location tracking must not be reused by a build with it. + */ + @Test + public void testImportedDependencyManagementKeepsLocations() throws Exception { + String bom = "<project>\n" + " <modelVersion>4.0.0</modelVersion>\n" + + " <groupId>thegroup</groupId>\n" + + " <artifactId>bom</artifactId>\n" + + " <version>1</version>\n" + + " <packaging>pom</packaging>\n" + + " <dependencyManagement>\n" + + " <dependencies>\n" + + " <dependency>\n" + + " <groupId>thegroup</groupId>\n" + + " <artifactId>managed</artifactId>\n" + + " <version>1</version>\n" + + " </dependency>\n" + + " </dependencies>\n" + + " </dependencyManagement>\n" + + "</project>\n"; + String pom = "<project>\n" + " <modelVersion>4.0.0</modelVersion>\n" + + " <groupId>thegroup</groupId>\n" + + " <artifactId>consumer</artifactId>\n" + + " <version>1</version>\n" + + " <dependencyManagement>\n" + + " <dependencies>\n" + + " <dependency>\n" + + " <groupId>thegroup</groupId>\n" + + " <artifactId>bom</artifactId>\n" + + " <version>1</version>\n" + + " <type>pom</type>\n" + + " <scope>import</scope>\n" + + " </dependency>\n" + + " </dependencies>\n" + + " </dependencyManagement>\n" + + "</project>\n"; + + ModelBuilder builder = new DefaultModelBuilderFactory().newInstance(); + ModelCache cache = new MapModelCache(); + ModelResolver resolver = new BaseModelResolver() { + @Override + public ModelSource resolveModel(String groupId, String artifactId, String version) { + return new StringModelSource(bom); + } + }; + + DefaultModelBuildingRequest request = new DefaultModelBuildingRequest(); + request.setModelSource(new StringModelSource(pom)); + request.setModelResolver(resolver); + request.setModelCache(cache); + request.setLocationTracking(false); + builder.build(request); + + request = new DefaultModelBuildingRequest(); + request.setModelSource(new StringModelSource(pom)); + request.setModelResolver(resolver); + request.setModelCache(cache); + request.setLocationTracking(true); + ModelBuildingResult result = builder.build(request); + + Dependency managed = result.getEffectiveModel() + .getDependencyManagement() + .getDependencies() + .get(0); + assertNotNull(managed.getLocation("version")); + } + + static class MapModelCache implements ModelCache { + private final Map<String, Object> map = new HashMap<>(); + + @Override + public void put(String groupId, String artifactId, String version, String tag, Object data) { + map.put(groupId + ':' + artifactId + ':' + version + ':' + tag, data); + } + + @Override + public Object get(String groupId, String artifactId, String version, String tag) { + return map.get(groupId + ':' + artifactId + ':' + version + ':' + tag); + } + } + static class CycleInImportsResolver extends BaseModelResolver { @Override public ModelSource resolveModel(Dependency dependency) throws UnresolvableModelException { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAssemblerTest.java new/apache-maven-3.10.2/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAssemblerTest.java --- old/apache-maven-3.10.1/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAssemblerTest.java 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAssemblerTest.java 2026-11-18 20:48:23.000000000 +0100 @@ -67,6 +67,26 @@ } /** + * MNG-6373: a build plugin marked {@code inherited=false} must not reach child POMs, + * even when it declares an execution. + * @throws Exception + */ + @Test + public void testPluginNotInherited() throws Exception { + testInheritance("plugin-not-inherited"); + } + + /** + * MNG-2103: an execution's own {@code inherited=true} overrides a plugin-level + * {@code inherited=false}, so the whole plugin must still reach the child. + * @throws Exception + */ + @Test + public void testPluginNotInheritedWithInheritedExecutionOverride() throws Exception { + testInheritance("plugin-not-inherited-execution-override"); + } + + /** * Check most classical urls inheritance: directory structure where parent POM in parent directory * and child directory == artifactId * @throws IOException Model read problem diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-child.xml new/apache-maven-3.10.2/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-child.xml --- old/apache-maven-3.10.1/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-child.xml 1970-01-01 01:00:00.000000000 +0100 +++ new/apache-maven-3.10.2/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-child.xml 2026-11-18 20:48:23.000000000 +0100 @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <artifactId>child</artifactId> + <version>1-SNAPSHOT</version> +</project> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-execution-override-child.xml new/apache-maven-3.10.2/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-execution-override-child.xml --- old/apache-maven-3.10.1/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-execution-override-child.xml 1970-01-01 01:00:00.000000000 +0100 +++ new/apache-maven-3.10.2/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-execution-override-child.xml 2026-11-18 20:48:23.000000000 +0100 @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <artifactId>child</artifactId> + <version>1-SNAPSHOT</version> +</project> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-execution-override-expected.xml new/apache-maven-3.10.2/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-execution-override-expected.xml --- old/apache-maven-3.10.1/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-execution-override-expected.xml 1970-01-01 01:00:00.000000000 +0100 +++ new/apache-maven-3.10.2/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-execution-override-expected.xml 2026-11-18 20:48:23.000000000 +0100 @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>inheritance</groupId> + <artifactId>child</artifactId> + <version>1-SNAPSHOT</version> + + <build> + <plugins> + <!-- MNG-2103: the plugin itself (version, identity) still reaches the child because + one of its executions carries its own inherited=true override; the other + execution (no override, falls back to the plugin-level inherited=false) is + correctly filtered out --> + <plugin> + <groupId>inheritance.plugin</groupId> + <artifactId>overridden</artifactId> + <version>1.0</version> + <executions> + <execution> + <id>inherited-execution</id> + <goals> + <goal>run</goal> + </goals> + <inherited>true</inherited> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-execution-override-parent.xml new/apache-maven-3.10.2/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-execution-override-parent.xml --- old/apache-maven-3.10.1/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-execution-override-parent.xml 1970-01-01 01:00:00.000000000 +0100 +++ new/apache-maven-3.10.2/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-execution-override-parent.xml 2026-11-18 20:48:23.000000000 +0100 @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>inheritance</groupId> + <artifactId>parent</artifactId> + <version>1-SNAPSHOT</version> + + <build> + <plugins> + <plugin> + <!-- MNG-2103: an execution with its own inherited=true overrides a plugin-level + inherited=false, so the whole plugin (including this execution) must still + reach the child --> + <groupId>inheritance.plugin</groupId> + <artifactId>overridden</artifactId> + <version>1.0</version> + <inherited>false</inherited> + <executions> + <execution> + <id>inherited-execution</id> + <inherited>true</inherited> + <goals> + <goal>run</goal> + </goals> + </execution> + <execution> + <id>not-inherited-execution</id> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-expected.xml new/apache-maven-3.10.2/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-expected.xml --- old/apache-maven-3.10.1/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-expected.xml 1970-01-01 01:00:00.000000000 +0100 +++ new/apache-maven-3.10.2/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-expected.xml 2026-11-18 20:48:23.000000000 +0100 @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>inheritance</groupId> + <artifactId>child</artifactId> + <version>1-SNAPSHOT</version> + + <build> + <plugins> + <!-- MNG-6373: the parent's "not-inherited" plugin (inherited=false) must not appear here, + even though it declares an execution --> + <plugin> + <groupId>inheritance.plugin</groupId> + <artifactId>inherited</artifactId> + <version>2.0</version> + <executions> + <execution> + <id>inherited-execution</id> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-parent.xml new/apache-maven-3.10.2/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-parent.xml --- old/apache-maven-3.10.1/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-parent.xml 1970-01-01 01:00:00.000000000 +0100 +++ new/apache-maven-3.10.2/maven-model-builder/src/test/resources/poms/inheritance/plugin-not-inherited-parent.xml 2026-11-18 20:48:23.000000000 +0100 @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>inheritance</groupId> + <artifactId>parent</artifactId> + <version>1-SNAPSHOT</version> + + <build> + <plugins> + <plugin> + <!-- MNG-6373: a plugin marked inherited=false must not reach child POMs, + even though it declares an execution --> + <groupId>inheritance.plugin</groupId> + <artifactId>not-inherited</artifactId> + <version>1.0</version> + <inherited>false</inherited> + <executions> + <execution> + <id>not-inherited-execution</id> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>inheritance.plugin</groupId> + <artifactId>inherited</artifactId> + <version>2.0</version> + <executions> + <execution> + <id>inherited-execution</id> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-plugin-api/pom.xml new/apache-maven-3.10.2/maven-plugin-api/pom.xml --- old/apache-maven-3.10.1/maven-plugin-api/pom.xml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-plugin-api/pom.xml 2026-11-18 20:48:23.000000000 +0100 @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.maven</groupId> <artifactId>maven</artifactId> - <version>3.10.1</version> + <version>3.10.2</version> </parent> <artifactId>maven-plugin-api</artifactId> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-repository-metadata/pom.xml new/apache-maven-3.10.2/maven-repository-metadata/pom.xml --- old/apache-maven-3.10.1/maven-repository-metadata/pom.xml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-repository-metadata/pom.xml 2026-11-18 20:48:23.000000000 +0100 @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.maven</groupId> <artifactId>maven</artifactId> - <version>3.10.1</version> + <version>3.10.2</version> </parent> <artifactId>maven-repository-metadata</artifactId> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-resolver-provider/pom.xml new/apache-maven-3.10.2/maven-resolver-provider/pom.xml --- old/apache-maven-3.10.1/maven-resolver-provider/pom.xml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-resolver-provider/pom.xml 2026-11-18 20:48:23.000000000 +0100 @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.maven</groupId> <artifactId>maven</artifactId> - <version>3.10.1</version> + <version>3.10.2</version> </parent> <artifactId>maven-resolver-provider</artifactId> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-settings/pom.xml new/apache-maven-3.10.2/maven-settings/pom.xml --- old/apache-maven-3.10.1/maven-settings/pom.xml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-settings/pom.xml 2026-11-18 20:48:23.000000000 +0100 @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.maven</groupId> <artifactId>maven</artifactId> - <version>3.10.1</version> + <version>3.10.2</version> </parent> <artifactId>maven-settings</artifactId> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-settings-builder/pom.xml new/apache-maven-3.10.2/maven-settings-builder/pom.xml --- old/apache-maven-3.10.1/maven-settings-builder/pom.xml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-settings-builder/pom.xml 2026-11-18 20:48:23.000000000 +0100 @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.maven</groupId> <artifactId>maven</artifactId> - <version>3.10.1</version> + <version>3.10.2</version> </parent> <artifactId>maven-settings-builder</artifactId> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/maven-slf4j-provider/pom.xml new/apache-maven-3.10.2/maven-slf4j-provider/pom.xml --- old/apache-maven-3.10.1/maven-slf4j-provider/pom.xml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/maven-slf4j-provider/pom.xml 2026-11-18 20:48:23.000000000 +0100 @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.maven</groupId> <artifactId>maven</artifactId> - <version>3.10.1</version> + <version>3.10.2</version> </parent> <artifactId>maven-slf4j-provider</artifactId> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/apache-maven-3.10.1/pom.xml new/apache-maven-3.10.2/pom.xml --- old/apache-maven-3.10.1/pom.xml 2026-11-11 23:29:01.000000000 +0100 +++ new/apache-maven-3.10.2/pom.xml 2026-11-18 20:48:23.000000000 +0100 @@ -28,7 +28,7 @@ </parent> <artifactId>maven</artifactId> - <version>3.10.1</version> + <version>3.10.2</version> <packaging>pom</packaging> <name>Apache Maven</name> @@ -105,7 +105,7 @@ <scm> <connection>scm:git:https://gitbox.apache.org/repos/asf/maven.git</connection> <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/maven.git</developerConnection> - <tag>maven-3.10.1</tag> + <tag>maven-3.10.2</tag> <url>https://github.com/apache/maven/tree/${project.scm.tag}</url> </scm> <issueManagement> @@ -136,7 +136,7 @@ <plexusVersion>2.2.0</plexusVersion> <plexusInterpolationVersion>1.30.0</plexusInterpolationVersion> <!-- Blocked by 3.4.0+ changes, see MNG-7710, downgrade from parent 4.0.1 --> - <version.plexus-utils>3.6.2</version.plexus-utils> + <version.plexus-utils>3.6.4</version.plexus-utils> <guiceVersion>5.1.0</guiceVersion> <guavaVersion>33.8.0-jre</guavaVersion> <guavafailureaccessVersion>1.0.3</guavafailureaccessVersion> @@ -145,7 +145,7 @@ <!-- plexus-cipher 2.1.0 uses an incompatible KDF; ciphertext encrypted with 2.0 will no longer decrypt — see #12811. Do not bump on this branch. --> <cipherVersion>2.0</cipherVersion> <jxpathVersion>1.4.0</jxpathVersion> - <resolverVersion>2.0.25</resolverVersion> + <resolverVersion>2.0.26</resolverVersion> <slf4jVersion>2.0.20</slf4jVersion> <xmlunitVersion>2.14.0</xmlunitVersion> <powermockVersion>2.0.9</powermockVersion> @@ -157,7 +157,7 @@ <maven.site.path>ref/3-LATEST</maven.site.path> <checkstyle.violation.ignore>None</checkstyle.violation.ignore> <checkstyle.excludes>**/package-info.java</checkstyle.excludes> - <project.build.outputTimestamp>2026-11-11T22:29:01Z</project.build.outputTimestamp> + <project.build.outputTimestamp>2026-11-18T19:48:23Z</project.build.outputTimestamp> <!-- The JPMS module name elements used in the Automatic-Module-Name --> <!-- Note: Maven 3 can never become "pure modular" thing, we leave that to Maven 4+ --> @@ -567,7 +567,7 @@ <plugin> <groupId>org.codehaus.modello</groupId> <artifactId>modello-maven-plugin</artifactId> - <version>2.8.1</version> + <version>2.10.0</version> <executions> <execution> <id>modello-site-docs</id> @@ -615,12 +615,12 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> - <version>3.7.0</version> + <version>3.8.0</version> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>buildnumber-maven-plugin</artifactId> - <version>3.3.1</version> + <version>3.4.0</version> </plugin> <plugin> <groupId>org.eclipse.sisu</groupId> @@ -656,7 +656,7 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>animal-sniffer-maven-plugin</artifactId> - <version>1.29</version> + <version>1.29.1</version> <configuration> <signature> <groupId>org.codehaus.mojo.signature</groupId> ++++++ apache-maven-build.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/common.xml new/common.xml --- old/common.xml 2026-11-12 08:17:21.038759670 +0100 +++ new/common.xml 2026-11-18 22:12:57.562951549 +0100 @@ -3,7 +3,7 @@ <project name="common" basedir="."> <property file="build.properties"/> - <property name="project.version" value="3.10.1"/> + <property name="project.version" value="3.10.2"/> <property name="project.groupId" value="org.apache.maven"/> <property name="project.organization.name" value="The Apache Software Foundation"/> ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-11-22 13:48:37.000000000 +0100 @@ -0,0 +1 @@ +.osc
