Maven “什么是”呢${env.M2_HOME}”;我该怎么设置呢?
我在尝试执行maven构建时遇到以下错误:Maven “什么是”呢${env.M2_HOME}”;我该怎么设置呢?,maven,Maven,我在尝试执行maven构建时遇到以下错误: [INFO] An Ant BuildException has occured: The following error occurred while executing this line: C:\[[project]]\build.xml:17: settingsFile does not exist: C:\[[project]]\${env.M2_HOME}\conf\settings.xml 这和M2.HOME一样吗?由于公司愚蠢的it
[INFO] An Ant BuildException has occured: The following error occurred while executing this line:
C:\[[project]]\build.xml:17:
settingsFile does not exist: C:\[[project]]\${env.M2_HOME}\conf\settings.xml
这和M2.HOME一样吗?由于公司愚蠢的it安全策略,我无法访问环境变量,如何设置它?是否可以使用IntelliJ IDEA在项目中设置它?它是
M2\u HOME
环境变量
export M2_HOME=/path/to/maven
或者由于您使用的是Windows(抱歉):
不过我喜欢windows:P
set M2_HOME=c:/path/to/maven