Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] target platforms and Maven.

yes. Basically, the orbit and other dependencies are API lib/bundles. Many versions could be available, and certainly Maven could resolve a different version than the P2 resolver. Whichever version is used to build the bundles in Tycho, I want to use the same version to build the jars.


On 07/02/2012 4:01 PM, Igor Fedorenko wrote:
Not sure I follow. You have a Tycho project, i.e. an osgi bundle or a
repository, and you want to use dependencies of this bundle to build
another project. Did I get this right?


On 12-02-07 3:48 PM, Eric Gwin wrote:

This is probably more a maven question, but as you'll see below there is
a tie-in to tycho and eclipse, so I think this may actually the best
forum for the question.

I am in the midst of migrating a project's build system from Ant to
Maven. As a first step I've migrated the OSGi artifact's builds to
utilize Tycho for manifest first builds
(Dependencies retrieved using P2 repositories). The rest of the build is
still in Ant and uses build dependencies assembled locally from orbit,
or local OSGi'ified third party jars.

One of the goals of the change was to switch to a manifest-first build
style for the bundles, and another is to switch to a system that allows
development to utilize the same build within the IDE as the automated
"headless" nightly builds. We chose Maven/Tycho.

Once the full build has been migrated, I'll be building a mix of
standard java jars, OSGi bundles, eclipse features, generating a P2
site, and publishing artifacts to a maven repository and creating zip
"install" archives. I expect that a different reactor will have to be
used for the pure maven build (possibly more than one).

I'm currently experimenting with target definition files, it seems they
will allow us to build the tycho artifacts from the command-line or
within the IDE independent of IDE version. However, I've yet to find a
non-ant means of being able to build standard jars with Maven utilizing
the exact same dependencies used to create the bundles (Tycho).

That is basically my question. Is it possible to somehow save the
resulting P2 dependency resolution, and turn around and use it to build
"standard' jars with Maven (which normally utilizes a maven repo)?



tycho-user mailing list
tycho-user mailing list

Back to the top