无法引用环境变量

编程入门 行业动态 更新时间:2024-10-27 16:27:17
本文介绍了无法引用环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

更多推荐

无法引用环境变量

本文发布于:2023-10-22 23:21:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1519030.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:环境变量

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!