How to install EditorConfig NetBeans Plugin? - netbeans

I want to install EditorConfig NetBeans Plugin by following instructions on this link: https://github.com/welovecoding/editorconfig-netbeans#readme, but it doesn't help me a lot. At instructions sections, it is written:
mvn clean install
I ran this command on cmd and git, but It didn't work. So where should I run this command? And in which directory should i keep my pluging files?
Regards.

To build plugin from source on Windows you first need to configure few things.
1. Install JDK (Java SE Development Kit).
Get it from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html. Install with default settings.
2. Download Apache Maven
Get it from https://maven.apache.org/download.cgi. Extract archive content preferably to some short path.
3. Set JAVA_HOME
Go to Control Panel -> All Control Panel Items -> System -> Advanced System Settings ->Environment Variables
Add new user environment variable JAVA_HOME and set it to newly installed JDK.
4. Add Maven bin folder to PATH
Like above edit user PATH variable and add new path for extracted archive like C:\maven\bin.
5. Check if mvn works
In cmd type mvn -v.
Output should look similar to:
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: C:\maven\bin\..
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: C:\Program Files (x86)\Java\jdk1.8.0_121\jre
Default locale: pl_PL, platform encoding: Cp1250
OS name: "windows 10", version: "10.0", arch: "x86", family: "dos"
6. Get editorconfig-netbeans repository
Git clone or download zip from https://github.com/welovecoding/editorconfig-netbeans.
7. Build new plugin
Inside editorconfig-netbeans folder run
mvn clean install
This will build plugin and run test. New plugin (.nbm file) will be inside /target folder.
8. Install plugin
In Netbeans go to Tools -> Plugins -> Downloaded. Use Add Plugins... button to add new .nbm file and install it.
OR
You could save yourself all trouble and get build versions from https://github.com/welovecoding/editorconfig-netbeans/releases

Download pre-built release here: https://github.com/welovecoding/editorconfig-netbeans/releases.
Then in netbeans, use the Tools Menu: Tools -> Plugins.
Go to the 'Downloaded' tab, and click on 'AddPlugins...' Navigate to where the release was downloaded, then click the install button.

Related

Develop jenkins groovy script in Eclipse

