You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by as...@apache.org on 2026/07/18 11:37:58 UTC
(maven-site) branch master updated (f9b96f16 -> d31b2f2c)
This is an automated email from the ASF dual-hosted git repository.
ascheman pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/maven-site.git
from f9b96f16 bump actions/setup-java from 5.5.0 to 5.6.0 (#1617)
new 53d9b5c4 [#12288] Doc <activation> limit on resolver props
new d31b2f2c [#12288] Address Copilot review: fix typo + split NOTICE for readability
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../markdown/guides/introduction/introduction-to-profiles.md | 2 ++
content/markdown/guides/mini/guide-resolver-transport.md | 10 +++++++---
2 files changed, 9 insertions(+), 3 deletions(-)
(maven-site) 01/02: [#12288] Doc limit on resolver props
Posted by as...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ascheman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-site.git
commit 53d9b5c46a9ef2515dfd2ba0d15d0a948b54668b
Author: Gerd Aschemann <ge...@aschemann.net>
AuthorDate: Wed Jun 17 18:53:27 2026 +0200
[#12288] Doc <activation> limit on resolver props
The aether.* properties declared in a settings.xml <profile> only take
effect if the profile is listed under <activeProfiles> or activated via
CLI -P. The limitation has been documented since MNG-7850 (2023), but
only in the resolver-transport mini-guide -- users coming from the
profile side never find it.
* mini/guide-resolver-transport.md -- strengthen the NOTICE to enumerate
all <activation> conditions affected (not just activeByDefault) and
spell out the timing reason in one sentence.
* introduction/introduction-to-profiles.md -- add a Note for resolver
configuration sentence in the Active by default section, with
cross-link to the mini-guide caveat.
Wording is accurate for current Maven 3.x and Maven 4 RCs. apache/maven#12297
fixes the activeByDefault case on Maven 4 master; once that release
ships and the backport question is settled, this doc should be updated
to qualify the limitation to specific version ranges.
---
content/markdown/guides/introduction/introduction-to-profiles.md | 2 ++
content/markdown/guides/mini/guide-resolver-transport.md | 3 +--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/content/markdown/guides/introduction/introduction-to-profiles.md b/content/markdown/guides/introduction/introduction-to-profiles.md
index ef08d009..49eb5410 100644
--- a/content/markdown/guides/introduction/introduction-to-profiles.md
+++ b/content/markdown/guides/introduction/introduction-to-profiles.md
@@ -126,6 +126,8 @@ Example to set a profile active by default.
</profiles>
```
+**Note for resolver configuration:** When configuring [Maven Resolver](../mini/guide-resolver-transport.html#system-level) low-level options (`aether.*` system properties) in a `settings.xml` profile, `<activeByDefault>true</activeByDefault>` does **not** suffice -- the resolver session is built before profile activation conditions are evaluated. List the profile id under `<activeProfiles>` (or pass `-P <id>`) instead.
+
##### JDK
The following configuration will trigger the profile when the JDK's version _starts with_ `1.4` (for example `1.4.0_08`, `1.4.2_07`, `1.4`), in particular it _won't be active_ for **newer** versions like `1.8` or `11`:
diff --git a/content/markdown/guides/mini/guide-resolver-transport.md b/content/markdown/guides/mini/guide-resolver-transport.md
index 2abadec7..6b5ed34c 100644
--- a/content/markdown/guides/mini/guide-resolver-transport.md
+++ b/content/markdown/guides/mini/guide-resolver-transport.md
@@ -148,8 +148,7 @@ Configuration can be provided on global level as properties in `settings.xml`
</settings>
```
-**NOTICE**
-- only profiles activated by `settings/activeProfiles` will be taken for consideration - you can not use `profile/activation` in such case
+**NOTICE:** Only profiles activated by `settings/activeProfiles` (the explicit list at the bottom of `settings.xml`) are honored here, or by CLI `-P <id>`. Profiles activated through `<activation>` conditions in the profile itself (`<activeByDefault>`, `<jdk>`, `<os>`, `<property>`, `<file>`) are **not** taken into account for the resolver session config -- the resolver session is built before Maven evaluates those conditions.
You can also use environment variable `MAVEN_OPTS` ot `MAVEN_ARGS`
(maven-site) 02/02: [#12288] Address Copilot review: fix typo + split NOTICE for readability
Posted by as...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ascheman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-site.git
commit d31b2f2c333bc8310d3c57cfff6e0e83d01d242c
Author: Gerd Aschemann <as...@apache.org>
AuthorDate: Tue Jun 23 16:31:44 2026 +0200
[#12288] Address Copilot review: fix typo + split NOTICE for readability
* Fix typo on line 153: 'ot' -> 'or'.
* Split the long single-sentence NOTICE into a two-bullet list of the
honored activation channels plus a separate sentence on rationale,
per Copilot suggestion at line 151.
---
content/markdown/guides/mini/guide-resolver-transport.md | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/content/markdown/guides/mini/guide-resolver-transport.md b/content/markdown/guides/mini/guide-resolver-transport.md
index 6b5ed34c..409e4620 100644
--- a/content/markdown/guides/mini/guide-resolver-transport.md
+++ b/content/markdown/guides/mini/guide-resolver-transport.md
@@ -148,9 +148,14 @@ Configuration can be provided on global level as properties in `settings.xml`
</settings>
```
-**NOTICE:** Only profiles activated by `settings/activeProfiles` (the explicit list at the bottom of `settings.xml`) are honored here, or by CLI `-P <id>`. Profiles activated through `<activation>` conditions in the profile itself (`<activeByDefault>`, `<jdk>`, `<os>`, `<property>`, `<file>`) are **not** taken into account for the resolver session config -- the resolver session is built before Maven evaluates those conditions.
+**NOTICE:** Only profiles activated explicitly are honored here:
-You can also use environment variable `MAVEN_OPTS` ot `MAVEN_ARGS`
+* via `<activeProfiles>` (the explicit list at the bottom of `settings.xml`), or
+* via CLI `-P <id>`.
+
+Profiles activated through `<activation>` conditions in the profile itself — `<activeByDefault>`, `<jdk>`, `<os>`, `<property>`, `<file>` — are **not** taken into account for the resolver session config: the resolver session is built before Maven evaluates those conditions.
+
+You can also use environment variable `MAVEN_OPTS` or `MAVEN_ARGS`
```
export MAVEN_ARGS="-Daether.connector.http.preemptiveAuth=true"