Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down
3 changes: 1 addition & 2 deletions content/markdown/guides/mini/guide-resolver-transport.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Comment thread
ascheman marked this conversation as resolved.
Outdated

You can also use environment variable `MAVEN_OPTS` ot `MAVEN_ARGS`

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in b01f578 — 'ot' -> 'or'.


Expand Down