apache / apache/maven-mvnd

Environment mismatch warning

Open
#1,490 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
3.5k
Forks
250
Avg merge
16h 22m
Merged PRs (30d)
36

Description

### 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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the warning with Apache Maven Daemon 1.0.3 on JDK 21 using the Linux-amd64 native client, then trace where the environment setup attempts to access `userDir`. Done means the warning no longer appears during a build and the build continues to work as before.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.