You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by GitBox <gi...@apache.org> on 2021/07/12 19:50:27 UTC

[GitHub] [maven-site] michael-o commented on a change in pull request #246: Adding .mavenrc documentation

michael-o commented on a change in pull request #246:
URL: https://github.com/apache/maven-site/pull/246#discussion_r668139207



##########
File path: content/markdown/configure.md
##########
@@ -80,6 +80,12 @@ Starting with Maven 3.3.1+ you can define JVM configuration via `${maven.project
 
 You don't need to use these options in `MAVEN_OPTS` or switch between different configurations.
 
+
+### `.mavenrc` file:
+
+Located in USER_HOME/.mavenrc (or %HOME%\mavenrc_pre.bat on windows) this file allows you to define scripts which can set ENV variables and other properties prior to Maven reading the project. This allows users to define variables in either the settings.xml or pom.xml and have them read the property that was dynamically set by the .mavenrc file.

Review comment:
       This is not correct. Read the files:
   https://github.com/apache/maven/blob/1052ec5d871963cd662e7b6a4608cab30a63d79e/apache-maven/src/assembly/shared/validate.cmd#L40-L41
   https://github.com/apache/maven/blob/1052ec5d871963cd662e7b6a4608cab30a63d79e/apache-maven/src/assembly/shared/validate#L36-L38




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org