Intellij.ipr files registered or ignored?

Working as a team using IntelliJ, there is a discussion about checking or missing the .ipr file for the project.

I just lost half an hour because the custom resource template was excluded from the compiler options when someone else checked it with an .ipr that didn't have this parameter.

What is the best practice here? FWIW We ignore. Already.

+4
source share
4 answers

This question is covered in the IntelliJ IDEA FAQ , and a site has already been asked on this issue .

I would recommend using the .idea directory format for finer control.

+2
source

I always insist on ignoring * .ipr, * .iws, * .iml, * .ids files in VCS.

If you use java, use maven. It has many advantages. One of them is independent of the IDE.

UPD 03/13/2014 At the moment there are good alternatives to maven, but the main idea is that projects should be independent of the IDE. No matter what you use. It should be convenient for everyone to work with your code.

+4
source

I just lost half an hour because the custom resource template was excluded from the compiler options when someone else checked it with an .ipr that didn't have this parameter.

Can you restore the version from the original control?

Saving project files to VCS is guaranteed by this problem. This allows new developers to quickly and quickly check and work, rather than asking how to set up projects.

Configuring a workstation development environment is vital for the team. This is not a result, but it affects the team, for better or worse. Having a standard development environment ensures that you all work as close as possible, and not everyone who has several projects configured differently, which can lead to false errors.

+4
source

Earlier we transferred ipr and iml files and they worked well. We recently adopted Maven, and it works well too. Most of the problems I encountered with ipr / iml were during Intellij updates. Usually Intellij handles this automatically, but sometimes it is not as graceful as we would like. We still have some older versions of our codebase that we need to access periodically, and they don’t use Maven. With Intellij 10, we must manually make significant configuration changes to these versions before they are used. To add to the problem, some of these changes do not seem to be saved in ipr / iml, so each user who accesses this version of the code must make changes on their own. This is close, but I would suggest Maven. And for the record, most people love or hate Maven, but I'm in the middle.

0
source

All Articles