无法引用环境变量 [英] Unable to reference environment variables

查看:69
本文介绍了无法引用环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道为什么我无法引用下面显示的用户环境变量(红框),但我可以引用系统环境变量(绿框)而没有任何问题?

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

这篇关于无法引用环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