|Using Q4E with PDE [message #12589]
||Wed, 06 August 2008 16:56
Originally posted by: chris.audley.beaconcs.com|
I'm trying to find a way to use Q4E to support my plug-in development.
I have a project based on a number of plug-ins that require externally
developed JAR files, either from other groups in the same company or
third party libraries. My current practice is to include a copy of the
JAR in my plug-in projects as 'Referenced Libraries' (classpath
container) during development, with a custom post.gather.bin.parts ant
callback task that expands the contents of the jars into my plugin
before it is JAR'ed.
We use maven to manage our dependencies for pretty much every other
project we have here, so I'd like to find a good way to update our
My first thought was to use Q4E to create a 'Maven Dependencies'
container in my plug-in project classpath, and use Maven Tasks for Ant
with the pom.xml to find and expand the dependency jars during export.
My first problem is that the PDE manifest compiler won't work with the
MavenClasspathContainer. When I have the plugin project configured with
Q4E and a pom.xml, the 'Maven Dependencies' container shows up with
the required jars, but the manifest compiler complains that packages in
these JAR files don't exist when I try to export them with
Export-Package. In my previous configuration, these same jars appeared
in the 'Referenced Library' container and the manifest compiler could
find them just fine. What is the difference with the Maven Dependencies
My other question is about copying the jars into the plugin during
export. The Q4E website mentions having maven copy runtime dependencies
to the WEB-INF/lib directory in WTP. How does that work and can I apply
Powered by FUDForum
. Page generated in 0.02248 seconds