Recommended way to upgrade STS?

喜欢而已 提交于 2019-12-03 16:21:39

This is a more complicated question, so let me explain my thoughts on this in more detail.

First, there is the update site compatibility question. For each new release of STS, we usually provide between two and three different update sites:

  • one for the latest Eclipse release (Eclipse 4.4 at the moment)
  • one for the previous Eclipse release (Eclipse 4.3 at the moment)
  • maybe one for the upcoming Eclipse release (Eclipse 4.5 at the moment)

This is the reason why do don't see updates for the 3.7 - 4.2 based update sites anymore (in your list above). We continued to provide 3.7-4.2 compatible versions for so long due to the migration of Eclipse to the new 4.x stream (which caused some trouble in the past). But this "extended period of supporting older Eclipse versions" is over. From now on, we are back to our strategy outlined above.

You can use those update sites to update an existing STS installation to the next version of STS. Those updates don't change the underlying major Eclipse version automatically. This caused too much hassle in the past. And this is my recommendation as well: if you would like to continue to use the same underlying Eclipse version, you can use those update sites (and the "Check for Updates" in the help menu) to update STS to the next version of the STS components.

If you would like to upgrade to a new version of Eclipse, I recommend to download a fresh copy of STS for this newer Eclipse version and migrate the preferences (as you described). The workspaces are usually compatible, so you don't need to setup a new workspace.

But this requires to re-install third-party plugins that you installed previously in your STS installation again. This is usually a quite tedious and time-consuming task. Therefore I am using a script that automates this:

https://gist.github.com/martinlippert/5155155

This is an example of a script that I use (on my OSX machine) to install a bunch of additional features from the listed update sites in a batch automatically. You might need to modify this to get your third-party features and update sites correctly, and maybe modify it a bit to make it work on Windows (never tried that), but the basic idea should work for all the various platforms (in the end it runs a JVM with command-line args).

Hope this explains the various strategies and helps you a bit. If you have further questions, I am happy to help!

Cheers!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!