Re: [osgi-dev] Maven (Tycho) cannot resolve OSGi Core bundle

2020-01-03 Thread Jürgen Albert via osgi-dev
Hi Ray, I love this reply, we should frame it somewhere! :-) Amen to that and a happy new year to you and Pam. Jürgen. Am 03/01/2020 um 17:02 schrieb Raymond Auge via osgi-dev: On Fri, Jan 3, 2020 at 10:29 AM Martin Petzold > wrote: IMHO: Manifest-first is

Re: [osgi-dev] Maven (Tycho) cannot resolve OSGi Core bundle

2020-01-03 Thread Jürgen Albert via osgi-dev
Hallo Martin, ich verfolge gerade deine Diskussion in der OSGi Dev Group (mein Kollege Mark Hoffmann hatte sich da auch schon einmal zu Wort gemeldet). Ähnliche Problemem wie du sie beschreibst hatten wir früher auch, als wir noch die PDE und Tycho verwendet haben. Mit dem Umstieg auf BND

Re: [osgi-dev] Maven (Tycho) cannot resolve OSGi Core bundle

2020-01-03 Thread Raymond Auge via osgi-dev
On Fri, Jan 3, 2020 at 10:29 AM Martin Petzold wrote: > IMHO: Manifest-first is best. p2 is hell. maven-bundle-plugin and bnd > "hate" Eclipse. It was never easy. The worst ever was not to find together! > Sounds like you may not have tried bndtools.m2e integration in a long time or ever. OSGi,

Re: [osgi-dev] Maven (Tycho) cannot resolve OSGi Core bundle

2020-01-03 Thread Dirk Fauth via osgi-dev
Manifest-first is best. - opinionated p2 is hell - well, also opinionated but yes, not easy maven-bundle-plugin and bnd "hate" Eclipse - disagree, they hate pde and manifest-first for several reasons Martin Petzold schrieb am Fr., 3. Jan. 2020, 16:29: > IMHO: Manifest-first is best. p2 is

Re: [osgi-dev] Maven (Tycho) cannot resolve OSGi Core bundle

2020-01-03 Thread Martin Petzold via osgi-dev
IMHO: Manifest-first is best. p2 is hell. maven-bundle-plugin and bnd "hate" Eclipse. It was never easy. The worst ever was not to find together! => My approach works well, I have a lot under my control and am able to migrate to plain Java (with or without modules) if it is required I still

Re: [osgi-dev] Maven (Tycho) cannot resolve OSGi Core bundle

2020-01-03 Thread Raymond Auge via osgi-dev
I would recommend, since you are using maven, not really using tycho for much AND in order to future proof your OSGi application you should probably migrate to bnd-*-maven-plugin(s) [1] These are better integrated with maven, maven scopes and give you a full cycle of tools to go from building to

Re: [osgi-dev] Maven (Tycho) cannot resolve OSGi Core bundle

2020-01-03 Thread Neil Bartlett via osgi-dev
I'm also extremely confused by your setup! But if you can get things working using Tycho and the org.eclipse.osgi then I guess that will have to do. My understanding was that Tycho didn't even look at the Maven dependencies specified in the POM using a section, and also it does not distinguish

Re: [osgi-dev] Maven (Tycho) cannot resolve OSGi Core bundle

2020-01-03 Thread Dirk Fauth via osgi-dev
Well afaik Tycho has its own reactor for resolving dependencies. That's why I am a bit confused about your message. If you build via Tycho you need to have a working target definition or repositories configuration. POM dependencies are not considered by default. If you update to R7 you need to

Re: [osgi-dev] Maven (Tycho) cannot resolve OSGi Core bundle

2020-01-03 Thread Martin Petzold via osgi-dev
Because I want to manage my package dependencies in the MANIFEST.MF and I want to be able to run my application in an PDE environment with a separate target platform within Eclipse. However, this post is only related to my build and not to my development environment. Am 03.01.20 um 15:11 schrieb

Re: [osgi-dev] Maven (Tycho) cannot resolve OSGi Core bundle

2020-01-03 Thread Dirk Fauth via osgi-dev
And why are you using Tycho when there is no PDE involved? Martin Petzold schrieb am Fr., 3. Jan. 2020, 15:05: > Only Maven repositories. No PDE. Plain OSGi application with my own > launcher at runtime. At runtime there is no problem. This application is > running for years and I have worked

Re: [osgi-dev] Maven (Tycho) cannot resolve OSGi Core bundle

2020-01-03 Thread Martin Petzold via osgi-dev
Only Maven repositories. No PDE. Plain OSGi application with my own launcher at runtime. At runtime there is no problem. This application is running for years and I have worked with OSGi for years now. I just have this trouble migrating to OSGi 7.0.0 and at compile / build time with Maven+Tycho.

Re: [osgi-dev] Maven (Tycho) cannot resolve OSGi Core bundle

2020-01-03 Thread Dirk Fauth via osgi-dev
And do you get the error at build time or when running your result? With Tycho you typically use PDE mechanisms to resolve dependencies, not maven dependencies. And what is your result? A plain OSGi application or a RCP application? Greez, Dirk Dirk Fauth schrieb am Fr., 3. Jan. 2020, 14:37:

Re: [osgi-dev] Maven (Tycho) cannot resolve OSGi Core bundle

2020-01-03 Thread Dirk Fauth via osgi-dev
Hi, If you are using Tycho, which repository are you using for dependency resolution? Or do you build using a target definition? If so, which eclipse software site have you configured? Greez, Dirk Martin Petzold via osgi-dev schrieb am Fr., 3. Jan. 2020, 14:20: > Dear Neil, > > thanks, but

Re: [osgi-dev] Maven (Tycho) cannot resolve OSGi Core bundle

2020-01-03 Thread Martin Petzold via osgi-dev
Dear Neil, thanks, but now we start again at the beginning at my first message (endless loop): I cannot set a dependency to "org.osgi:osgi.core" in Maven (with Tycho) because it requires 'osgi.unresolvable; (&(!(must.not.resolve=*))(must.not.resolve=*))'. Kind regards, Martin Am 03.01.20 um

Re: [osgi-dev] Maven (Tycho) cannot resolve OSGi Core bundle

2020-01-03 Thread Neil Bartlett via osgi-dev
On Fri, 3 Jan 2020 at 13:08, Martin Petzold via osgi-dev < osgi-dev@mail.osgi.org> wrote: > Okay, thanks. This is clear now. > > However, Ray told me to set the dependency for "org.eclipse.osgi" to > "runtime" scope. But how can my implementation then depend on > "org.osgi.framework" package

Re: [osgi-dev] Maven (Tycho) cannot resolve OSGi Core bundle

2020-01-03 Thread Martin Petzold via osgi-dev
Okay, thanks. This is clear now. However, Ray told me to set the dependency for "org.eclipse.osgi" to "runtime" scope. But how can my implementation then depend on "org.osgi.framework" package during compile time? Either there is a separate API bundle from OSGi Alliance containing