Conflict in Eclipse Mars with Maven and SVN? - java

I've been using Eclipse for programming and testing Storm just fine, however, I created an SVN account, where I commit the project, and for that, I needed the SVN plugin for Eclipse. It worked, but after that, i get this message on a popup error window when I try to launch:
Referenced classpath provider does not exist:
org.eclipse.m2e.launchconfig.classpathProvider
I realised that in the "configure" menu, the option "convert to maven project" (right click on project) disappeared. The "runAs" options for the java topology doesn't run with this error, and the "pom.xml" cannot be run as maven.
Possible fix tried:
I tried to reinstall all maven builders to Eclipse(it doesn't let me to unninstall).
I tried to rebuild config by:
mvn eclipse:clean eclipse:eclipse
None of this worked, my Eclipse version is:
Eclipse Java EE IDE for Web Developers.
Version: Mars.1 Release (4.5.1)
Build id: 20150924-1200Eclipse Java EE IDE for Web Developers.
On Ubuntu Gnome 14.04.
As I said, it was running perfect until I installed SVN plugin.
EDIT
I realised that I have installed two plugins of m2e:
Maven integration for Eclipse (Luna and newer)1.5
Maven integration for Eclipse (Luna)1.5.0
Both in marketplace, but I have no way to uninstall them, it says:
[plugin] cannot be fully uninstalled because other installed software requires it. The parts that are not required will be uninstalled.
EDIT 2
In the "Installation History" within the "Help>Installation details" menu, I saw that "Maven integration for Eclipse (Luna)1.5.0" was installed by (or with) SVN plugin, so I think the problem is there, nevertheless, I can't uninstall it as I said in my first "EDIT".
If anyone has a clue about what is happening, please, help me.
Thanks in advance!

We use Subclipse in Eclipse (Kepler and Mars) without problems (Did you install Subclipse or Subversive?).
To check out projects as Maven projects, you should install a m2e connector. Subversive has one in the "Discovery" catalog while for Subclipse there is a separate update site.
If your eclipse plugin configuration is somehow broken, I would start again with a virgin eclipse (Mars.1, Mars.2 or Neon) which already contains m2e in version 1.6 or 1.7. Then you can install Subclipse or Subversive and try again.

Workaround proposal: simply don't deal with SVN within eclipse!
Instead, you can use "git svn" on ubuntu.
Meaning: with git svn you can create a local git repository, that allows you to commit/fetch to a remote SVN server. But to your eclipse ... that repository looks a common of garden GIT repository.
In other words: using that tool, you can still connect to SVN (although I don't understand why anybody would want to do that in 2016); but you have all the features of git available to you as well (including full support within eclipse; without installing any additional plugins).

Related

Not able to install M2eclipse plugin in NEON Eclipse

I have installed Eclipse Neon Milestone 4, Java 8, and Apache Maven 3.3.3 on my windows system. I am trying to install plugin :: M2E - Maven Integration for Eclipse 1.6.2 in eclipse. I am getting error -
Cannot complete the request. See the error log for details.
"m2e - Maven Integration for Eclipse (includes Incubating components)" will be ignored because a newer version is already installed.
But When I look in "Installation detail" I can't see Maven plugin there. Also no Maven menu option is coming when I am right clicking the project.
Please help to proceed.
I just ran into this problem too. I'm using the same version of Eclipse, etc. It turns out that the "fix" was kind of subtle. When you go an install new software under the help option using "http://download.eclipse.org/technology/m2e/releases", then you select the maven option. On the next screen they say here's what your downloading...
I had to select the two items by highlighting them then press next and agree to the licenses for m2eclipse to install correctly. The first time when it didn't work I thought, okay great that's what I need, and then nothing happened. Hopefully that helps, I realize you're getting this answer about 10 months after you asked for help.

OS X - Configure Eclipse Luna to use CLI maven repository

I have installed Eclipse luna on my macbook(with Yosemite). Maven in eclipse works fine. Prior to that i installed maven in system (extracted downloaded package and set in the path). Both (Eclipse based and CLI based) maven works fine. Following are questions.
I suspect that, both maven tools use separate directories to store downloaded files. Which may eat up lot of space. Is it true?
Is there any way we can configure eclipse maven plugin to use maven installed by me or atleast use the same directory to save the space.
Will be thankful for any pointer.
Regards
I think the easiest way would be by using Homebrew. Do you have it installed?
Then you could do:
brew install maven
Then you can install the maven plugins on Eclipse, but I think Luna already comes with the bundle, si you just need to try.
Hope it helps!

Is there any major change done in p2-dropins mechanism in Eclipse 3.8?

Is there any major change in p2 mechanism in Eclipse 3.8? I tried to install Eclipse 3.8 plugins via p2 dropins mechanism but its not working at all. It is not able to resolve the plugins. Plug-in perspective is also missing. Also the bundles.info is not coming up in org.eclipse.equinox.simpleconfigurator.
I suspect that your dropins are failing to install because they have dependencies that are not resolving in your new install. The standard behavior for dropins is to ignore plugins that cannot be installed. The user doesn't get any feedback on the problem. That's one of the reasons that dropins approach to installing plugins is not recommended.
To debug your current problem, try to install the plugins you are trying to install via dropins by using the plugin install dialog instead. You will see a report on why installation cannot proceed and will be able to proceed accordingly.
This section of the release notes should address your question.
API Contract Compatibility: Eclipse SDK 3.8 is upwards
contract-compatible with Eclipse SDK 3.7 except in those areas noted
in the Eclipse 3.8 Plug-in Migration Guide.
You should copy your installed plugins from user .eclipse/org.eclipse.platform_4.2.0_*/plugins and .eclipse/org.eclipse.platform_4.2.0_*/features to /usr/lib/eclipse-4.2/dropins/eclipse/plugins and /usr/lib/eclipse-4.2/dropins/eclipse/features. In win7 filesystem you should find C:/eclipse/dropins and your plugins and features directories in your User directory. It works with 4.3.0 juno build: I20120810-1300
See in Getting started Dropins paragraph

Plug-in project option not available in Eclipse

I have installed eclipse Helios and want to create a plugin project. I select File --> New --> Project but there I do-not see the option for Plugin development. There are only 4 options--
General, CVS , Java and Examples.
Here are the eclipse details--
Eclipse IDE for Java Developers
Version: Helios Service Release 2
Build id: 20110218-0911
Do I need to configure anything in the eclipse settings or preferences for this?
You have to install the Eclipse for RCP and RAP Developers package of eclipse, not the one for Java Developers.
http://www.eclipse.org/downloads/packages/eclipse-rcp-and-rap-developers/indigosr1
Edit: As an alternative you can install the plugins for plugin development into your existing installation. But this might require some fiddling.
The reason there might be no "Plugin Project" option in your Eclipse IDE could be due to the fact that the IDE you have installed does not include the necessary components for plugin development.
to get the plugin project flow the below steps.
Open Eclipse and go to the Help menu, then select "Eclipse Marketplace".
In the Marketplace window, search for "PDE" and select the "Eclipse PDE" option from the list.
Click on the "Install" button next to the Eclipse PDE option, and follow the prompts to complete the installation process

Why does my Eclipse plugin show up in Eclipse RCP version, but not in other versions like Java and Java EE?

I have developed an Eclipse plugin using the RCP version of Eclipse. I have used the plugin via a 'run application' launch as well as by exporting the plugin as a JAR and putting it in the plugins directory of Eclipse RCP.
The problem is that when I put the plugin JAR in the plugins directory for my Java version or Java EE version of Eclipse, it doesn't seem to be loaded as one of the plugins. I go to the preferences to look at the pref. page for my plugin and it isn't even listed.
This is my first Eclipse plugin, so I don't have much experience using plugins across different distributions of Eclipse and so forth. Any ideas of how to fix this? I would like to be able to use the plugin in any Eclipse (Java, Java EE, RCP, etc.)
Try putting your plugin under install/dropins/plugins directory. As of Eclipse 3.5, adding plugins directly to the root plugins directory isn't supported.
This should be enough for you to experiment further, but this isn't a good way to install finished plugins. The best way to install plugins is via a published repository. You will need to create a feature to hold your plugin and then use Export -> Plug-in Development -> Deployable features wizard or investigate command line build solutions such as pdeBuild.

Categories