我在我的系统中使用了dl4j示例。这是一个包含各种模块的maven项目。它有几个pom文件。在父POM文件我发现我得到了一个错误,指出:
无法解析符号 'session.executionRootDirectory'
。
我不记得改变这一行(或这个pom文件)。产生这一问题的线是这个:
<configFile>${session.executionRootDirectory}/contrib/formatter.xml</configFile>
文件parent pom file线90
我的问题是,因为${session.executionRootDirectory}
好像作为我的系统无法识别的变量是一个环境变量我应该的东西组?这应该以另一种方式设置吗? 任何想法${session.executionRootDirectory}
是什么以及如何设置它欢迎。
我的系统是win7,我正在使用Intellij Idea。
这个问题似乎可以通过用它指向的文件路径的实际值替换变量来解决(即formatter.xml),但我想知道为什么带有变量的解决方案没有工作。
这是一个maven属性检查:https://maven.apache.org/examples/injecting-properties-via-settings.html –
在maven指令中它指的是一个Settings.xml文件。假设该文件在哪里? – Eypros
我想在.m2/settings.xml中。你也可以设置一个特定的路径,请参阅文档:https://maven.apache.org/settings.html –