How to remove unnecessary files from a maven project

I am currently working with a spring web project. In my project, I use git, maven and eclipse as an IDE. when viewing the state of git in the terminal, these three files are present in all cases:

  • .classpath
  • .gitignore
  • .settings

how can you delete these unwanted files. I have no idea how they are present in my project. my colleagues also encountered this problem.

Any suggestions would be helpful.

+4
source share
5 answers

git .gitignore , .gitignore git, git , .

.settings
.classpath

.gitignore https://help.github.com/articles/ignoring-files/.

: - , ( , , git , . , :): -

git rm --cached FILENAME

, git rm --cached .classpath git rm --cached .settings.

+2

.gitignore , , :

.classpath
.project
.settings
target/
.mvn/
+1

SVN svn:ignore. .

0
0

You can directly open the workspace and open the project, after which you can manually delete these files ... Make sure you check "show hidden files" if you use windows and before deleting, please close eclipse and then delete the files.

0
source

Source: https://habr.com/ru/post/1680383/


All Articles