• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Trying to Update Spring version in existing POM.XML

 
Ranch Hand
Posts: 462
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 954
4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 462
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Saloon Keeper
Posts: 28486
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
She's brilliant. She can see what can be and is not limited to what is. And she knows this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic