Intellij POM
Answered
Hi,
I have a project with a mk file which uses Windows environment variables to initialize project variables. These variables are used in the pom.xml file as dependency versions.
For example,
mk file
export VARIABLE = $(ENVIRONMENT_VARIABLE)
pom file
<x.version>${VARIABLE}</x.version>
The dependencies are then resolved dynamically.
I do not have the authority to change either of these files.
Is there a way to read information from the mk file into the pom? Or should I hardcode the variables?
Please sign in to leave a comment.
Answered in the support request:
There is no such support. You can define the JVM variables for Maven import process in Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Maven | Importing | VM options for importer or in
maven.configfile, e.g.-Dcompiler.plugin.version=3.8.1then use it in pom.xml like${compiler.plugin.version}.