This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring in Action (5th edition) and have Craig Walls on-line!
See this thread for details.
Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Trying to Update Spring version in existing POM.XML  RSS feed

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following pom.xml which is using old version of spring. I am going through it as it was written by someone else and thinking to update it :


Question 1:

Does updating version number here `<version>1.3.3.RELEASE</version>` and here `<version>4.2.5.RELEASE</version>` for the dependency good enough to use the latest version of Spring boot? OR is it going to break things?


Question 2:

Could anyone explain why the Spring version is defined two times here one under parent tag and one under dependency tag:

 
Ranch Hand
Posts: 947
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Does updating version number here `<version>1.3.3.RELEASE</version>` and here `<version>4.2.5.RELEASE</version>` for the dependency good enough to use the latest version of Spring boot? OR is it going to break things?



Yes by updating to higher version may break things.
 
Jack Tauson
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tushar Goel wrote:

Does updating version number here `<version>1.3.3.RELEASE</version>` and here `<version>4.2.5.RELEASE</version>` for the dependency good enough to use the latest version of Spring boot? OR is it going to break things?



Yes by updating to higher version may break things.



So, in order to update and see whether things break or not, I just need to update the version numbers in pom.xml, right?
 
Bartender
Posts: 19976
95
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Helpful hint:


And yes, this is from a project that hasn't been updated in a LONG time.

But if I ever did, I only need to change the Spring version ID in one place!
 
What are your superhero powers? Go ahead and try them on this tiny ad:
Download Free Java APIs to Work with Office Files and PDF
htttp://www.e-iceblue.com/free-apis.html
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!