Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is maven dependency being added automatically to pom when using Eclipse (STS 3.5.1)?

The following maven dependency was not added by me (I'm the only dev on the project):

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-remote-shell</artifactId>
    <version>1.0.0.RELEASE</version>
</dependency>

What is going on here?

like image 736
Simon Avatar asked Jun 23 '14 10:06

Simon


People also ask

Why are we adding dependency in POM xml?

The way it works is that it allows you to define dependencies to external libraries that your project needs, and when you use Maven to build your project it will fetch these libraries from the web (external repositories) and add them to your built project. So it's an automatic handling of dependencies.

Is Maven inbuilt in STS?

STS comes with many template projects that use Maven that you can access. Simply go to File > New > Spring Template Project and choose one of those projects. They're Maven based as well, so they're a great way to get started quickly. You've now got a working Maven project in STS and you can start coding right away.

Do we need Maven for STS?

Spring tool Suite 4 does not need explicit maven plugin. It has inbuilt maven plugin installed. Spring and Spring tool Suite both are from spring.io. Hence, we do expect better support for Spring development in STS.


1 Answers

Workaround per @AndreiStefan from the linked JIRA issue:

Open "Window >> Preferences" Go to "Java >> Editor Content Assist >> Advanced" You will see a 'Jar Type Search' proposal provider. Disable it in both top and bottom. This should disable it across your entire workspace.

like image 163
JJ Zabkar Avatar answered Oct 03 '22 12:10

JJ Zabkar