This Question is Answered

2 "helpful" answers available (2 pts)
2 Replies Last post: Mar 21, 2014 10:12 AM by Sébastien Pennec  
Sébastien Pennec Newbie 25 posts since
Mar 18, 2014
Currently Being Moderated

Mar 20, 2014 1:56 PM

Configure Maven run configurations once for several projects

Hello,

 

I have several maven run configurations that I use on all my projects.

 

Is there a way to create a run configuration that is available on all the projects I open? It could apply to the currently selected module, for example.

 

Thanks for your help,

 

Sébastien

Alexander Chernikov JetBrains 1,229 posts since
Jan 11, 2007
Currently Being Moderated
Mar 20, 2014 5:50 PM in response to: Sébastien Pennec
Re: Configure Maven run configurations once for several projects

Hello.

 

In general it's possible. Close all projects, get Welcome screen. Press Configure, press Project Defaults, press Run Configurations. Create a configuration, Ok to save. It is saved in template project settings, and will be auto-created in every new project.

 

Another story is can a template configuration hold all settings you need. E.g. you cannot refer to "current IDEA module diirectory" just because IDEA run configurations are not per-module, they belong to a project. But you can refer to IDEA project directory via $PROJECT_DIR$ macro.

 

Please try and ask specific questions.

 

Regards,

Alexander.

More Like This

  • Retrieving data ...