Igor, Oddly, m2e works with my Embed-Dependency component so long as it is built with the bundle goal plugin and in my workspace. (and I have the m2e-tycho stuff configured to deal with packaging=bundle).
Only when I switched to using packaging=jar and the manifest goal does it go on strike. So I assumed that whatever was in those patches, it didn't apply to me, but maybe my attempt to work around the maven-bundle-plugin bug moved me from some accidently working condition to the opposite. I guess I can stick this item into a local P2 repo and then find it there. --benson On Sat, Aug 27, 2011 at 10:24 PM, Igor Fedorenko <[email protected]> wrote: > m2e by itself knows nothing about maven-bundle-plugin and pde, you need > to have m2e-tycho to make it understand packaging=bundle. Also, as I > already mentioned, current version of m2e-tycho does NOT support > Embed-Dependency. This support lives on a branch [1] and waits > for [2], [3] and [4] to be reviewed and accepted by respective project > development teams. > > [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-27 9:01 PM, Benson Margulies wrote: >> >> I've found, I think, a bug in the maven-bundle-plugin. >> >> In my particular case, it generated the correct manifest into >> target/classes/META-INF ... and then sticks a *different* manifest >> into the result jar. >> >> So I tried to work around this by avoiding the 'bundle' packaging. By >> using the 'manifest' goal and some jar plugin config, I succeeded in >> getting it to leave the right manifest in place. >> >> Unfortunately, I can't seem to persuade M2E to pay attention to the >> embedded jars in the resulting artifact. In fact, M2E seems to not >> recognize my project as a bundle at all. >> >> In eclipse, I get errors like: >> >> Bundle 'org.apache.maven.doxia.ide.dependencies' cannot be resolved >> _______________________________________________ >> m2e-users mailing list >> [email protected] >> https://dev.eclipse.org/mailman/listinfo/m2e-users > > _______________________________________________ > m2e-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/m2e-users > _______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
