Comments (7)
The main thing to look at for this will be the eclipse-distribution
directory and all the things that are included in there. This is the place where we build the ready-to-use distributions from.
The most important definitions for the distribution builds are included in https://github.com/spring-projects/sts4/blob/main/eclipse-distribution/pom.xml. This pom.xml
file specifies where the distribution build finds all the necessary parts.
The build spec contains profiles for the specific Eclipse versions that we build the distributions for. At the moment, those available profiles are: e432
(the upcoming Eclipse 2024-06 release), e431
(for the latest Eclipse release 2024-03) and e430
(for the previous Eclipse 2023-12 release that we support). Those profiles specify where to get the necessary bits and pieces for the build of the distribution. For that, each profile section contains the repositories defined with the URLs.
If you want to build the distribution using a specific Eclipse repository instead of the main one, you would have to modify that repository, e.g. https://github.com/spring-projects/sts4/blob/main/eclipse-distribution/pom.xml#L247 if you want to build against your own repository of the Eclipse 2024-03 release.
If you go down that path, I would strongly recommend to not put random Eclipse repositories in there, but choose the compatible version. So if your own Eclipse repository that you would like to use contains the Eclipse release bits for the 2024-03 release, use that in the profile e431
. And don't put an older Eclipse repo into that profile. Other repositories of that profile contain artifacts that are only compatible with that specific Eclipse release and you will run into build issues if you try to mix and match those repositories.
Here is how I would approach things:
-
start with a fresh copy of the sts4 repository, go to
eclipse-distribution
and run the script at https://github.com/spring-projects/sts4/blob/main/eclipse-distribution/local-build.sh for a local snapshot build. That will use the latest Eclipse release from its source, the latest snapshot bits from the STS4 components, etc. -
if that succeeds, replace the Eclipse repository at https://github.com/spring-projects/sts4/blob/main/eclipse-distribution/pom.xml#L247 with the one that you maintain, but make sure it contains the pieces from the Eclipse 2024-03 release. Run the script again and see if that succeeds.
-
Go the next steps to incorporate the necessary changes to build the distribution for the platform architecture of your choice. At the moment, there are various places in the build definitions where the platform is references, e.g. https://github.com/spring-projects/sts4/blob/main/eclipse-distribution/pom.xml#L247 (the main target definition) or https://github.com/spring-projects/sts4/blob/main/eclipse-distribution/pom.xml#L247 (where we add the JustJ JREs, which you might want to skip, not sure if they are around for your hardware architecture).
Hope that helps and provides some steps to get started here.
from sts4.
I would also strongly recommend to do all these steps from the main branch and not go back in time to a specific tag of older releases, etc. This will cause trouble due to moved p2 repositories, changed URLs, etc. Running from the main branch will be a lot easier.
from sts4.
Thank you for your response. Your answers have been very helpful to me. Our internal Eclipse version is shown in the attached image, and it seems that this version of Eclipse corresponds to sts3. Does this mean we cannot proceed with the build in sts4?
from sts4.
@Panxuefeng-loongson This is a very old version of Eclipse and you will definitely not be able to install any more recent versions of the Spring Tools 4 into that.
We have archived versions of p2 repositories around for a very old version of Spring Tools 4 what was built for Eclipse 4.10 as well as the corresponding STS3 p2 repositories, so you could take an existing Eclipse installation and try to (manually or automatically) install the Spring Tools components into that existing Eclipse installation, but you would end up with extremely old versions of the Spring Tools component. It should be technically possible, but we can't provide support or detailed help for those old and outdated versions anymore.
I would strongly recommend to move to a more recent, up-to-date version of Eclipse and go from there - you will have to do that sometime soon anyway. Otherwise, you could evaluate commercial support options, but I guess you would have to get a very special deal in place to get support for those old versions... ;-)
from sts4.
References to the old Spring Tools 3 components can be found here:
https://github.com/spring-attic/toolsuite-distribution/wiki/Spring-Tool-Suite-3
(there is no version listed for Eclipse 4.10, but you will probably be able to guess those URLs)
A list of older versions of the Spring Tools 4 can be found here:
https://github.com/spring-projects/sts4/wiki/Previous-Versions
from sts4.
- [ ]
so you could take an existing Eclipse installation and try to (manually or automatically) install the Spring Tools components into that existing Eclipse installation
Thank you very much for your reply. Is this approach the same as the Spring Tools for Eclipse extensions?
from sts4.
- [ ]
so you could take an existing Eclipse installation and try to (manually or automatically) install the Spring Tools components into that existing Eclipse installation
Thank you very much for your reply. Is this approach the same as the Spring Tools for Eclipse extensions?
Yes
from sts4.
Related Issues (20)
- `Map<K,V>` with escaped key not works properly in `application.yml` HOT 1
- Gradle option when importing guides or creating new initializr projects is missing HOT 2
- upgrade dialog to select recipe appears twice HOT 2
- Dialog for open-rewrite recipes shows "Loading..." and nothing happens HOT 5
- Ideas for better open-rewrite recipes dialog HOT 1
- Eclipse Run Configuration - Use Temporary Jar becomes secretly unchecked HOT 2
- Variable assignment/reference syntax highlighting lost between v1.53.0 and v1.54.0 HOT 4
- Debug stack reference lost/reset when another thread is executed in versions 4.22.0 and 4.22.1 HOT 2
- Support multiple `SemanticTokensProvider`s from LSP standpoint
- spring tool suite 3 -JDK21 HOT 1
- "Code Completion" not work in application.yml file HOT 2
- vscode @DependsOn navigation not linked HOT 8
- verify upgrade support to Spring Boot 3.3.0 HOT 1
- Support `@ConfigurationProperties` on bean method for `application.properties` references HOT 2
- Occasional NPE when opening / importing / creating Maven projects HOT 3
- upgrade with preview in Eclipse throws exception HOT 2
- STS 4.22.1 - EclEmma Code Coverage not showing. HOT 2
- VSCode Spring Boot extension causes semantic token loss upon loading HOT 12
- add content-assist for `@Qualifier` annotation HOT 1
- JPQL syntax - Support Concatenated Strings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sts4.