[Git][java-team/maven][upstream] 2 commits: New upstream version 3.9.15
Emmanuel Bourg (@ebourg)
gitlab at salsa.debian.org
Wed Nov 25 07:41:42 GMT 2026
Emmanuel Bourg pushed to branch upstream at Debian Java Maintainers / maven
Commits:
e6e680e3 by Emmanuel Bourg at 2026-11-24T23:15:42+01:00
New upstream version 3.9.15
- - - - -
a5935367 by Emmanuel Bourg at 2026-11-24T23:17:46+01:00
New upstream version 3.9.16
- - - - -
23 changed files:
- .github/workflows/maven.yml
- README.md
- apache-maven/pom.xml
- maven-artifact/pom.xml
- maven-builder-support/pom.xml
- maven-compat/pom.xml
- maven-core/pom.xml
- maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java
- maven-embedder/pom.xml
- maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
- maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java
- maven-model-builder/pom.xml
- maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java
- maven-model/pom.xml
- maven-model/src/main/mdo/maven.mdo
- maven-plugin-api/pom.xml
- maven-repository-metadata/pom.xml
- maven-resolver-provider/pom.xml
- maven-settings-builder/pom.xml
- maven-settings/pom.xml
- maven-slf4j-provider/pom.xml
- pom.xml
- src/site/site.xml
Changes:
=====================================
.github/workflows/maven.yml
=====================================
@@ -59,7 +59,7 @@ jobs:
run: ./mvnw verify -e -B -V -DdistributionFileName=apache-maven
- name: Upload built Maven
- uses: actions/upload-artifact at bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
+ uses: actions/upload-artifact at 043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
name: built-maven
@@ -117,7 +117,7 @@ jobs:
- name: Set up cache for ~/.m2/repository
- uses: actions/cache at cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
+ uses: actions/cache at 27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: ~/.m2/repository
key: it-m2-repo-${{ matrix.os }}-${{ hashFiles('maven-integration-testing/**/pom.xml') }}
@@ -125,7 +125,7 @@ jobs:
it-m2-repo-${{ matrix.os }}-
- name: Download built Maven
- uses: actions/download-artifact at 70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
+ uses: actions/download-artifact at 3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: built-maven
path: built-maven/
=====================================
README.md
=====================================
@@ -19,12 +19,20 @@ Apache Maven
[][license]
[](https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/org/apache/maven/maven/README.md)
-- [master](https://github.com/apache/maven) = 4.1.x: [](https://central.sonatype.com/artifact/org.apache.maven/apache-maven)
-- [4.0.x](https://github.com/apache/maven/tree/maven-4.0.x): [](https://central.sonatype.com/artifact/org.apache.maven/apache-maven)
-- [3.9.x](https://github.com/apache/maven/tree/maven-3.9.x): [](https://central.sonatype.com/artifact/org.apache.maven/apache-maven)
-[][build]
-[][test-results]
+- [master](https://github.com/apache/maven) = 4.1.x
+[][build]
+[][gh-build]
+
+- [4.0.x](https://github.com/apache/maven/tree/maven-4.0.x):
+[](https://central.sonatype.com/artifact/org.apache.maven/apache-maven)
+[][build-4.0]
+[][gh-build-4.0]
+
+- [3.9.x](https://github.com/apache/maven/tree/maven-3.9.x):
+[](https://central.sonatype.com/artifact/org.apache.maven/apache-maven)
+[][build-3.9]
+[][gh-build-3.9]
Apache Maven is a software project management and comprehension tool. Based on
the concept of a project object model (POM), Maven can manage a project's
@@ -42,36 +50,32 @@ the [Maven User List][users-list].
Where can I get the latest release?
-----------------------------------
-You can download release source from our [download page][maven-download].
+You can download the release source from our [download page][maven-download].
Contributing
------------
-If you are interested in the development of Maven, please consult the
-documentation first and afterwards you are welcome to join the developers
-mailing list to ask question or discuss new ideas / features / bugs etc.
+If you are interested in the development of Maven, please consult the
+documentation first and afterward you are welcome to join the developers
+mailing list to ask questions or discuss new ideas/features/bugs etc.
Take a look into the [contribution guidelines](CONTRIBUTING.md).
License
-------
-This code is under the [Apache Licence v2][license]
+This code is under the [Apache License, Version 2.0, January 2004][license].
-See the `NOTICE` file for required notices and attributions.
+See the [`NOTICE`](./NOTICE) file for required notices and attributions.
Donations
---------
-You like Apache Maven? Then [donate back to the ASF](https://www.apache.org/foundation/contributing.html) to support the development.
-
-License
--------
-[Apache License, Version 2.0, January 2004][license]
+Do you like Apache Maven? Then [donate back to the ASF](https://www.apache.org/foundation/contributing.html) to support the development.
Quick Build
-------
If you want to bootstrap Maven, you'll need:
- Java 1.8+
-- Maven 3.6.3 or later
+- Maven 3.9.0 or later
- Run Maven, specifying a location into which the completed Maven distro should be installed:
```
mvn -DdistributionTargetDir="$HOME/app/maven/apache-maven-3.9.x-SNAPSHOT" clean package
@@ -80,8 +84,12 @@ mvn -DdistributionTargetDir="$HOME/app/maven/apache-maven-3.9.x-SNAPSHOT" clean
[home]: https://maven.apache.org/
[license]: https://www.apache.org/licenses/LICENSE-2.0
-[build]: https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven/job/maven-3.9.x/
-[test-results]: https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven/job/maven-3.9.x/lastCompletedBuild/testReport/
+[build]: https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven/job/master/
+[build-4.0]: https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven/job/maven-4.0.x/
+[build-3.9]: https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven/job/maven-3.9.x/
+[gh-build]: https://github.com/apache/maven/actions/workflows/maven.yml?query=branch%3Amaster
+[gh-build-4.0]: https://github.com/apache/maven/actions/workflows/maven.yml?query=branch%3Amaven-4.0.x
+[gh-build-3.9]: https://github.com/apache/maven/actions/workflows/maven.yml?query=branch%3Amaven-3.9.x
[maven-home]: https://maven.apache.org/
[maven-download]: https://maven.apache.org/download.cgi
[users-list]: https://maven.apache.org/mailing-lists.html
=====================================
apache-maven/pom.xml
=====================================
@@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
- <version>3.9.14</version>
+ <version>3.9.16</version>
</parent>
<artifactId>apache-maven</artifactId>
=====================================
maven-artifact/pom.xml
=====================================
@@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
- <version>3.9.14</version>
+ <version>3.9.16</version>
</parent>
<artifactId>maven-artifact</artifactId>
=====================================
maven-builder-support/pom.xml
=====================================
@@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
- <version>3.9.14</version>
+ <version>3.9.16</version>
</parent>
<artifactId>maven-builder-support</artifactId>
=====================================
maven-compat/pom.xml
=====================================
@@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
- <version>3.9.14</version>
+ <version>3.9.16</version>
</parent>
<artifactId>maven-compat</artifactId>
=====================================
maven-core/pom.xml
=====================================
@@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
- <version>3.9.14</version>
+ <version>3.9.16</version>
</parent>
<artifactId>maven-core</artifactId>
=====================================
maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java
=====================================
@@ -20,8 +20,10 @@
import java.io.IOException;
import java.util.ArrayList;
+import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashMap;
+import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
@@ -102,16 +104,20 @@ public PluginPrefixResult resolve(PluginPrefixRequest request) throws NoPluginFo
LinkedHashMap::new,
Collectors.mapping(Plugin::getArtifactId, Collectors.toSet())));
request.getPluginGroups().forEach(g -> candidates.put(g, null));
- PluginPrefixResult result = resolveFromRepository(request, candidates);
-
- // If we haven't been able to resolve the plugin from the repository,
- // as a last resort, we go through all declared plugins, load them
+ PluginPrefixResult result = null;
+ // First, we go through all declared plugins, load them
// one by one, and try to find a matching prefix.
- if (result == null && build != null) {
- result = resolveFromProject(request, build.getPlugins());
- if (result == null && management != null) {
- result = resolveFromProject(request, management.getPlugins());
- }
+ if (build != null) {
+ result = resolveFromProject(
+ request,
+ build.getPlugins(),
+ management != null ? management.getPlugins() : Collections.emptyList());
+ }
+
+ // Second, we go use G level metadata to discover prefix
+ // This order allows user managed clashing prefixes (they can declare them in POM)
+ if (result == null) {
+ result = resolveFromRepository(request, candidates);
}
if (result == null) {
@@ -129,7 +135,30 @@ public PluginPrefixResult resolve(PluginPrefixRequest request) throws NoPluginFo
return result;
}
- private PluginPrefixResult resolveFromProject(PluginPrefixRequest request, List<Plugin> plugins) {
+ private PluginPrefixResult resolveFromProject(
+ PluginPrefixRequest request, List<Plugin> plugins, List<Plugin> pluginMgmt) {
+ if (plugins.isEmpty() && pluginMgmt.isEmpty()) {
+ return null;
+ }
+ PluginPrefixResult result = null;
+ // try optimistically; first if A contains prefix?
+ Set<Plugin> candidates = new LinkedHashSet<>();
+ Stream.concat(plugins.stream(), pluginMgmt.stream())
+ .filter(p -> p.getArtifactId().contains(request.getPrefix()))
+ .forEach(candidates::add);
+ if (!candidates.isEmpty()) {
+ result = doResolveFromProject(request, candidates);
+ }
+ // if no luck; try the rest
+ if (result == null) {
+ Set<Plugin> remainder = new LinkedHashSet<>(plugins);
+ remainder.removeAll(candidates);
+ result = doResolveFromProject(request, remainder);
+ }
+ return result;
+ }
+
+ private PluginPrefixResult doResolveFromProject(PluginPrefixRequest request, Collection<Plugin> plugins) {
for (Plugin plugin : plugins) {
try {
PluginDescriptor pluginDescriptor =
=====================================
maven-embedder/pom.xml
=====================================
@@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
- <version>3.9.14</version>
+ <version>3.9.16</version>
</parent>
<artifactId>maven-embedder</artifactId>
=====================================
maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
=====================================
@@ -1453,7 +1453,8 @@ private MavenExecutionRequest populateRequest(CliRequest cliRequest, MavenExecut
return request;
}
- int calculateDegreeOfConcurrency(String threadConfiguration) {
+ int calculateDegreeOfConcurrency(String originalThreadConfiguration) {
+ String threadConfiguration = originalThreadConfiguration.trim();
if (threadConfiguration.endsWith("C")) {
threadConfiguration = threadConfiguration.substring(0, threadConfiguration.length() - 1);
=====================================
maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java
=====================================
@@ -82,10 +82,18 @@ public void testCalculateDegreeOfConcurrency() {
assertThrows(IllegalArgumentException.class, () -> cli.calculateDegreeOfConcurrency("2C2"));
assertThrows(IllegalArgumentException.class, () -> cli.calculateDegreeOfConcurrency("CXXX"));
assertThrows(IllegalArgumentException.class, () -> cli.calculateDegreeOfConcurrency("XXXC"));
+ assertThrows(IllegalArgumentException.class, () -> cli.calculateDegreeOfConcurrency("1c"));
+ assertThrows(IllegalArgumentException.class, () -> cli.calculateDegreeOfConcurrency(" 1c"));
+ assertThrows(IllegalArgumentException.class, () -> cli.calculateDegreeOfConcurrency("1c "));
+ assertThrows(IllegalArgumentException.class, () -> cli.calculateDegreeOfConcurrency(" 1c "));
int cpus = Runtime.getRuntime().availableProcessors();
assertEquals((int) (cpus * 2.2), cli.calculateDegreeOfConcurrency("2.2C"));
assertEquals(1, cli.calculateDegreeOfConcurrency("0.0001C"));
+ assertEquals(1 * cpus, cli.calculateDegreeOfConcurrency(" 1C"));
+ assertEquals(1 * cpus, cli.calculateDegreeOfConcurrency(" 1C "));
+ assertEquals(1, cli.calculateDegreeOfConcurrency(" 1"));
+ assertEquals(1, cli.calculateDegreeOfConcurrency(" 1 "));
assertThrows(IllegalArgumentException.class, () -> cli.calculateDegreeOfConcurrency("-2.2C"));
assertThrows(IllegalArgumentException.class, () -> cli.calculateDegreeOfConcurrency("0C"));
}
=====================================
maven-model-builder/pom.xml
=====================================
@@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
- <version>3.9.14</version>
+ <version>3.9.16</version>
</parent>
<artifactId>maven-model-builder</artifactId>
=====================================
maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java
=====================================
@@ -485,8 +485,9 @@ void performFor(String value, String locationKey, Consumer<String> mutator) {
nt.performFor(pa.getName(), "name", pa::setName);
nt.performFor(pa.getValue(), "value", pa::setValue);
});
- a.map(Activation::getJdk).ifPresent(ja -> new Interpolation(activation, interpolator::interpolate)
- .performFor(ja, "jdk", activation::setJdk));
+ a.map(Activation::getJdk)
+ .ifPresent(ja -> new Interpolation(activation, interpolator::interpolate)
+ .performFor(ja, "jdk", activation::setJdk));
}
return interpolatedActivations;
}
@@ -794,9 +795,10 @@ private Model interpolateModel(Model model, ModelBuildingRequest request, ModelP
// restore profiles with any activation to their value before full interpolation
List<Profile> interpolatedProfiles = model.getProfiles();
- IntStream.range(0, interpolatedProfiles.size()).forEach(i -> interpolatedProfiles
- .get(i)
- .setActivation(originalProfiles.get(i).getActivation()));
+ IntStream.range(0, interpolatedProfiles.size())
+ .forEach(i -> interpolatedProfiles
+ .get(i)
+ .setActivation(originalProfiles.get(i).getActivation()));
return interpolatedModel;
}
=====================================
maven-model/pom.xml
=====================================
@@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
- <version>3.9.14</version>
+ <version>3.9.16</version>
</parent>
<artifactId>maven-model</artifactId>
=====================================
maven-model/src/main/mdo/maven.mdo
=====================================
@@ -86,7 +86,12 @@
<name>modelVersion</name>
<version>4.0.0+</version>
<required>true</required>
- <description>Declares to which version of project descriptor this POM conforms.</description>
+ <description>
+ <![CDATA[
+ Declares to which version of project descriptor this POM conforms to: <code>4.0.0</code> is the only
+ value supported by Maven 3.
+ ]]>
+ </description>
<type>String</type>
</field>
=====================================
maven-plugin-api/pom.xml
=====================================
@@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
- <version>3.9.14</version>
+ <version>3.9.16</version>
</parent>
<artifactId>maven-plugin-api</artifactId>
=====================================
maven-repository-metadata/pom.xml
=====================================
@@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
- <version>3.9.14</version>
+ <version>3.9.16</version>
</parent>
<artifactId>maven-repository-metadata</artifactId>
=====================================
maven-resolver-provider/pom.xml
=====================================
@@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
- <version>3.9.14</version>
+ <version>3.9.16</version>
</parent>
<artifactId>maven-resolver-provider</artifactId>
=====================================
maven-settings-builder/pom.xml
=====================================
@@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
- <version>3.9.14</version>
+ <version>3.9.16</version>
</parent>
<artifactId>maven-settings-builder</artifactId>
=====================================
maven-settings/pom.xml
=====================================
@@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
- <version>3.9.14</version>
+ <version>3.9.16</version>
</parent>
<artifactId>maven-settings</artifactId>
=====================================
maven-slf4j-provider/pom.xml
=====================================
@@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven</artifactId>
- <version>3.9.14</version>
+ <version>3.9.16</version>
</parent>
<artifactId>maven-slf4j-provider</artifactId>
=====================================
pom.xml
=====================================
@@ -23,12 +23,12 @@ under the License.
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven-parent</artifactId>
- <version>47</version>
+ <version>48</version>
<relativePath />
</parent>
<artifactId>maven</artifactId>
- <version>3.9.14</version>
+ <version>3.9.16</version>
<packaging>pom</packaging>
<name>Apache Maven</name>
@@ -104,7 +104,7 @@ under the License.
<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.9.14</tag>
+ <tag>maven-3.9.16</tag>
<url>https://github.com/apache/maven/tree/${project.scm.tag}</url>
</scm>
<issueManagement>
@@ -127,17 +127,17 @@ under the License.
<javaVersion>8</javaVersion>
<version.sisu-maven-plugin>1.0.0</version.sisu-maven-plugin>
<asmVersion>9.9.1</asmVersion>
- <classWorldsVersion>2.9.0</classWorldsVersion>
+ <classWorldsVersion>2.11.0</classWorldsVersion>
<commonsCliVersion>1.11.0</commonsCliVersion>
- <commonsIoVersion>2.21.0</commonsIoVersion>
+ <commonsIoVersion>2.22.0</commonsIoVersion>
<hamcrestVersion>3.0</hamcrestVersion>
<mockitoVersion>4.11.0</mockitoVersion>
<plexusVersion>2.2.0</plexusVersion>
<plexusInterpolationVersion>1.29</plexusInterpolationVersion>
<!-- Blocked by 3.4.0+ changes, see MNG-7710, downgrade from parent 4.0.1 -->
- <version.plexus-utils>3.6.0</version.plexus-utils>
+ <version.plexus-utils>3.6.1</version.plexus-utils>
<guiceVersion>5.1.0</guiceVersion>
- <guavaVersion>33.5.0-jre</guavaVersion>
+ <guavaVersion>33.6.0-jre</guavaVersion>
<guavafailureaccessVersion>1.0.3</guavafailureaccessVersion>
<wagonVersion>3.5.3</wagonVersion>
<securityDispatcherVersion>2.0</securityDispatcherVersion>
@@ -155,7 +155,7 @@ under the License.
<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-03-09T10:54:04Z</project.build.outputTimestamp>
+ <project.build.outputTimestamp>2026-05-13T21:36:05Z</project.build.outputTimestamp>
</properties>
<!--bootstrap-start-comment-->
@@ -353,7 +353,7 @@ under the License.
<dependency>
<groupId>org.fusesource.jansi</groupId>
<artifactId>jansi</artifactId>
- <version>2.4.2</version>
+ <version>2.4.3</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
=====================================
src/site/site.xml
=====================================
@@ -23,12 +23,6 @@ under the License.
xsi:schemaLocation="http://maven.apache.org/SITE/2.0.0 https://maven.apache.org/xsd/site-2.0.0.xsd"
name="Apache Maven">
- <bannerLeft href="https://maven.apache.org/">
- <image src="https://maven.apache.org/images/apache-maven-project.png" alt="Apache Maven" />
- </bannerLeft>
-
- <edit>${project.scm.url}</edit>
-
<body>
<breadcrumbs>
<item name="Ref" href="../" />
@@ -66,4 +60,4 @@ under the License.
<menu inherit="bottom" ref="modules"/>
<menu inherit="bottom" ref="reports"/>
</body>
-</site>
\ No newline at end of file
+</site>
View it on GitLab: https://salsa.debian.org/java-team/maven/-/compare/9c60434f730ab51f6f767a7932e1d90805354a92...a5935367f6ca19d9723982f19f15cefd67c2b002
--
View it on GitLab: https://salsa.debian.org/java-team/maven/-/compare/9c60434f730ab51f6f767a7932e1d90805354a92...a5935367f6ca19d9723982f19f15cefd67c2b002
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20261125/680fd007/attachment.htm>
More information about the pkg-java-commits
mailing list