Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Consuming OSGi bundles produced by Tycho in Maven

Zitat von Igor Fedorenko <igor@xxxxxxxxxxxxxx>:

What do you mean by "install dependencies"?

Sorry; that should have been "installs the build artifacts in my local .m2 repo" :-)

Artifacts built and installed by Tycho can be addressed by their
groupId/artifactId/version coordinates, but the consumer of these
artifacts will have to list all required indirect dependencies
explicitly. The latter part is indeed by design as I still do not
believe there is a universally correct way to convert OSGi/P2 dependency
information to Maven, especially if the conversion is done at artifact
level.

I agree; my solution was to convert, say, de.itemis.xtext.typesystem version 2.0.4.201111291356 to

    groupId: de.itemis.xtext
    artifactId: de.itemis.xtext.typesystem
    version 2.0.4

This suits about 99% of the cases (for example, when you convert the Indigo release). All the odd cases are handled by a small patch script which defines mappings.

This doesn't work for nightly or integration builds but my converter is designed to make Eclipse releases consumable.

For intermediate releases, I'd map the .qualifier to -SNAPSHOT. Since you have full control on what ends up in your repo (you must run my conversion tool against a downloaded ZIP/TAR archive or a directory), there can be no surprises.

Regards,


--
Regards,
Igor

On 11-11-29 9:05 AM, Aaron Digulla wrote:
Hello,

I've just noticed that Tycho doesn't modify the POM files when it
installs the dependencies in my local m2 repo.

Which means that the bundles aren't directly consumable by Maven. I
guess this is by design (don't touch the POM) probably since it's unsure
that all dependencies can be found by Maven (without Tycho).

What do you do when you have to mix PDE/Tycho and pure Maven builds?
(not in the same invocation of mvn :-)

Regards,

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





--
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://www.pdark.de/                   http://blog.pdark.de/


Back to the top