Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Building an Eclipse Plugin (depending on another Eclipse Plugin) using Maven
Building an Eclipse Plugin (depending on another Eclipse Plugin) using Maven [message #528323] Tue, 20 April 2010 07:51 Go to next message
Ed is currently offline EdFriend
Messages: 13
Registered: March 2010
Junior Member
Hi,

I am attempting to use Maven to build two Eclipse plug-ins, I am implementing an ODA driver and the UI for the BIRT reporting extension.

So my two plugins:

  • 1. The Driver plug-in
  • 2. The UI plug-in which depends on the Driver plug-in


I have setup both plug-ins' poms very similarly, the included Maven plugins that do the majority of the build stuff are listed below:



I am unsure how I specifiy that the Driver plug-in is needed by the UI plug-in. I have added the Drvier plug-in to the 'Require-Bundle' attribute of UI's manifest file which means that both plug-ins successfully build and work when tested in Eclipse, but when I perform 'mvn install' for the UI plug-in, I get loads of compile errors saying that any classes contained in the Driver plug-in cannot be found...

The Driver plug-in builds with no issues, so I thought that maybe I could add it to the list of dependencies for the UI plug-in (in the UI's POM), but if I do this, since packaging is zip I cannot add to the classpath like other dependencies. If I change the Driver's packaging to jar the Driver fails to build...I'm stuck!

Any ideas?
Thanks in advance.


Re: Building an Eclipse Plugin (depending on another Eclipse Plugin) using Maven [message #528353 is a reply to message #528323] Tue, 20 April 2010 08:49 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Tycho 0.8 with Maven 3 is what you need:
* http://www.eclipse.org/proposals/tycho/
* http://mattiasholmqvist.se/2010/02/building-with-tycho-part- 1-osgi-bundles/
* http://divby0.blogspot.com/2010/03/im-in-love-with-tycho-08- and-maven-3.html

--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: Building an Eclipse Plugin (depending on another Eclipse Plugin) using Maven [message #528711 is a reply to message #528323] Wed, 21 April 2010 14:45 Go to previous messageGo to next message
Ed is currently offline EdFriend
Messages: 13
Registered: March 2010
Junior Member
If anyone's interested I managed to get it to work - a little bit hacky...

I added an ant task on the install phase of the Driver plug-in's build process, and that task simply copies the class files which are placed under: target/pdeTemp/plugins/${plugin-name}_${version}/@dot, into: target/classes.

Now it compiles!
Re: Building an Eclipse Plugin (depending on another Eclipse Plugin) using Maven [message #605629 is a reply to message #528323] Tue, 20 April 2010 08:49 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Tycho 0.8 with Maven 3 is what you need:
* http://www.eclipse.org/proposals/tycho/
* http://mattiasholmqvist.se/2010/02/building-with-tycho-part- 1-osgi-bundles/
* http://divby0.blogspot.com/2010/03/im-in-love-with-tycho-08- and-maven-3.html

--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: Building an Eclipse Plugin (depending on another Eclipse Plugin) using Maven [message #605646 is a reply to message #528323] Wed, 21 April 2010 14:45 Go to previous message
Ed is currently offline EdFriend
Messages: 13
Registered: March 2010
Junior Member
If anyone's interested I managed to get it to work - a little bit hacky...

I added an ant task on the install phase of the Driver plug-in's build process, and that task simply copies the class files which are placed under: target/pdeTemp/plugins/${plugin-name}_${version}/@dot, into: target/classes.

Now it compiles!
Previous Topic:How to put a textbox in a toolbar of a view based plugin
Next Topic:using compare apis without the plugin environment
Goto Forum:
  


Current Time: Tue Apr 23 13:53:32 GMT 2024

Powered by FUDForum. Page generated in 0.03020 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top