I created a maven project and imported it in intellij. In a run configuration there is a field \"working directory\" which points to the root of maven project. If I change t
This is the directory that is set as the Java user.dir
system property. If you have any code that creates relative files or directories, it will be relative to this directory. So for a well designed application (i.e. resolves resources from the classpath and is configurable for output directories) this will not be a factor. There is also some importance to this value in maven projects, especially multi-module maven projects. This directory specifies the directory IDEA will read the POM from.
If you are unflamilar with what the Java user.dir
is, there is some discussion available here and in the class level Javadoc for the File class.
In addition to answer given by @Javaru if you want to update or view your working directory in IntelliJ IDEA go to:
Edit Configuration | Configuration Tab | Working Directory
From the IntellJ help Run/Debug Configuration: Maven
Working directory Specify the path to the Maven project file pom.xml.