Subversion should ignore target files created by Maven on Linux

Can someone please tell me how can I configure Subversion to ignore target files created by Maven on Linux. I do not want to check my target files created by Maven in SVN.

How to do this on the Linux and Mac command line.

+4
source share
4 answers

To ignore files in subversion, you want to set the svn: ignore property. You can see more here http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.ignore.html about halfway down.

To ignore the target folder from the project folder, do

svn propset svn:ignore target . 

Alternatively, to edit the list of ignored file folders, run

 svn propedit svn:ignore . 
+13
source

Before passing the code to the Subversion repository, we always set the svn: ignore property in the directory to prevent some files and directories from being checked. We always exclude IDE project files and target / directory. Instead of keeping all exceptions in mind the whole time it was useful to put them all in a file and reference the file with the -F option:

 svn propset svn:ignore -F .svnignore . 

Put this file in the project folder

 .svnignore target/* 
+7
source

Use svn propset :

 svn propset svn:ignore directory . 
0
source

I find an easy way to add it to svn: ignore the eclipse IDE after adding the destination folder to the revision and then restore it.

0
source

All Articles