Installing Sonar in eclipse without network - eclipse

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

Related

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!

Cannot drop project into the development server

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".

Custom Eclipse packages

I would like to make an offline Eclipse installation with JDT, CDT and a few other plugins. This is what I would like to do, in decreasing preference:
Create an installation package similar to the ones available for download on the Eclipse website. Question: How can this be done? How are they created? Is there some kind of automated tool that gets the packages from p2 repositories and builds them? Is there a detailed explanation somewhere of how they are created? (I am aware of Yoxos, but that is a few versions old)
Do the installation on an internet-connected computer, and then copy the folder to another computer. Question: Can this be done? Will a simple Copy/Paste work correctly? Is there anything I can delete from the installation that will be automatically recreated?
Use an Eclipse package, say JDT, and a downloaded copy (zip file?) of the CDT and other plugins, and install them on the target machine using the standard Eclipse plugin installation from a local archive method. Question Where can I get these downloads?
The simplest approach you could use is to start from the eclipse "classic" package downloaded directly from the site, and then manually install the other components you need via update manager. You can then zip the eclipse directory and distribute it without any problem.
Otherwise you could try to use Yoxos to create your package, download and distribute it

Adding an extension to Eclipse without an internet connection

I have a problem with eclipse. I would like to install an extension (EGit) but the official site does only provide a classical update site.
The problem is that I am running eclipse on a distant machine that does not have internet access (only my local computer has a connection). The only link between my computer and my distant machine is a distant hard drive that is mounted on the two computers.
The distant machine is a classic linux but the local one is a Windows XP so I can't just use ssh -L (or at least I do not know the way to do it under windows).
Does anybody have an idea to help me ?
Thanks in advance.
If you have Eclipse (same version) installed on your local system, Then you can install plugin through update site. Just check what all it depends on and what additional plugins are downloaded.
Once done with this you can locate new plugins in /plugins folder. Just copy these to your remote machine. This should usually work. But it would sometimes depend upon OS for certain plugins. In your case Local and Target OS is different so there are some chances of this solution not working.
You could try mirroring the update site to a folder, and then use the folder as a local update site on the machine without internet connection.
Eclipse plugins usually depend on other plugins. It's kind of hard to trace the dependencies. It's better to download all dependencies using update site once, and you can distribute to other Eclipse dropins. Eclipse does not recommend overriding plugins directory since it may break existing functioning plugins. For Eclipse 3.4 or newer, you can use dropins which is an Eclipse feature for safe overriding. This way you don’t have to install plugin from update site every time you have to re-install your Eclipse. Read on How to install Eclipse plugins offline

How to install a custom plug-in in Eclipse Ganymede?

We have a custom plug-in. That is, the company where I'm working developed it in house.
I would like to install it as an available plug-in in Eclipse Ganymede. How do I do that?
From what I can figure out, the Eclipse software install only supports installation from Eclipse software update sites.
I went to Help -> Install New Software... -> Add -> Local...
to browse to a folder containing the plug-in. Although the dialog lets me add the directory as an update site, it doesn't work. It expects that directory to be a local Eclipse update site (I think). I get the error
No repository found at file:/G:/TOOLS/...
Next I just copied the plug-in into the plug-in directory under my Eclipse installation. That didn't work either. I also tried copying it into the dropins directory. No dice.
Can anyone enlighten me how to install a plug-in that's not on an "update" site?
Thanks in advance....
Usually an Eclipse plug-in packaged as zip file is install by extracting it into the Eclipse installation directory (or the plugins directory depending on how it is packaged, as it can also extract files in features directory).
Next restart Eclipse with the --clean option.
Did you check the Eclipse error log? Maybe the bundle is failing to deploy for some reason.
Otherwise, create a Feature and Update Site for your plugin as described here. An update site can either be a remote http server (SVN even), or a local directory. The nice thing is that you'll get versioning and the ability to upgrade and uninstall from inside Eclipse. It also makes things easier once your plugin grows into several plugins because they can be bundled together into a single, versioned feature.