Unable to run PMD in STS 3.1.0 (uses Eclipse JUNO) - pmd

I installed Eclipse-pmd plugin in my STS 3.1.0. But the "PMD" option doesnt show up in my STS. couldnt run PMD.

If you right-click on any Java file in Eclipse, do you see the option for PMD? If you go to Eclipse Preferences, do you see a configuration entry from PMD? If neither of the above it true, then please reinstall the PMD plug-in.
Unlike FindBug or CheckStyle, the PMD plug-in does not pre-configure what rules to check. You have to go to Eclipse Preferences -> PMD -> Rule Configuration and pick which rules you want use.

Related

Eclipse LUNA:Not able to get pmd in preferences

I am able to install the eclipse pmd 1.5 plugin for eclipse luna successfully.But after restarting eclipse I ma not able to find PMD under preferences section and hence I am unable to use PMD with eclipse.
If I am referring to wrong plugin .Please help me out with getting pmd in preferences.

Eclipse: missing eclipse application launch configuration

I want to choose an Eclipse Application Launch configuration in the Run/Debug Configuration of eclipse, for running an eclipse plugin, but it doesnt exists.
How can I add the Eclipse Application Launch configurations in the run/debug configurations. I'm using Eclipse Luna IDE for Java Developers.
You are missing the Eclipse Project SDK, which is needed to create Eclipse Applications. Without it, you will notice for example these problems:
The Run/Debug configuration is missing a category "Eclipse Applications" (as you mentioned)
The Windows / Preferences dialog is missing a category "Plug-in Development"
Importing launch configurations for "Eclipse Applications" will have no effect.
You install the Eclipse Project SDK like this:
Help / Install New Software...
Choose the installation repository. In case of Eclipse Oxygen, it is "Oxygen - http://download.eclipse.org/releases/oxygen"
Filter for Eclipse Project SDK
Check it & press "Finish"

Not able to install PMD in Eclipse Kepler

I have installed PMD in Eclipse Kepler using Eclipse market place.
But I am unable to access it after the installation.
When I go to Window → Preferences and search for PMD, I get no results.
Is there any other plugin available for source code cleanup?
Or: What needs to be done to install PMD in Kepler?
Thanks
I found the PMD plugin that installs through Eclipse Marketplace to be harder to use than the standalone one. Install available by an Eclipse update site here.
I've tried all these suggestions and now i have it working in Kepler; here's how to do it:
I made sure my Eclipse Kepler instance was using Java 7--it was.
The link from the eclipse marketplace did not work. It would show a PMD option for the individual projects properties, but there were no rules to select from. Also the main workspace preferences were not showing up.
I had to install it using this update site, as Jeanne Boyarsky mentioned:
http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/
Restart Kepler.
The PMD option now shows up in the Windows->Preferences->PMD
The PMD project menu now shows up when right clicking on the project.
The install information on the web site for this plugin http://acanda.github.io/eclipse-pmd/getting-started.html says you must open the Properties for a project and look at the PMD tab.
If you've installed the PMD plug-in using the Eclipse market place then you're using eclipse-pmd which requires Eclipse to run on a JVM version 7 or later. If you're running Eclipse on a JVM version 6 or earlier and you're using eclipse-pmd 0.7 or earlier the PMD property page won't be visible.
To solve this problem you have to run Eclipse on a JVM version 7 or later. To change the JVM on which Eclipse runs you have to set the parameter -vm in your eclipse.ini accordingly. The Eclipse Wiki explains how to specify the JVM.

Cannot upgrade/un-install m2eclipse plugin in Eclipse

I have Eclipse 3.6 with m2eclipse (Maven's plugin for Eclipse) 1.1, it works.
And now I want to try m2eclipse version 1.4, I upgrade it directly and find I cannot see Maven in any menu. Then I try to uninstall and re-install it but I always get this message and Eclipse doesn't install anything.
Your original request has been modified.
"m2e - Maven Integration for Eclipse" is already present because other installed
software requires it. It will be added to the installed software list.
Finally, I try to search all files contain "m2e" and delete them from Eclipse's directory, but still get the same message, any suggestion to un-install m2eclipse?
ps: I use Eclipse Help > About eclipse > Installation details to un-install and restart to make sure m2e is not in Eclipse before re-install. I also use -clean parameter but still the same.
You can remove the m2e plugin in Eclipse Help > About eclipse > Installation details. You should find all the m2e to uninstall.
Edit :
You could also reload eclipse with the -clean option so any cached data used by the OSGi framework and eclipse runtime will be wiped clean

Eclipse doesn't have "Project facets" after install of JBoss WTP adapter

I'm trying to use project facets in Eclipse but the "project facets" section under "project -> properties" is gone. I noticed this when switching to Eclipse Juno from Eclipse Indigo. I thought this was related to Juno, so I switched back to Indigo, only to find the "project facets" were gone there too.
I tried both versions as a fresh install and with a clean workspace.
Searching the web for this issue only came up with "go to 'project -> properties -> project facets'", but this simply isn't possible.
UPDATE:
I managed to break it down. The facet related stuff disappears after I installed the "JBossAS Tools" package from the JBoss update site (http://download.jboss.org/jbosstools/updates/development/juno/).
Steps to reproduce:
Install Eclipse Juno (4.2.0)
Install project facets from http://download.eclipse.org/releases/juno
Under "Modeling": "EMF Facet SDK (Incubation)"
Under "Web, XML, Java EE and OSGi Enterprise Development": "Eclipse Faceted Project Framework"
After a restart see that Eclipse has possibility to create a faceted project (File -> New -> Other -> Faceted Project)
Install "JBossAS Tools" from http://download.jboss.org/jbosstools/updates/development/juno/
Restart, check for faceted things, aaand it's gone.
This might depend on which install of eclipse you are using. In any case, you can download the needed packages to get Facets working.
Facets are part of the Web Tools Platform. If you can't find it in the package manager, you can download it here:
http://download.eclipse.org/webtools/downloads/
You should create your Eclipse project using File / New / Project... / General / Faceted Project wizard or use project's popup menu Configure / Convert to Faceted From....
I installed the "JBossAS Tools" package from the nightly built update site. This didn't cause problems regarding project facets.
Nightly update site: http://download.jboss.org/jbosstools/updates/nightly/core/trunk/