I think you need to set project-specific environment variables when you are assigned to a new project. It is a memo of the setting method in intellij. Probably windows will not change, but the demo is for Mac.
Open the menu preference> Build, Execution, Deployment> Build Tools> Maven> Runner
Click "..." at the right end of Environment Variables
that's all
The variables set here are automatically set in the environment variables of the Maven project set in Run. If you want to set for each type of Run, make the same setting for each Run from Edit Configuration of Run.
Recommended Posts