Search code examples
javaspringidepom.xmlmaven-dependency

Spring Tool Suite Closes Automatically after adding dependency to pom.xml file


I am trying to use Spring Data but whenever I add its dependency to pom.xml, after 5-10 seconds, STS closes automatically. If I remove the dependency, it works. But, I need to use Spring Data in my project. What should I do? Expert help needed. I'm using STS 3.7.3.RELEASE I tried changing JDK version. I switched workspace too. I also tried to clean the project. But, problem won't fixed. This is the dependency that I tried to use. I also tried to use the latest dependency.

<dependency>
        <groupId>org.springframework.data</groupId>
        <artifactId>spring-data-jpa</artifactId>
        <version>1.9.4.RELEASE</version>
</dependency>

Solution

  • I got the temporary solution. I just unchecked the option "Build Automatically" which is under "Project" menu.