You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/08/28 09:40:19 UTC

(maven) branch cli-encryption-warning-3.10.x created (now 256fab5bd4)

This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a change to branch cli-encryption-warning-3.10.x
in repository https://gitbox.apache.org/repos/asf/maven.git


      at 256fab5bd4 [12811] Warn that Maven 3.x password encryption is obfuscation-grade (gh-12811)

This branch includes the following new commits:

     new 256fab5bd4 [12811] Warn that Maven 3.x password encryption is obfuscation-grade (gh-12811)

The 1 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.



(maven) 01/01: [12811] Warn that Maven 3.x password encryption is obfuscation-grade (gh-12811)

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch cli-encryption-warning-3.10.x
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 256fab5bd462092b6930641b43ac4d65ccf7804b
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Fri Aug 28 11:40:06 2026 +0200

    [12811] Warn that Maven 3.x password encryption is obfuscation-grade (gh-12811)
---
 maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
index 7587650385..a7a9b2512e 100644
--- a/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
+++ b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
@@ -946,6 +946,9 @@ private List<File> parseExtClasspath(CliRequest cliRequest) {
     // This should probably be a separate tool and not be baked into Maven.
     //
     private void encryption(CliRequest cliRequest) throws Exception {
+        System.out.println(
+                "Note: Maven 3.x password encryption is obfuscation-grade and does not protect against a determined "
+                        + "attacker; see https://maven.apache.org/guides/mini/guide-encryption.html");
         if (cliRequest.commandLine.hasOption(CLIManager.ENCRYPT_MASTER_PASSWORD)) {
             String passwd = cliRequest.commandLine.getOptionValue(CLIManager.ENCRYPT_MASTER_PASSWORD);