pigelvy opened a new issue, #1302:
URL: https://github.com/apache/maven-mvnd/issues/1302

   ### Affected version
   
   1.0.2
   
   ### Bug description
   
   I just noticed that, between `mvn` and `mvnd`, Windows environment variables 
are not interpolated the same way.
   
   Let's use the environment variable `windir` for example.
   - `mvn` interpolates correctly `${env.WINDIR}`
   - `mvnd` interpolates correctly `${env.windir}`
   
   I created a test POM to experience the issue.
   
   - Executions of `mvnd clean`
      ```
      D:\temp\mvnd_test>mvnd clean
      [INFO] Processing build on daemon c43021f1
      [INFO] Scanning for projects...
      [INFO] BuildTimeEventSpy is registered.
      [INFO]
      [INFO] Using the SmartBuilder implementation with a thread count of 15
      [INFO]
      [INFO] ------------< org.apache.mvnd:mvnd-env-interpolation-issue 
>------------
      [INFO] Building mvnd-env-interpolation-issue 0.0.1-SNAPSHOT
      [INFO]   from pom.xml
      [INFO] --------------------------------[ jar 
]---------------------------------
      [INFO]
      [INFO] --- clean:3.2.0:clean (default-clean) @ 
mvnd-env-interpolation-issue ---
      [INFO]
      [INFO] --- exec:3.1.0:exec (Echo env variables) @ 
mvnd-env-interpolation-issue ---
      [INFO] 
------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] 
------------------------------------------------------------------------
      [INFO] Total time:  0.139 s (Wall Clock)
      [INFO] Finished at: 2025-03-27T10:55:38+01:00
      [INFO] 
------------------------------------------------------------------------
      [INFO] [stdout] windir=C:\WINDOWS, WINDIR=$env.WINDIR
      ```
   - Execution of `mvn clean`
      ```
      D:\temp\mvnd_test>mvn clean
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------< org.apache.mvnd:mvnd-env-interpolation-issue 
>------------
      [INFO] Building mvnd-env-interpolation-issue 0.0.1-SNAPSHOT
      [INFO]   from pom.xml
      [INFO] --------------------------------[ jar 
]---------------------------------
      [INFO]
      [INFO] --- clean:3.2.0:clean (default-clean) @ 
mvnd-env-interpolation-issue ---
      [INFO]
      [INFO] --- exec:3.1.0:exec (Echo env variables) @ 
mvnd-env-interpolation-issue ---
      windir=$env.windir, WINDIR=C:\WINDOWS
      [INFO] 
------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] 
------------------------------------------------------------------------
      [INFO] Total time:  0.516 s
      [INFO] Finished at: 2025-03-27T10:53:35+01:00
      [INFO] 
------------------------------------------------------------------------
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to