unable to create dynamic web project in spring tool suite 4.2.1 - spring

Previously I used to create dynamic web project on eclipse but I want to make project on spring tool suite i.e 4.2.1 & I've never used it before, so does anybody knows how to create a dynamic web project in Spring Tool Suite 4.2.1 or a reference to where I can get, as I've been trying to create one since 4 hours. Please help me.

Referring to this thread
To solve this on STS 4.x.x
Click on Help.
Go to Install New Software.
Select the main Eclipse update site for 2019-09 ( if not added, you must click o add button and paste this URL:http://download.eclipse.org/releases/2019-09/ on both fields).
search for m2e-wtp which will be in the last. There are four extensions showing up and you should install the ones you prefer.
Restart your IDE
see https://github.com/spring-projects/sts4/issues/96#issuecomment-484522744 on martinlippert comment..
I've added link of latest current version.
Hope this helps..

The Spring Tools 4.2.1 for Eclipse distribution didn't contain the necessary features and extensions to create dynamic web projects. This got added for later Spring Tools 4 versions. So the easiest solution would be to install a fresh distribution of the latest Spring Tools 4.3.2 for Eclipse and go from there.
As an alternative, you could also install the missing pieces into an existing Spring Tools 4 for Eclipse installation via Install New Software, then selecting the main Eclipse repository from the dropdown list, waiting for the list of features to appear, and selecting the features you are missing.

Related

Eclipse Marketplace: Spring Tool Suite not showing up?

I'm learning Spring Boot using a Udemy tutorial, which skips how to install Spring tools to our IDE, so I've been Googling how to do it myself.
There appears to be 2 options: (1) download the Spring Tool Suite 4, which comes with a new version of Eclipse and the Spring tools preinstalled, or, (2) add Spring Tool Suite to my existing Eclipse via searching the Marketplace.
I want to add it to my existing Eclipse Jee Oxygen IDE, as I have other langs and tools installed on it and I want to keep it all in the one place.
I've tried searching for it via the Marketplace wizard in Eclipse, but it doesn't appear.
I've also tried the "Drag & Drop" method using Eclipse.com's marketplace subdomain, and it just opens a new Marketplace wizard without any search parameters.
Does anyone know what could be wrong? Is there another way I can add the tools to my existing Eclipse?
Oxygen is the 2018 release, and is not one of the supported versions for that Marketplace entry.
2020-12 (4.18), 2020-09 (4.17), and 2020-06 (4.16) are what it lists, which is why it comes up empty when the wizard tries to load it---there's no compatible version of STS4 listed for Oxygen.
Get the current version, 2020-12, or try to update your existing install using the Update Site https://download.eclipse.org/releases/latest, then try it again.

OSGI plugin development with Domino Designer 10

Up to date I was using IBM Domino Designer V9.0.1 FP8 to develop an OSGI plugin. With this version everything was working as intended. I've created a plugin project, a feature project and an update site project. Selecting "Build all" in the update site project created all the the corresponding jar files.
Today I've installed IBM (HCL) Domino Desinger V10 FP2 (fresh install i.e. I've deinstalled V9.0.1 and deleted the old "workspace" directory in NotesData, but I kept the NotesData itself).
Now if I open my plugin projects, I can edit the plugin, save the Java classes without any errors. Up to this point everything is working as usual. But now, if I use "Build all" in the update site project I see a screen with "generating ant script" and then the build process is finished, but no jar files are generated.
Any ideas why this is happening? Am I missing some files? Am I missing some configurations?
BTW: if I use standard eclipse to build the plugin all jar files are generated.
Domino Designer is a customised version of Eclipse. 9.0.1 FP9 and lower is a very old version of Eclipse, 9.0.1 FP10+ is a much newer version, so not comparable to what was happening before. It's possible there are differences in the customisation of Eclipse that are affecting it. But every Domino OSGi plugin developer I'm aware of uses standard Eclipse.
Follow the steps for setting up your environment here https://github.com/OpenNTF/XPagesExtensionLibrary/wiki/Development-Environment. In the documentation there I've tried to document why steps are done and what they achieve, as well as just the steps themselves. The intention is to pass on understanding to a broader set of developers, for future proofing.

The spring boot edit starters context menu option does not show up under rightclicking pom.xml

The spring boot edit starters context menu for downloading content to pom.xml automatically is not visible in my eclipse, although Spring Tool Suite is properly installed. Also. the Boot Dashboard for Development Tools will not show up.
Error: java.io.IOException: Unable to resolve plugin
"org.springframework.ide.eclipse.boot.dash".
What could this be, how do I solve this?
This is usually a hard-to-debug issue and probably caused by some incompatibilities among installed plugins. You can try to start up Eclipse/STS with the -clean option, this causes the runtime to re-evaluate bundle resolution (among other things), and in some rare cases that helps. But it doesn't help if there is a real underlying incompatibility. And that is hard to identify from the outside, we would need a lot more details to debug this.
I would recommend to download a ready-to-use STS distribution and go from there. It contains a full Eclipse JEE package plus the Spring IDE plugins pre-installed. I know that starting from a fresh install might cause additional work if you need additional third-party plugins being installed again, but it would at least give you a good starting point. And if the problem arises again after installing certain plugins, we would at least have a potentially reproducible path towards the issue that we could use to track down the issue on our end.
You may follow these steps -
Right click "pom.xml"
Select "Spring" item
Click "Add Starters"
For your reference,

Problems with Osgi plugins in Domino Designer after 9.01. FP4

We have our own OSGI plugin with a set of custom code and some java libraries that we use cross projects. It is installed on servers via an update site and imported on developers Domino Designer.
It is working fine up to FP4, but in Domino Designer it is not added to bundles after FP4. For servers and Notes clients it works fine up to FP6 for which we have tested so far.
Tested now with FP7 on my Domino Designer, and the plugin installs fine both via update site and via manual import. However each time I open a database using this library I get build errors. It solves by going to the code, on the error select correct project configuration and adding our plugin to the required bundles. When I close the database and open again, I have to do the same process and we have the same problem with all databases using this plugin.
I have tested starting Notes with the osgi console, but all reports as it is installed normal there.
When viewing in package explorer before fixing the bundle I can see that the plugin is missing from Plugin dependecies and gets added there when doing the fix.
I just installed a fresh Domino Designer for a new user now and upgraded him directly to FP7. He got exactly the same problem. Downgrading him to FP4 solves the problem.
Anyone having the same problem or have ideas to how it can be solved?

How to make installer for Eclipse RCP

I would like to create installer for Eclipse RCP application. What is the best way to do this?
It is possible?
Eclipse Platform Version: 3.6.1
In a plug-in project, create a product configuration.
Configure it. On the Dependencies tab, the "Add required plug-ins" button is your friend.
Build the product -- e.g., through the "Exporting" section on the Overview tab.
Once it's built, you can build an installer with a third-party install tool compatible with the target operating system/s.
More detail is provided in the Eclipse FAQ under "How do I create an Eclipse product?"
There are two solutions that I know should make the job of creating an installer easy:
EclipseNSIS - which is windows-only
Use Pulse OneInstall - which seems to be cross-platform.
I have not used either of the above, but have been researching them as well. Both should have wizards that guide your through the above.

Resources