You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2021/07/22 14:19:30 UTC

[maven] branch MNG-7192 updated (e442b40 -> 3bb4ad6)

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

michaelo pushed a change to branch MNG-7192
in repository https://gitbox.apache.org/repos/asf/maven.git.


 discard e442b40  [MNG-7192] Remove unsed MAVEN_CMD_LINE_ARGS environment variable in startup scripts
     add 2321e03  [MNG-7190] add /usr/local/etc/mavenrc to reference documentation
     add f582ce8  [MNG-7047] Validate that repo configuration does not contain any expression
     add 0696cf1  [MNG-7131] maven.config doesn't handle arguments with spaces in them
     add b8cdac5  [MNG-7189] Remove undocumented environment variable MAVEN_BASEDIR in startup scripts
     add 6b37fcb  [MNG-7191] Remove undocumented environment variable MAVEN_CONFIG in startup scripts
     new 3bb4ad6  [MNG-7192] Remove unsed MAVEN_CMD_LINE_ARGS environment variable in startup scripts

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (e442b40)
            \
             N -- N -- N   refs/heads/MNG-7192 (3bb4ad6)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

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.


Summary of changes:
 apache-maven/src/assembly/shared/init              |  2 +-
 apache-maven/src/assembly/shared/init.cmd          |  3 --
 apache-maven/src/site/apt/index.apt.vm             |  4 +--
 .../main/java/org/apache/maven/cli/MavenCli.java   |  3 +-
 .../java/org/apache/maven/cli/MavenCliTest.java    | 19 +++++++---
 .../src/test/projects/config/.mvn/maven.config     |  5 +--
 .../mavenConfigProperties/.mvn/maven.config        |  4 ++-
 .../maven/model/building/DefaultModelBuilder.java  |  2 +-
 .../apache/maven/model/building/ModelProblem.java  |  1 -
 .../model/validation/DefaultModelValidator.java    | 25 +++++++++----
 .../validation/DefaultModelValidatorTest.java      | 16 +++++++++
 .../repository-with-basedir-expression.xml         | 38 ++++++++------------
 .../raw-model/repository-with-expression.xml       | 42 ++++++++++------------
 13 files changed, 94 insertions(+), 70 deletions(-)
 copy maven-model-transform/pom.xml => maven-model-builder/src/test/resources/poms/validation/raw-model/repository-with-basedir-expression.xml (60%)
 copy maven-model-transform/pom.xml => maven-model-builder/src/test/resources/poms/validation/raw-model/repository-with-expression.xml (60%)

[maven] 01/01: [MNG-7192] Remove unsed MAVEN_CMD_LINE_ARGS environment variable in startup scripts

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

michaelo pushed a commit to branch MNG-7192
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 3bb4ad6aa8bcbab24b9f28464e3b4b4da85759ef
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Tue Jul 20 01:07:42 2021 +0200

    [MNG-7192] Remove unsed MAVEN_CMD_LINE_ARGS environment variable in startup scripts
---
 apache-maven/src/assembly/shared/init.cmd | 2 --
 apache-maven/src/assembly/shared/run      | 5 -----
 apache-maven/src/assembly/shared/run.cmd  | 2 +-
 3 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/apache-maven/src/assembly/shared/init.cmd b/apache-maven/src/assembly/shared/init.cmd
index a74ca4b..10758df 100755
--- a/apache-maven/src/assembly/shared/init.cmd
+++ b/apache-maven/src/assembly/shared/init.cmd
@@ -2,8 +2,6 @@
 
 :init
 
-set MAVEN_CMD_LINE_ARGS=%*
-
 @REM Find the project basedir, i.e., the directory that contains the directory ".mvn".
 @REM Fallback to current working directory if not found.
 
diff --git a/apache-maven/src/assembly/shared/run b/apache-maven/src/assembly/shared/run
index 7e75943..55550eb 100755
--- a/apache-maven/src/assembly/shared/run
+++ b/apache-maven/src/assembly/shared/run
@@ -10,11 +10,6 @@ if $cygwin ; then
     LAUNCHER_JAR=`cygpath --path --windows "$LAUNCHER_JAR"`
 fi
 
-# Provide a "standardized" way to retrieve the CLI args that will
-# work with both Windows and non-Windows executions.
-MAVEN_CMD_LINE_ARGS="$@"
-export MAVEN_CMD_LINE_ARGS
-
 exec "$JAVACMD" \
   $MAVEN_OPTS \
   $MAVEN_DEBUG_OPTS \
diff --git a/apache-maven/src/assembly/shared/run.cmd b/apache-maven/src/assembly/shared/run.cmd
index 99d999d..e972160 100755
--- a/apache-maven/src/assembly/shared/run.cmd
+++ b/apache-maven/src/assembly/shared/run.cmd
@@ -5,7 +5,7 @@
   -classpath %LAUNCHER_JAR% ^
   %MAVENHOME_CONFIG% ^
   "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
-  %MAVEN_LAUNCHER% %MAVEN_CMD_LINE_ARGS%
+  %MAVEN_LAUNCHER% %*
 if ERRORLEVEL 1 goto error
 goto end