Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [january-dev] Maven support for January

Hi Erwin,

TL;DR - January datasets is a "pure" Java library. We want to remove
unneeded dependencies for contributors/adopters while continuing to
make OSGi bundles available via P2.

----

Thanks for showing an interest in this tricky topic. I agree that it
is not straightforward what we should do.

Our primary goal is to enable adopters to consume released January
from whatever build system they want. At the moment we only release an
Eclipse P2 site with bundles, and those bundles contain OSGi
compatible MANIFEST.MF files. We want to make it easy to consume with
Maven/Gradle/Ivy/etc. For this goal, the obvious place to publish
bundles is maven central. It is the easy place to pull from any of the
build systems. Even the Eclipse Project (aka Platform SDK) are now
regularly publishing there.[1] This goal is being worked on (and
nearly there) by Yannick, tracked in Issue #144[2].

This goal is in addition to the current published method of P2/OSGi.
No changes are planned there on how January can be consumed from P2
sites.

The secondary goal is to enable contributors to come up to speed
faster with January. While we need real OSGi bundles, as they will
continue to be consumed by Eclipse RCP applications (like Dawn, ICE,
etc) we don't require OSGi to use January and in the core datasets do
not use any of OSGi. So the secondary goal becomes one of removing the
implied dependencies on Tycho / Eclipse IDE as a dev environment. The
best solution it seems to me is building January as a "pure" maven
project (no tycho). Eclipse IDE could continue to open and
"understand" the project using m2e[3], but contributors could use any
other IDE of their choosing and develop January too. I have now
created an issue, #165 to track this.

Thanks
Jonah



[1] http://dev.eclipse.org/mhonarc/lists/eclipse-dev/msg10352.html
[2] https://github.com/eclipse/january/issues/144
[3] https://www.eclipse.org/m2e/
[4] https://github.com/eclipse/january/issues/165
~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com


On 13 April 2017 at 19:59, Erwin De Ley <erwin.de.ley@xxxxxxxxxx> wrote:
> Thanks Yannick, nice work!
>
>
>
> Could you explain where the issues are to keep a Tycho build to achieve
> this?
>
> Or is it because January does not and will not need to deliver “real” OSGi
> bundles and so doesn’t need the overhead of Tycho?
>
> (E.g. no use case for OSGi services?)
>
>
>
> Cheers
>
> erwin
>
>
>
> From: january-dev-bounces@xxxxxxxxxxx
> [mailto:january-dev-bounces@xxxxxxxxxxx] On Behalf Of Yannick Mayeur
> Sent: Thursday, April 13, 2017 4:08 PM
> To: january developer discussions <january-dev@xxxxxxxxxxx>
> Subject: Re: [january-dev] Maven support for January
>
>
>
> Hi Erwin, all,
>
>
>
> When we mention being available through Maven, we indeed mean through Maven
> Central.
>
> If you take a look at this: https://goo.gl/w2j3n2
>
> You can see that we already made us available on Maven Central using the
> current poms of the project with a few changes including adding the
> dependencies, so the end-user does not need to duplicate them.
>
> You can see what changes exactly were required if you take a look at my pull
> request: https://github.com/eclipse/january/pull/160
>
>
>
> Regards,
>
>
>
> Yannick Mayeur
>
>
>
> 2017-04-13 14:31 GMT+01:00 Erwin De Ley <erwin.de.ley@xxxxxxxxxx>:
>
> Hi Tracy, all,
>
>
>
> This is an interesting and tricky topic indeed.
>
>
>
> When you mention being available through Maven, is this about being on Maven
> Central and with standard poms including detailed dependency information? Is
> there some info available on the exact needs and issues you have with
> January in the two approaches?
>
>
>
> Regards
>
> erwin
>
>
>
> From: january-dev-bounces@xxxxxxxxxxx
> [mailto:january-dev-bounces@xxxxxxxxxxx] On Behalf Of Tracy Miranda
> Sent: Thursday, April 13, 2017 12:53 PM
> To: january developer discussions <january-dev@xxxxxxxxxxx>
> Subject: [january-dev] Maven support for January
>
>
>
> Hi all,
>
>
>
> Recently we have been looking at making January bundles easily available
> through Maven.
>
>
>
> Yannick Mayeur has been doing some great work on deploying bundles to Maven
> and providing an example project consuming January with maven:
> https://github.com/yannick-mayeur/mvnTestJanuary
>
>
>
> One of the things this work is highlighting is that it is proving
> problematic having both a Maven build and a Maven/Tycho build, with some
> issues to be resolved plus duplication of dependency information.
>
>
>
> It looks like the best way to solve these will be to switch over to a pure
> Maven build, then we are down a well-beaten track for many of these
> infrastructure issues.
>
>
>
> Tracy
>
>
> _______________________________________________
> january-dev mailing list
> january-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/january-dev
>
>
>
>
> _______________________________________________
> january-dev mailing list
> january-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/january-dev
>


Back to the top