简体   繁体   中英

convert eclipse plugin project into maven project programatically

I have a requirement like, I have to create a eclipse plugin project with custom folder structure which I am able to do successfully.

Next step is that I want to make the projet which is created during runtime using my plugin to have maven dependency management, ie every project I create with my wizard should be having maven dependency management.

Has anybody got some idea how I can achive this other than Tycho.

NOTE:While searching for the solution I came across tycho maven plugin but it only builds the eclipse plugin project,does not make it a maven project (As per my understanding)

There is no straightforward way to making a project both a Maven project and an Eclipse plug-in project. There are different rules for the Maven and Eclipse build system, different ideas to tackle differences.

As you said, Tycho does not make an Eclipse project a Maven project in the traditional sense (eg Maven-style dependency management), only makes Maven aware of the Eclipse rules. Luckily, it allows you to compile your plug-ins using Maven (at least with mvn3) really simple.

If you don't need your project to compile in Eclipse, you could use other tools like Maven Pax , but I do not know the capabilities and limitations of them.

So generally, if Pax works out working, it might help, otherwise I don't think there is a tool already created because of the main logical differences between the Maven and OSGi/Eclipse plug-in world.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM