Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] wrapping POJO dependencies...

Have you looked at maven-bundle-plugin <Embed-Dependency> feature [1]?
This is what we use for m2e embedded maven runtime and similar OSGi
bundle "wrappers" around non-OSGi maven dependencies [2] used by m2e.
Everything works quite well both during command line build and with help
of m2e-tycho inside Eclipse workspace too.

[1] https://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html
[2] http://git.eclipse.org/c/m2e/m2e-core.git/tree/m2e-maven-runtime?id=milestones/1.1/1.1.0.20120505-1126

--
Regards,
Igor

On 12-05-15 4:00 PM, Eric Gwin wrote:
Hi,

I have a situation where I want to build an OSGi fragment using Tycho,
but it has dependencies upon POJO jars that are not public licensed. As
a result I want to be able to wrap the dependencies at build-time into a
single OSGi bundle.

My issue is that I'm unaware of a way to do this with Maven, let alone
Tycho, so have been using the maven-antrun-plugin to have ant wrap the
"lib" (packaging = jar) in the generate-sources phase. The parent pom
lists it as the first module to build, even so, Maven/Tycho cannot
resolve the included dependencies - I suspect it is because the jar is
being generated outside the "Tycho build" and as such it is not included
in the dependency resolution.

Any recommendations on how to best to accomplish the overall goal,
and/or use Tycho to wrap the libs?

Thanks.

-Eric
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top