Cannot drop project into the development server - spring-tool-suite

I use STS4
I imported a maven project. I updated it through maven : mvn -X clean install
Now I want to deploy the project into my local server ( Tomcat ) ; but when I droped it into the server then the mouse did not change : it remains as a circle mouse ! So how to enable the deployment into the local server ?

At the moment, STS4 doesn't have all the bits and pieces pre-installed to deploy apps from within the IDE to local Tomcat servers. The current version of the tooling is focused on running Spring Boot applications in the embedded Tomcat mode.
Having said that, we are working on this, the next update will come with the necessary extensions pre-installed to deploy war-packaged Boot apps to a local Tomcat directly.
If you want to give it a try, feel free to grab one of the latest nightly builds of STS 4.1.1, anything post B1473 should include the necessary pieces. If not, please file a bug at https://github.com/spring-projects/sts4/issues to get that fixed.
If you want to fix an existing STS4 installation, you would need to add the m2e-wtp integration extensions, which you should be able to find on the main Eclipse update site of your installation. Go to "Install New Software", select the main Eclipse update site, and search for "m2e-wtp".

Related

Eclipse with WAS fast deployment setup

Which version of Eclipse should I use for WAS9?
What are the steps to enable development with WAS9 on Eclipse?
What configuration should I have to see changes taking effect as I save the files?
1. WebSphere Developer Tools only works on Eclipse versions up to (and including) 2020-06
2. Only the before mentioned plugin has to be installed to enable Eclipse to add WAS9 server and to enable publishing to/debugging it from Eclipse.
The plugin's official page: https://marketplace.eclipse.org/content/ibm-websphere-application-server-v9x-developer-tools
I installed by: Help, Install software, Add: http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/updates/wdt/2020-03_comp/
If you downloaded the WebSphere development tools from the marketplace, then added a server, it should be enough, setting WebSphere JRE is not needed but WDT works best with the JRE that is shipped with WAS (located in /java)
3. To achieve fast deployment, for test driven development I use the following setup:
WAS server options
Publishing: Never Publish
Publishing settings...
Run server with resources within the workspace
Minimize and Auto publish options checked.
Project/Build automatically: checked
This way as I save a java or FE file, it is immediately served by the WAS server.
Official, full details for the WAS publishing settings are here: https://www.ibm.com/docs/en/wasdtfe?topic=server-publishing-settings-websphere-application-traditional
Misc
If there are bigger modifications that would require a publish then my project usually fails to start and I have to do a stop server, full clean build and then start again. Because of this I chose not to do any automatic publishing as the resources updated in Eclipse are already provided from the server and a publish event would trigger the reinstallation of the application that takes a lot of time and in my case fails without full clean install.
Probably you won't need these additional settings in eclipse.ini to load Eclipse with some exta jars that I do load libEclipse directory {com.ibm.ws.orb.jar, com.ibm.msg.client.provider.jar, com.ibm.msg.client.jms.jar, com.ibm.msg.client.jms.internal.jar}
-Djava.endorsed.dirs=C:\DEV\libEclipse\
-Dcom.ibm.websphere.thinclient=true

How to offline install of Spring Boot Tools Plugin into Eclipse IDE?

I need to install Spring Tools 4 Plugin into my Eclipse IDE. The Problem is, that I dont have any Internet access on this machine. My other Plugins like SonarLint, MoreUnit I installed via zip archive available on official sites or github.
Install New Software -> add archive.
I cant find any zip archives for Spring Boot Tools 4. Is there a way to get it or another way to install that plugin offline?
I tried to download and install everything on another machine and copy it, but its forbidden to connect bigger usb drives to the machine. For the plugin itsef it will be ok.
Here is the archived update site for STS 4.4.2 for Eclipse 2019-09:
https://dist.springsource.com/release/TOOLS/sts4/update/4.4.2.RELEASE/e4.13/sts4-4.4.2.RELEASE-e4.13.0-updatesite.zip
It contains all the STS4 pieces and a bunch of additional plugins from Eclipse, we haven't really tested a full offline installation using purely this update site. Usually the install procedure contains other update sites while installing a feature in order to find missing dependencies. So in case you don't have internet access and the STS4 install requires a dependency that usually comes from the main Eclipse p2 repo, you might run into this. In that case, please open a bug at https://github.com/spring-projects/sts4/issues and we will fix that.
Hope this helps!

Dynamic web project missing in STS

