Shared runconfigurations are overriden at project import

Answered

Hello

While importing a maven project through the "import project" wizard I run into following problem:

When I import a maven-project with shared runconfigurations IntelliJ tells me that the ".idea" folder already exists and may be overriden. After that all my shared runconfigurations in ".idea/runConfigurations" disappear.

The project is shared inside the team through svn and the ignore-list is set according to the guidelines at https://intellij-support.jetbrains.com/hc/en-us/articles/206544839-How-to-manage-projects-under-Version-Control-Systems so there are no .iml files stored in svn(because it's a maven project). Only the folder ".idea/runConfigurations" is shared.

 

Why do they get overriden? Am I missing something?

1
4 comments

When you importing the project from sources IDE re-creates all project configuration files. 

You can use File | Open action pointing to a project directory with .idea folder then refresh Maven projects in Maven projects tool window for IDE to generate module's .iml files.

Related requests: https://youtrack.jetbrains.com/issue/IDEA-90785https://youtrack.jetbrains.com/issue/IDEA-164299.

 

0

well it looks like a git update  .idea/runConfigurations and a close & reopen of the project would solve your problem.
Admittedly this is not pretty. I am also searching for a way to import those runconfigurations directly.
Closing and reopening is not satisfactory.

0

I'm hitting the same thing, I have Gradle based projects that I'm fine with importing, but I really want to share scopes, run configurations, and code styles, using the built in IDE support.

However if you check in those files inside the .idea dir, then when you import on a new machine, it overwrites them all.

0

Please sign in to leave a comment.