Where to find core eclipse plugins for the Hello World sample plugin project? - eclipse

I have eclipse oxygen installed and I'm trying to create the sample HelloWorld plugin project.
The plugin project has dependencies on core plugins from the org.eclipse.core/ui/jface etc libraries and I can't find them anywhere on my local machine so that I can add them to my target platform and have them resolved.
Where are these jars supposed to be?

Related

How to get a version of Eclipse that uses Maven (MVN) 3.2.3 as embedded version of Maven

I have a Maven build that will resolve the required dependencies using Maven 3.2.3. If I use Maven 3.3.9 I get dependency errors. The version of Eclipse I'm using uses Maven 3.3.9 as the embedded version of Maven. There is a message in the configuration window that states "Note: Embedded runtime is always used for dependency resolution" so I get dependency errors when the project is build in Eclipse. How do I get a version of Eclipse that uses Maven 3.2.3 as the embedded version of Maven? Is there a version of Eclipse I can download that already uses the version of Maven as the embedded version? Is there a way I can change the embedded version to point to Maven 3.2.3?
Embedded maven is coming from m2e plugin of eclipse. You can find older releases of this plugin in the following link.
https://www.eclipse.org/m2e/m2e-downloads.html#m2eclipse-releases
In eclipse Help-> Install new Software and click Add button; for location copy paste the address next to the plugin version you choose(from the above link). And install the plugin. (You might want to remove your current plugin first before doing this) I think you might want to check plugin versions from 1.5 to 1.6. (*)
If you cant fix your problem this way, you may have to build the plugin yourself. https://github.com/eclipse/m2e-core/blob/master/m2e-maven-runtime/org.eclipse.m2e.maven.runtime/pom.xml Inside this pom changing <maven-core.version>3.5.3</maven-core.version> (there is comment about this inside this pom.xml) to desired version and building the plugin.
(*) If you want to know which plugin version uses which maven version; Just click the link next to plugin version and Show Directory Contents-> plugins -> org.eclipse.m2e.maven.runtime_***.jar and download this jar. Open it with a zip program to see its maven version.(Inside the jar there is a jars folder and maven jars is there)
For the record, I ended up punting on this. I moved to InteliJ. Not being able specify what Maven version to use to resolve resources was a show stopper for Eclipse on the project I was working on that required a specific version of Maven for its dependencies. It would be a very welcome enhancement to Eclipse to be able to specify the version of Maven to use for dependency resolution.

I developed an eclipse editor using ecllipse-rcp concepts .My requirement is to build the project using maven

I developed an eclipse editor using eclipse-rcp concepts .My requirement is to build the project using maven.
So i wrote the pom with packaging type=bundle using apache felix concepts.
After building the project, the project jar has the class files,plugin.xml and the manifest file.
Now, I am dropping this jar in plugins folder of eclipse.I want to open files of a certain extension with this editor. But my eclipseis not showing my editor name in the Internal/External editor list, even though the plugin is the plugins folder of eclipse.
Please help.
If you want to build Eclipse plug-ins with Maven, you should use Tycho: https://www.eclipse.org/tycho/. It provides specific packaging types for handling Eclipse plugins and features (groups of plugins).

How to add my bnd jars dependencies to my eclipse RCP application?

I have some core plugins created in my workspace that are built with BND tools in eclipse. Now I have to reference those core plugins in my eclipse RCP application which is developed with PDE tool in eclipse. But there is no visibility to the BND generated plugins inside the RCP application. May be I can manually copy those plugins to a folder and add the folder to the target. But I want to get rid of such manual task.
Is there any easy way to add the BND generated plugins as dependencies to my RCP application?
Thanks in advance.
I didn't try with recent version of eclipse and bndtools
But you can try my experiment done 4 year ago
https://github.com/filippor/bndPdeTarget

Importing AEM projects into Eclipse

I have searched around and couldn't find a direct answer in how to import an existing AEM project on my local into Eclipse. I am relativity new to AEM and would like to use the features Eclipse has. I have the AEM plug in downloaded and am able to create a new project, just not import.
I am not using maven, just packages and OSGI.
Advice?
You can create a new AEM archetype project (provided by the AEM eclipse plugin). That project will be a maven project.
Since you are not using maven in your current project, you can manually move all of your java files into their respective location on the newly created AEM project. As for the java dependencies, you can lookup tutorials on how to use maven and add your java dependencies to it. or you can just add your dependencies directly on the project, but I recommend using maven.
You have only package and OSGI bundle, so you can only modify the content (package) and cannot modify the bundle.
We cannot import a project from the osgi bundle to make the source code editable.
For import AEM project to Eclipse, follow the procedure:
Import AEM project as maven projects. Please check with image.
Then select your project and build.
From where you are getting those packages and bundles?
When ever you build the project from the source(cmd : mvn clean install), packages/bundles will be generated under respective target folder based on pom.
So, you can only import project source on eclipse and not the generated target files.

Want to use both older and newer version of ant plugin in eclipse for two different projects

I want to use two versions of ant plugin in eclipse for two different projects. Both versions are available in the plugins folder of my Eclipse. But I'm able to see only the latest version of ant plug-in when I'm trying to add it in the plug-in dependencies in Manifest.MF file. Please help me with this.
You can try to import both of ant plug-ins into your Eclipse workspace. Then you can let your projects depend on any version of ant for your development.
For building or releasing process, you can use Tycho to define a target platform to include both of them.