Stored Maven run configurations working directory
Answered
I have a saved Maven build configuration in .run folder of ProjectA which has
<option name="workingDirPath" value="$PROJECT_DIR$" />
but the problem arise if I were to import this ProjectA as a module of ProjectB it would have a wrong workingDirPath and will run a Maven goal on ProjectB instead.
Even if I use this config which the run config auto set for me
<option name="workingDirPath" value="$PROJECT_DIR$/../Project-A" />
It would heavily rely on the name of ProjectA directory which when cloned from git, can be any.
There's a macro $MODULE_DIR$ that works on application run config working directory but not work on Maven build config.
Do I have any other alternatives?
Please sign in to leave a comment.
Unfortunately I cannot think of some workarounds. There is a corresponding issue, please vote for https://youtrack.jetbrains.com/issue/IDEA-118142