Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse automatically adds wrong dependencies into pom.xml

During work in my Maven controlled java project in Eclipse sometimes strange dependencies are added into the pom.xml of the project (scala.lang or whatever). Most often I realize this when committing my changes to source repository (and sometimes I don't realize it).

I use Spring Source Tool Suite 3.5.1, based on Kepler 4.3.2, installed Maven Integration for AJDT from Sonatype.

Possibly there is some automatism by Eclipse when it auto-determines imports in a source file, that it adds dependencies into the pom.xml. Can I disable this undesired behavior?

like image 913
Uwe Allner Avatar asked Sep 17 '14 10:09

Uwe Allner


1 Answers

Yes, it can be disabled. Go to "window >> Preferences >> Java >> Editor >> Content Assist >> Advanced". Uncheck the 'Jar Type Search' content assist provider in both lists and press 'OK'.

like image 113
Kris Avatar answered Oct 17 '22 21:10

Kris