Skip to content

Root locale as the first valid token from locales if no "default" included#1234

Draft
pbaumard wants to merge 238 commits intoapache:masterfrom
pbaumard:bugfix/no-locales-default-token
Draft

Root locale as the first valid token from locales if no "default" included#1234
pbaumard wants to merge 238 commits intoapache:masterfrom
pbaumard:bugfix/no-locales-default-token

Conversation

@pbaumard
Copy link
Copy Markdown

This closes #1226

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Make sure there is a JIRA issue filed
    for the change (usually before you start working on it). Trivial changes like typos do not
    require a JIRA issue. Your pull request should address just this issue, without
    pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [MSITE-XXX] - Fixes bug in ApproximateQuantiles,
    where you replace MSITE-XXX with the appropriate JIRA issue. Best practice
    is to use the JIRA issue title in the pull request title and in the first line of the
    commit message.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean verify to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.
  • You have run the integration tests successfully (mvn -Prun-its clean verify).

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

michael-o and others added 30 commits April 24, 2022 12:41
…is configured

Don't clear reports list since the next locale will need it to repeat generation.

This closes apache#110
…pportedLocales Velocity context property

This closes apache#111
slachiewicz and others added 23 commits October 19, 2025 15:48
Bumps org.apache.commons:commons-lang3 from 3.17.0 to 3.19.0.

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-lang3
  dependency-version: 3.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [org.apache.maven:maven-archiver](https://github.com/apache/maven-archiver) from 3.6.4 to 3.6.5.
- [Release notes](https://github.com/apache/maven-archiver/releases)
- [Commits](apache/maven-archiver@maven-archiver-3.6.4...maven-archiver-3.6.5)

---
updated-dependencies:
- dependency-name: org.apache.maven:maven-archiver
  dependency-version: 3.6.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [org.codehaus.plexus:plexus-archiver](https://github.com/codehaus-plexus/plexus-archiver) from 4.10.1 to 4.10.3.
- [Release notes](https://github.com/codehaus-plexus/plexus-archiver/releases)
- [Changelog](https://github.com/codehaus-plexus/plexus-archiver/blob/master/ReleaseNotes.md)
- [Commits](codehaus-plexus/plexus-archiver@plexus-archiver-4.10.1...plexus-archiver-4.10.3)

---
updated-dependencies:
- dependency-name: org.codehaus.plexus:plexus-archiver
  dependency-version: 4.10.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [commons-io:commons-io](https://github.com/apache/commons-io) from 2.20.0 to 2.21.0.
- [Changelog](https://github.com/apache/commons-io/blob/master/RELEASE-NOTES.txt)
- [Commits](apache/commons-io@rel/commons-io-2.20.0...rel/commons-io-2.21.0)

---
updated-dependencies:
- dependency-name: commons-io:commons-io
  dependency-version: 2.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [org.codehaus.plexus:plexus-i18n](https://github.com/codehaus-plexus/plexus-i18n) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/codehaus-plexus/plexus-i18n/releases)
- [Commits](codehaus-plexus/plexus-i18n@plexus-i18n-1.0.0...plexus-i18n-1.1.0)

---
updated-dependencies:
- dependency-name: org.codehaus.plexus:plexus-i18n
  dependency-version: 1.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [org.codehaus.plexus:plexus-archiver](https://github.com/codehaus-plexus/plexus-archiver) from 4.10.3 to 4.10.4.
- [Release notes](https://github.com/codehaus-plexus/plexus-archiver/releases)
- [Changelog](https://github.com/codehaus-plexus/plexus-archiver/blob/master/ReleaseNotes.md)
- [Commits](codehaus-plexus/plexus-archiver@plexus-archiver-4.10.3...plexus-archiver-4.10.4)

---
updated-dependencies:
- dependency-name: org.codehaus.plexus:plexus-archiver
  dependency-version: 4.10.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps org.apache.maven.plugin-testing:maven-plugin-testing-harness from 3.3.0 to 3.4.0.

---
updated-dependencies:
- dependency-name: org.apache.maven.plugin-testing:maven-plugin-testing-harness
  dependency-version: 3.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
)

Bumps org.apache.commons:commons-lang3 from 3.19.0 to 3.20.0.

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-lang3
  dependency-version: 3.20.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps org.apache.logging.log4j:log4j-core from 2.20.0 to 2.25.3.

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-core
  dependency-version: 2.25.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [org.apache.maven:maven-archiver](https://github.com/apache/maven-archiver) from 3.6.5 to 3.6.6.
- [Release notes](https://github.com/apache/maven-archiver/releases)
- [Commits](apache/maven-archiver@maven-archiver-3.6.5...maven-archiver-3.6.6)

---
updated-dependencies:
- dependency-name: org.apache.maven:maven-archiver
  dependency-version: 3.6.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore: migrate to junit 5

Signed-off-by: Sandra Parsick <sandra@parsick.dev>

* refactor: inline classes

Signed-off-by: Sandra Parsick <sandra@parsick.dev>

* chore: migration to MojoTest

* chore: migrate junit3/4 to junit 5 (ITs)

* refactor(review): remove non-needed code, add comments

* fix(ci): spotless apply

---------

Signed-off-by: Sandra Parsick <sandra@parsick.dev>
…e#1219)

Bumps [org.codehaus.plexus:plexus-archiver](https://github.com/codehaus-plexus/plexus-archiver) from 4.10.4 to 4.11.0.
- [Release notes](https://github.com/codehaus-plexus/plexus-archiver/releases)
- [Changelog](https://github.com/codehaus-plexus/plexus-archiver/blob/master/ReleaseNotes.md)
- [Commits](codehaus-plexus/plexus-archiver@plexus-archiver-4.10.4...plexus-archiver-4.11.0)

---
updated-dependencies:
- dependency-name: org.codehaus.plexus:plexus-archiver
  dependency-version: 4.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ache#1218)

Bumps org.apache.maven.plugin-testing:maven-plugin-testing-harness from 3.4.0 to 3.5.0.

---
updated-dependencies:
- dependency-name: org.apache.maven.plugin-testing:maven-plugin-testing-harness
  dependency-version: 3.5.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
)

Bumps [org.codehaus.mojo:mrm-maven-plugin](https://github.com/mojohaus/mrm) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/mojohaus/mrm/releases)
- [Commits](mojohaus/mrm@1.7.0...mrm-1.7.1)

---
updated-dependencies:
- dependency-name: org.codehaus.mojo:mrm-maven-plugin
  dependency-version: 1.7.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ache#1229)

Bumps org.apache.maven.plugin-testing:maven-plugin-testing-harness from 3.5.0 to 3.5.1.

---
updated-dependencies:
- dependency-name: org.apache.maven.plugin-testing:maven-plugin-testing-harness
  dependency-version: 3.5.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Remover reference to Maven 2

* Simplify wording in creating-content.apt.vm
@michael-o michael-o self-requested a review February 25, 2026 15:51
@michael-o michael-o self-assigned this Feb 25, 2026
@michael-o michael-o marked this pull request as draft February 25, 2026 15:53
Copy link
Copy Markdown
Member

@michael-o michael-o left a comment

Choose a reason for hiding this comment

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

I went through the PR, the old code and the Doxia Sitetools and refusing this for the following reasons:

  • Although you are right, the docs aren't correct, I need to fix them, the previous behavior modified the entire JVM's locale which can have negative side effects in a MT build, we removed this change
  • Your change ignores to modify log messages regarding the default locale
  • You completely forgot to align with Doxia Sitetools because its behavior relies on SiteTool#DEFAULT_LOCALE throughout. We need a complete solution covering Doxia Sitetools and Maven Site Plugin.

I am currently thinking about something like this to give you to modify the Doxia Sitetools default locale:

 Locale DEFAULT_LOCALE = getDefaultLocale();

where you can supply mvn -Dmaven.doxiaSitetools.defaultLocale (or similar). Maybe there is a more elegant way to do this.

@kwin What do you think about this?

@michael-o
Copy link
Copy Markdown
Member

michael-o commented Mar 1, 2026

Draft solution: apache/maven-doxia-sitetools#623

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default locale should be the first valid token from locales