2

I am using dl4j examples in my system. It's a maven project with various modules. There are several pom files in it. In the parent pom file I noticed I got an error stating:

Cannot resolve symbol 'session.executionRootDirectory'

.

I don't remember changing this line (or this pom file either). The line producing the problem is this one:

<configFile>${session.executionRootDirectory}/contrib/formatter.xml</configFile>

in file parent pom file line 90.

My question is since ${session.executionRootDirectory} seems as a variable which my system fails to identify is it something of an environment variable I should set? Should this be set by another way? Any idea of what ${session.executionRootDirectory} is and how to set it welcome.

My system is win7 and I am using Intellij Idea.

The problem seem to be solved by replacing the variable with an actual value of the path to the file it points to (that is formatter.xml) but I would like to know why the solution with the variable does not work.

Jens
  • 67,715
  • 15
  • 98
  • 113
Eypros
  • 5,370
  • 6
  • 42
  • 75

2 Answers2

-2

Values between ${...} are Maven property. You can read the documentation for a detailed explanation here.

Values have to be be configured in a settings.xml file.

This file may live in:

  • The Maven install: ${maven.home}/conf/settings.xml
  • A user’s install: ${user.home}/.m2/settings.xml

For more details about settings.xml, check the Maven documentation.

alain.janinm
  • 19,951
  • 10
  • 65
  • 112
  • 1
    Sorry, it seems that eventually this didn't solve my problem so I couldn't accept is as an answer. – Eypros Oct 24 '17 at 08:00
-3

No it is in your project path:

dl4j-examples/contrib/formatter.xml
deHaar
  • 17,687
  • 10
  • 38
  • 51