有谁知道为什么我无法引用下面显示的用户环境变量(红框),但我可以引用系统环境变量(绿框)而没有任何问题?
Anyone know why I am unable to reference the User environment variables shown below (red box) but I am able to reference the System environment variables (green box) without any issues?
推荐答案好吧,总之,它们需要放在 ENVIRONMENT VARIABLES GO HERE </environmentVariables> 内POM 让他们被捡起.正如@Andrey 在他的回复中指出的那样,它们确实显示为未解决,但仍然有效.您可以使用以下命令阻止它们显示为未解析:<!--suppress UnresolvedMavenProperty -->
Ok so, in short, they need to be placed in <environmentVariables>ENVIRONMENT VARIABLES GO HERE </environmentVariables> within the POM for them to be picked up. As @Andrey pointed out in his reply, they do show as unresolved but will still work. You can stop them showing as unresolved using: <!--suppress UnresolvedMavenProperty -->
更多推荐
无法引用环境变量
发布评论