Lesya Makhova
Lesya Makhova

Reputation: 1430

Couldn't add dependency to pom.xml

I coudn't add new dependency to pom.xml.

My steps :

  1. I use Spring Template Project MVC.
  2. Open in Eclise pom.xml.
  3. Open "Dependency" tab.
  4. Add my required dependency: spring-tx.
  5. Save my changes. But my changes didn't affect Dependency "Hierarchy" and "Effective POM" tabs.
  6. Clean and Build Project. In my pom.xml dependency spring-tx disappeared. So my problem still here.

How can I add dependency to pom.xml and save it into when project Build?

Upvotes: 0

Views: 215

Answers (2)

chenrui
chenrui

Reputation: 9876

Or next time, you can use any file editor to add the dependencies. Highly recommend Notepad++.

Upvotes: 0

Ralph
Ralph

Reputation: 120871

Use the pom "editor" tab instead.

Upvotes: 1

Related Questions