Hi

I need to gather all dependencies from a Maven POM and copy them to an Eclipse 
plugin directory and then create that plugin from that which covers all the 
JARs and exports all the packages.

The question is: How can I do that?

One of the tools would be the 'bundleall' goal of the Felix Maven plugin, but 
somehow it looks for way too many dependencies. When I use the similar 
dependency:copy-depencies, I don't run into the same trouble. Specifically, it 
seems that deep down, somewhere, I have a dependency which can't be resolved, 
because the artefact 'stax:stax-ri:jar:1.0' can't be found.

So the question is: Can I configure the 'bundleall' goal to exclude certain 
dependencies? From debugging the Maven output, I don't see any configuration 
possibility:
[DEBUG] Configuring mojo 'org.apache.felix:maven-bundle-plugin:2.0.0:bundleall' 
-->
[DEBUG]   (f) baseDir = C:\jp\client
[DEBUG]   (f) buildDirectory = C:\jp\client\target
[DEBUG]   (f) localRepository = [local] -> file://C:\Documents and 
Settings\lewis_lee\.m2\repository
[DEBUG]   (f) manifestLocation = C:\jp\client\target\classes\META-INF
[DEBUG]   (f) outputDirectory = C:\jp\client\target\bundles
[DEBUG]   (f) project = MavenProject: ch.ipi:client:1.0.0-SNAPSHOT @ 
C:\jp\client\pom.xml
[DEBUG]   (f) remoteRepositories = [[repository.central] -> 
http://repository/content/groups/public, [central] -> 
http://repo1.maven.org/maven
2]
[DEBUG]   (f) supportedProjectTypes = [jar, bundle, ejb]
[DEBUG]   (f) wrapImportPackage = *

Or could I use the dependency plugin, download what I need and trick the Felix 
plugin into believing that the target directory is my repository?


Ok, the other question then is: How do I create an Eclipse plugin from this? 
Would the POM described under 'Eclipse/PDE integration' be sufficient to create 
an Eclipse project?


Thanks for any help! I don't know a lot about OSGi, I just have to build it  ;-)

Best regards,
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to