Is it possible to develop a groovy script (pipeline) for Jenkins in Eclipse?
I want to connect to a running Jenkins instance and create / start some jobs. How can i achieve this?
Jenkins does not have strong IDE support in any IDE. However, Eclipse (as well as most major java IDE's) does have a groovy plugin and you can import the core jenkins jars to get some auto-completion. At the very least, the IDE gives you autoformatting, with is of some help. Once you've developed your script, you will have to copy it out to jenkins to test.
To work with Jenkins Pipeline, I have setup Eclipse like this:
Download and extract Jenkins.war Distribution (it's just a zip file with *.war file extension) from jenkins.io, currently version 2.361.1 LTS.
Run the jenkins war file.
2.1. Open a terminal and run java -jar jenkins.war.You will see that Jenkins will ask for the initial configuration and it will provide an initial password.
2.2. Copy the initial password showed in the terminal.
2.3 Open http://localhost:8080 in a WebBrowser and paste the initial password you have copied from the terminal.
2.4. Follow the steps to install the default plugins. All of these files will be saved in $HOME/.jenkins folder.
Install Eclipse Java IDE Version 2022-03 (4.23.0), I chose flavor: "Eclipse IDE for Java Developers"
Install Eclipse Groovy Plugin 4.5.0 (via Help->Marketplace search for groovy)
Create an Eclipse User Library via Window -> Preferences:
Then go to Java -> Build Path -> User Libraries, add new User Library with name "Jenkins Pipeline". Then add the following "External Jars..." to this library.
Uncompress jenkins.war (tar xvf jenkins.war) file and add the following files:
5.1. jenkins/WEB-INF/lib/*.jar
Add these libraries from the plugins directory of jenkins home:
5.2. ~/.jenkins/plugins/workflow-cps-global-lib/WEB-INF/lib/*.jar
If you cannot find this directory it means you are running a new version of Jenkins. In this case, you should use:
~/.jenkins/plugins/pipeline-groovy-lib/WEB-INF/lib/*.jar
5.3. ~/.jenkins/plugins/workflow-cps/WEB-INF/lib/*.jar
5.4. I also add junit to the library because it is often used:
~/.jenkins/plugins/junit/WEB-INF/lib/*.jar
Create your groovy pipeline project:
File -> New -> Project... -> Groovy -> Groovy Project.
Then add the User Library "Jenkins Pipeline" to the Build Path:
Right click the groovy project -> Build Path -> Add Libraries -> User Library
Finally add more libraries from the plugins folder to your project according to your needs

Where is the location of 'plugins' directory for eclipse mars in mac OSX?

I was trying to install the eclipse plug-in for an assignment.
But the problem is, my installed eclipse's version is mars, which means I can not find the location of the 'plugins' directory, which was used to save plug-in jar files.
I've updated the eclipse Luna to Mars recently.
When I installed(unzipped) the eclipse luna, I remember that there was 'plugins' directory and other things (including eclipse.app) were in the 'eclipse' directory.
However, The mars, archive file just gives me an eclipse.app!..
Could you tell me how to add the plugin(*.jar, in my case, UMLet) to eclipse mars on Mac OSX?
I have to do my assignment.. The due is coming..
In my case (Mars on Mac version Darwin 14.5.0, installed with Eclipse installer) I found the plugins folder in MY_HOME_DIRECTORY/.p2/pool/plugins . I found this path with this: Eclipse -> About Eclipse -> Installation Details -> Configuration -> property --launcher.library
Eclipse Mars on the Mac has been reworked to be a proper Mac application with everything included in the Eclipse.app package.
The new path for the plugins is
/Applications/Eclipse.app/Contents/Eclipse/plugins
If you are looking at '/Applications' using the Mac Finder you will just see 'Eclipse'. You have to right click on 'Eclipse' and choose 'Show Package Contents' to see the contents.
Just putting things in the Eclipse plugins directory may not work. If at all possible you should use a proper Eclipse update site (sometimes called a repository) with 'Install New Software'.
Note most Eclipse installs now use 'oomph' which installs in a different location - see this answer
you can use terminal add go to folder contain eclipse with has an icon, and use ls -lrt and you will see Eclipse.app in it. and cd to such folder and will see all things like windows.
<Eclipse-path>/Eclipse.app/Contents/Eclipse
You can check in below location from your terminal,
cd /Users/<user-name>/Downloads/Eclipse.app/Contents/Eclipse
where <user-name> is logged in mac user,
<Eclipse-path> is a location where Eclipse.app is saved
https://i.stack.imgur.com/Crf53.jpg
You can find the installation folder in About Eclipse > Installation Details > Configurations.

How to manually install veloeclipse plugin in eclipse luna (4.4.0)

How to manually install "veloeclipse" plugin in eclipse luna (4.4.0) other than install wizard available in eclipse?
In general if you would like to manually add a plugin to eclipse you can use the dropins folder.
Step 1: Download the Plugin
Step 2: Unzip the file, you should see
two folders, features and plugins
Step 3: Copy those folders
directly into the /dropins folder (this folder is within your eclipse
installation. e.g: C:\DevApps\eclipse\dropins
Step 4: Restart Eclipse
Step 5: Plugin will be installed, check Help -> Installation Details
-> Plugins
You can either use
Eclipse Directory Application
Allows installation via script on commandline
Eclipse Dropins Folder Just throw the plugins into a specific folder

Portable Eclipse Juno with plugins

I am currently trying to make an Eclipse istallation with installed plugins portable, so that you only have to copy the whole "eclipse"-folder to another system and have the same setup as on the original system.
My problem now is, that since eclipse 4.2 (?) when using Help > Install new Software... plugins are installed externally into the folder
C:/Users/Username/.eclipse/org.eclipse.platform_4.2.0_identifier
and not into the folder where the "eclipse.exe" is located:
C:/Program Files (x86)/eclipse
Now my question is if it is possible to make eclipse install additional plugins into the plugins/features-folder of eclipse's home folder (C:/Program Files (x86)/eclipse).
Unfortunately, it isn't possible to use the dropins-folder, because one plugin that shall be installed only exists as an update site.
I'm using
Windows 7 Professional Service Pack 1 64bit
with
Eclipse IDE for C/C++ Developers
Version: Juno Service Release 2
32-bit (to provide portability).
Greets :)
Do not put your eclipse installation under the "Program Files" folder. Eclipse will install all plugins to its own folder by default, unless that folder is not writable from Eclipse. And the "Program Files" folder should not be writable by you (unless you are using administrative access rights). Only the trusted installer service account should modify that folder (following Windows guidelines).
Therefore unzip Eclipse somewhere else into a location where anyone is allowed to write, install your plugins and zip the whole folder again.
As an alternative to that ZIP package you may want to look at File -> Export -> Install -> Software items to file, where you can export (and re-import) a list of your already installed plugins.
What mack is trying to do should work, this is essentially what the eclipse foundation do to provide the various distros.
The plugin that is only available as an update site could be installed into and existing in-installation then copied to the new distro. Only trick is making sure you have all the feature and plugin jar files.

Eclipse : Getting Error as Could not find jar file while installing Plugin in Eclipse

I was following this below website
http://visualvm.java.net/eclipse-launcher.html
for installing VisualVM into Eclipse Helios Version 3.6 , for this as mentioned i downloaded visualvm_launcher_u1_eclipse_36
and also under in Eclipse Menu Window --->Preferences ---> Installed JRE ---> Pointed JDK Path in JRE Settings
C:\Program Files\Java\jdk1.6.0_27
But when i tried to install this VisualVM into Eclipse by
Eclipse Menu ---> Install New Software --->Add -- >Archive option
i am getting the below exception
Could not find jar file:file:/D:/VisualVM/visualvm_launcher_u1_eclipse_36.zip!/
Please see the image related to the Exception .
This is what I did to get it installed.
downloaded and unzipped to C:/visualvm_launcher_u1_eclipse_36/
Eclipse Window --->Preferences ---> Available Software Sites --> Add
(Name: VisualVM;
Location: file:/C:/visualvm_launcher_u1_eclipse_36/)
Eclipse Help ---> Install New Software ---> Select VisualVM from drop-down menu ---> Expand Uncategorized ---> Select VisualVM Launcher Feature ---> Next
It looks like you are not following the steps for installation. You should:
unzip visualvm_launcher_u1_eclipse_36.zip into directory of your choice
add local update site pointing to the chosen directory
install VisualVM Launcher Feature
The file itself may be corrupt that you are trying to add as an archive. Examine the root level of the file and make sure the correct components are there. Right now, I am trying to install EPIC in such a way. What I see in the zip file at the root level are:
features (folder)
plugins (folder)
README.txt (file)
site.xml (file)
For anybody else stumbling upon this question and having the same problems:
handshake failure when using Eclipse marketplace/Update site
You tried JRE unlimited policy workaround and it doesn't work
manual installation of plugins also doesn't work
I have downloaded clean eclipse zip, started it and downloaded the plugin that I wanted (Enhanced Class Decompiler), and then opened the targeted Eclipse installation (actually an IDE called Intershop Studio) and used File -> Import -> Installation -> From Existing Installation to import plugins.
So this solution is applicable if problems are not caused by system configuration or if you already have plugins installed on another Eclipse installation.