Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Problem with POM-first dependencies

I spent some time on maven-bundle-plugin <Embed-Dependency> support i
m2e-tycho recently. The good news, I have what I believe pretty much
perfect solution which allows seamless integration between PDE and
maven-bundle-plugin projects. The bad news, I had to patch PDE,
maven-bundle-plugin and BND to make this work in all scenarious and I am
not sure whether my patches are going to be accepted or not. For
completeness, the new n2e-tycho code is currently on a branch [1] and
[2], [3] and [4] are the required patches.


[1] https://github.com/sonatype/m2eclipse-tycho/tree/mbp-embed-dependency
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=353442
[3] https://issues.apache.org/jira/browse/FELIX-3061
[4] https://github.com/bnd/bnd/pull/71


--
Regards,
Igor

On 11-08-07 2:46 PM, Ricardo Gladwell wrote:
Hi Guys

I'm having some problems getting my POM first dependencies to work.

I copied the configuration from the tycho demo projects:

https://github.com/sonatype/sonatype-tycho/blob/master/tycho-demo/itp02/build01/pomfirst-thirdparty/pom.xml


So I have three projects:

Project A: Simple Maven JAR project
Project B: OSGi bundle wrapping A
Project C: Tycho eclipse-plugin consuming A via B

But for some reason, my Project B is failing to build in Eclipse with
the error message:

Archive for required library: 'jars/classes' in project
'me.gladwell.android.tools' cannot be read or is not a valid ZIP file

In my Eclipse error log I'm getting:

eclipse.buildId=I20110613-1736
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os linux -ws gtk -arch x86 -product
org.eclipse.epp.package.jee.product

Error
Sat Aug 06 14:09:05 BST 2011
Invalid ZIP archive: jars/classes [in me.gladwell.android.tools]

Any thoughts?

TIA...



Back to the top