You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jorgheymans (via GitHub)" <gi...@apache.org> on 2025/12/09 16:37:12 UTC

[I] Environment mismatch warning [maven-mvnd]

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

   ### Affected version
   
   Apache Maven Daemon (mvnd) 1.0.3 linux-amd64 native client (824a1fd42088e27dec6cc7cc392b9122379e7bf0)
   
   ### Bug description
   
   Since we moved to jdk21, we're seeing this message on each build:
   
   [WARNING] Environment mismatch ! Could not set the environment (java.lang.NoSuchFieldException: userDir)
   
   The build works regardless, but just thought i'ld mention it here just in case.


-- 
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: issues-unsubscribe@maven.apache.org.apache.org

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


Re: [I] Environment mismatch warning [maven-mvnd]

Posted by "jorgheymans (via GitHub)" <gi...@apache.org>.
jorgheymans commented on issue #1490:
URL: https://github.com/apache/maven-mvnd/issues/1490#issuecomment-3633204451

   ```
   mvnd --version
   Apache Maven Daemon (mvnd) 1.0.3 linux-amd64 native client (824a1fd42088e27dec6cc7cc392b9122379e7bf0)
   Terminal: org.jline.terminal.impl.PosixSysTerminal with pty org.jline.terminal.impl.jni.linux.LinuxNativePty
   [WARNING] Environment mismatch ! Could not set the environment (java.lang.NoSuchFieldException: userDir)
   Apache Maven 3.9.11 (3e54c93a704957b63ee3494413a2b544fd3d825b)
   Maven home: /home/user/.sdkman/candidates/mvnd/1.0.3/mvn
   Java version: 21.0.9, vendor: JetBrains s.r.o., runtime: /home/user/.sdkman/candidates/java/21.0.9-jbr
   Default locale: en_US, platform encoding: UTF-8
   OS name: "linux", version: "6.8.0-88-generic", arch: "amd64", family: "unix"
   ```


-- 
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: issues-unsubscribe@maven.apache.org

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


Re: [I] Environment mismatch warning [maven-mvnd]

Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz closed issue #1490: Environment mismatch warning
URL: https://github.com/apache/maven-mvnd/issues/1490


-- 
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: issues-unsubscribe@maven.apache.org

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


Re: [I] Environment mismatch warning [maven-mvnd]

Posted by "warrenc5 (via GitHub)" <gi...@apache.org>.
warrenc5 commented on issue #1490:
URL: https://github.com/apache/maven-mvnd/issues/1490#issuecomment-3690751893

   I got it on an older version of mvnd 3.8.3
   Some sort of binary mismatch (W.O.R.A. L.M.A.O) 
   So I upgraded mvnd 
   
   ```
   sdk install mvnd
   Downloading: mvnd 1.0.3
   ```
   
   ```
    mvnd --version
   Apache Maven Daemon (mvnd) 1.0.3 linux-amd64 native client (824a1fd42088e27dec6cc7cc392b9122379e7bf0)
   Terminal: org.jline.terminal.impl.PosixSysTerminal with pty org.jline.terminal.impl.jni.linux.LinuxNativePty
   Apache Maven 3.9.11 (3e54c93a704957b63ee3494413a2b544fd3d825b)
   Maven home: /home/wozza/.sdkman/candidates/mvnd/1.0.3/mvn
   Java version: 24.0.2, vendor: Oracle Corporation, runtime: /home/wozza/.sdkman/candidates/java/24.0.2-graal
   Default locale: en_AU, platform encoding: UTF-8
   OS name: "linux", version: "6.12.43+deb13-amd64", arch: "amd64", family: "unix"
   ```
   
   Highly recommend using sdkman.


-- 
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: issues-unsubscribe@maven.apache.org

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