Maven project delivery in eclipse svn ignores configuration files

The source of this article: http://blog.csdn.net/chaijunkun/article/details/34805385, the purpose of this article is to facilitate future development of tips

The combination of eclipse and maven plug-ins provides us with convenient conditions to quickly build a development environment. However, the class files, configuration files and packaged files compiled by maven do not actually need version control, and the development environment of everyone in the team may be different. , syncing files like .settings directory and .project to svn can even cause conflicts and inconvenience, so it's better to ignore them and keep a clean svn environment.


First open Window->preferences in the eclipse menu


Select Team->Ignored Resources in the list on the left, then click Add Pattern...


Add the following patterns one by one:

.settings

.project

.classpath

.class

target

.gitignore

.DS_Store

*.iml

.idea


Among them, .DS_Store is unique to the Mac system, and the system will automatically create the storage index file in the directory. *.iml files and .idea directories are generated by Intellij Idea IDE. If someone in the same group uses this IDE and you use eclipse, you can ignore these extra files.

After adding, click Apply, OK to complete the setting. This annoying extra information won't be synced when submitting a new project again.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324506861&siteId=291194637