Is there a way to generate the MANIFEST.MF for an Eclipse plug-in project with m2eclipse? - eclipse

I have a mavenized Eclipse plug-in project and I would like to be able to generate an OSGi-ready manifest for it. Is this supported by m2eclipse?

If you have a maven project, you can use the Maven Bundle Plugin for this.

Indeed maven-bundle-plugin, when using eclipse also have a look at the "Eclipse/PDE integration" chapter to put the MANIFEST.MF in a location eclipse understands.

Related

how can I create maven Gwt project?

Hello friends I have not so much Idea about maven build tool. I just download and install it in my system as I read maven is a build tool and work perfectly with transitive dependency. this is the basic reason to use it
I also configure mavan plugin in Eclipse.
so what is the proper Gwt maven archetype in eclipse and I read so many command in tutorials like maven:gwt run but I dont to where is this command exist in eclipse
I am very new in maven so please help me like a beginner
This is a common approach to get support of maven in existing GWT-Project
Make a gwt project by using the gwt plugin in Eclipse. Now you have
an Eclipse gwt project.
Select the project in Project Explorer , right-click it, then choose
Configure . Then select Convert to Maven Project . Now you get a
gwt-maven project.
Now add necessary dependencies to pom.xml .
if you want to create a gwt maven project directly you need to choose gwt archetype if not exist you can add this have a look in
this video
You should:
Download the gwt plugin in Eclipse and create a gwt project.
In Eclipse select the project, right-click on it, then choose Configure. Then select Convert to Maven Project.
Now you get a gwt-maven project.

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

I need to get maven folder while creating project

I have downloaded maven 3.x successfully but when I am opening eclipse ide File > New > Project and need to select maven project then I am not able to view the maven folder itself .I dont know whether I need m2e plugin or what as I am new to this .Please guide me on this.
Open Help - Eclipse Marketplace in Eclipse and then enter m2e or maven plugin. It depends on your eclipse version, what to install.
But there are also a lot of eclipse bundles, which already include the maven plugin like the Java EE version.

How to generate pom file for existing eclipse plugin project?

I didn't really use maven so it may be noob question.
I have Eclipse plugin project and before I deploy it, I need to generate a pom file. The regular pom file is designed for java projects and if I try to generate from them I lose my plugin dependencies. Is there a way for maven to include them,too ?
Converting a standard Eclipse plugin project to a Maven structured project is not as simple as generating a pom file. The project needs to be in the same directory structure that Maven expects.
If you want to build Eclipse plugins as Maven projects take a look at Tycho (http://www.eclipse.org/tycho/).

What eclipse plugin the project is required?

I have found this project sample. It says it is an eclipse project type but I am wondering what eclipse plugin does it require to be compiled successfully? I'd like to build the sample with my eclipse but I am not sure how should I prepare my eclipse to compile such kind of project? What additional libs etc... So I need your advice
Here is its structure screen shot
project source...
Any useful comment is appreciated
That looks more like a maven project structure - check if it has a pom.xml.
In the root directory of the project , I found it has a pom.xml , so it is a Maven based project.
Looking into .project file (an eclipse project-specific file) , it has the following :
<nature>org.maven.ide.eclipse.maven2Nature</nature>
org.maven.ide.eclipse.maven2Nature means that the project has the m2eclipse (a maven pluign for eclipse) nature .Note that after the version 0.12.1 , m2eclipse project is moved to Eclipse Foundation and become the part of Eclipse 3.7 (Indigo) release . The name of this nature becomes org.eclipse.m2e.core.maven2Nature
Besides ,I also found that there are some WTP-specified setting files (eg org.eclipse.wst.common.project.facet.core.xml) in the .setting folder . WTP is included inside the 'Java EE Developers version' of eclipse by default.
So , this project is created by eclipse installed with the WTP and the m2eclipse with the version at or before 0.12.1.
how should I prepare my eclipse to compile such kind of project? What
additional libs etc.
As it is a maven project , you don't have to include the additional libs explicitly . All the libs required are configured inside the pom.xml and maven will download these libs for you.
For me , I would use an eclipse installed with WTP , m2eclipse ,m2eclipse-wtp and GWT eclipse plugin . Then create a new maven war application , and only copy the pom.xml and the src folder to the project .After that use the m2eclipse function to update the download libs and those project-specified setting files.