|Building an Eclipse Plugin (depending on another Eclipse Plugin) using Maven [message #605627]
||Tue, 20 April 2010 07:51
Registered: March 2010
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:
The http://maven.apache.org/plugins/maven-eclipse-plugin/pde.htm l with PDE set to true
The http://maven.apache.org/plugins/maven-dependency-plugin/ which copies dependencies (jars) listed in the POM into the root directory of the plug-in and then included in the classpath when built
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!
Thanks in advance.
Powered by FUDForum
. Page generated in 0.07296 seconds