I am facing one issue with Spring tool suite 4, I don't see "Dynamic web project" option. I want to create one dynamic web project but I do not find this option in my Spring tool suite. How to install those external tool in Spring tool suite, however I got few link i.e http://download.eclipse.org/releases/mars for eclipse, should I use this link for Spring tool suite as well?
Solve this issue in Spring Tool Suite 4
Tested with 4.15.1 RELEASE
Go to Help -> Install New Software..
Enter eclipse software repo link (https://download.eclipse.org/releases/latest) in Work with input box.
You will get the list of available software. Filter the list by searching for Java EE related software. Search something like "java ee" to make things easier.
Choose Eclipse Java EE Developer Tools from the filtered list and proceed further with installation.
You may need to restart the STS IDE to install the update properly.
To solve this on STS 4.x.x
Go to Install New Software.
Select the main Eclipse update site for 2019-03 ( if not added, you must click o add button and paste this URL: http://download.eclipse.org/releases/2019-03 on both fields)
search for m2e-wtp 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
https://github.com/spring-projects/sts4/issues/96#issuecomment-484522744
Short version: fixed in Spring Tools 4.2.2 (coming in late May 2019), workaround is to install the m2e-wtp features from the main Eclipse update repo into an existing Spring Tools 4 for Eclipse install.
If you dont see dynamic web project in File->New and also in other
Then go to help -> install new software
copy paste this http://download.eclipse.org/releases/mars/ and click enter
if it is the first time then it take lot of time to download depends upon the internet
Once it get started downloading a pop will appear as trust click on that
After downloading make sure to restart STS and check whether dynamic web project is showing or not
check in file->new or else check in Others

Installing Sonar in eclipse without network

I am currently working on installing sonar into eclipse. The machienes I am installing them on, however, run on a private server. I cannot install from the eclipse marketplace. I was wondering how I can get the proper files needed to install the plug-in?
Same answer I gave on the Eclipse forums:
One option for installing on machines without Internet access would be if the Sonar plugin developers provide an Update Site Archive (which can be used from Eclipse's Install New Software wizard). Looking at their instructions it doesn't look like they do, but maybe you could reach out to them and ask for it. Producing an archive isn't much trouble if they're already publishing an update site (which it appears they are).
Another option exists, if you have at least one machine on that network that can install the plugin: share that machine's Eclipse installation folder on the network so other machines can see it, then use File > Import > Install > From Existing Installation to select the shared Eclipse folder where Sonar is installed.
Ticket created to provide a zipped update site for next version:
http://jira.sonarsource.com/browse/SONARCLIPS-448

Installing eclipse Web Tools Platform (WTP) - update site does not work?

I'm trying to install the WTP (web platform tools) to my Eclipse installation so I can get the XSL transformations working. The base Eclipse they installed for me here was the plain Java IDE (the splash screen says "Ganymede" if that means anything). Looking at this site, the URL to get the download should be here: http://download.eclipse.org/webtools/updates/ ...But when I give that URL to the Eclipse update manager, I get an error telling me: "No repository found at http://download.eclipse.org/webtools/updates/"
Anyone else had this problem? Anyone know what might be up? Anyone know how to get the xsl-transform plugin installed?
EDIT:
I should have mentioned before that I want to find a way to do this without installing any new instances of Eclipse. This process will eventually be sent to several other developers who already have Eclipse (same version that I'm testing with) and I'd rather just do an in-place upgrade rather than have everyone go and install a new product.
UPDATE:
I found another plugin, Xcarecrows 4 XML which can also do XSL transforms. The interface is ugly and seems more than a little quirky, but it's also a small download, and at least it runs and transforms. Unless I can find an easy way to get WTP working, I'll probably just stick with this.
You can try and install WTP through the main Ganymede update site:
http://download.eclipse.org/releases/ganymede/
Or you can download the latest Java EE bundle and use that instead of your current Eclipse
(do NOT unpack it on top of your current Eclipse, but unpack it elsewhere, to test that second installation: it will come with WTP inside)
Note: check then "How do I start Eclipse" to point to your existing workspace in order to see all your previous project in your new Eclipse installation.
As mentioned in your link, XSL Tools is now part of WTP (for Eclipse 3.5 Galileo), and that may explain why your Eclipse Ganymede (3.4) might not interpret correctly the P2 update site for WTP (P2 being the new Eclipse provisioning mechanism introduced late in the 3.4 release cycle)
For Eclipse 3.5, you have an XSL Tools installation illustrated here:
But Eclipse3.4 is more likely to be compatible with XSLT0.5 and you will need a separate installation, because "XSL Tools" wasn't yet part of WTP.
I am not sure, however, where to find such an installation package within the Eclipse projects.
Use the following update site :
For Juno :
http://download.eclipse.org/webtools/repository/juno/
For Indigo :
http://download.eclipse.org/webtools/repository/indigo/
I'm assuming you don't have any firewall exceptions for Eclipse right?
The site for the WTP update is indeed the one you've listed. Maybe post a screenshot? You've added it specifically to your remote update site list?
Either way try a manual update which should be more reliable and get you up and running for now.
All-In-One Update (Eclipse IDE included):
Go to the Eclipse Download site.
Grab the all-in-one package: Eclipse IDE for Java EE Developers
Install, have a coffee and enjoy. (WTP is included)
Manual Update your existing installation of Eclipse:
Download the applicable WTP source package to your desktop
Shutdown Eclipse
Extract the package to your Eclipse installation directory
Startup Eclipse. (WTP is now available)
Follow the steps in the FAQ at http://wiki.eclipse.org/WTP_FAQ#How_do_I_install_WTP.3F .
Are you behind a proxy? If so, you need to make sure you configure your proxy settings in Eclipse.
Window > Preferences
General > Network Connections
Ok, I can probably get it working if I do a clean install of Eclipse. I can do that on my machine, but not the other team members' machines (at least not without going through many emails and paper work) so I'm going to say that XCarecrows 4 XML is the solution. It is able to do XSL transformations in Eclipse 3.4 and doesn't require anything else to be installed. Since XSLT is all I need, the plugin will do.
you can use the marketplace:
https://marketplace.eclipse.org/content/eclipse-java-ee-developer-tools-0
like the site says:
Drag to Install!Drag to your running Eclipse Workspace.