Re: Services defined in dependency are not ignore by karaf-services-maven-plugin. Bug?

2020-07-13 Thread Paul Spencer
JB, > On Jul 13, 2020, at 12:40 AM, Jean-Baptiste Onofre wrote: > > Hi Paul, > > Not sure I fully understand what you mean, but ignoring Activator from a > command perspective is by design. You say Activators are ignored by design, so why are services treated differently? > > The plugin s

Re: org.apache.karaf.specs.locator not found

2020-07-13 Thread Jean-Baptiste Onofre
Hi Alex, I don’t see this error on Jenkins, so I guess this error is in your itest. Can you share a simple project to reproduce ? By the way, I added karaf user mailing list as it’s Karaf related. Thanks, Regards JB > Le 13 juil. 2020 à 18:11, Alex Soto a écrit : > > With Karaf 4.2.9 and Pax

Re: [WARNING] Bundle ...: Split package, multiple jars provide the same package:org/apache/karaf/util/tracker?

2020-07-13 Thread Jean-Baptiste Onofre
You are mixing BaseActivator and Command. BaseActivator is useless in term of command. Just use the karaf-service-maven-plugin as describe in the example: https://github.com/apache/karaf/blob/master/examples/karaf-command-example/karaf-command-example-command/pom.xml

Re: Services defined in dependency are not ignore by karaf-services-maven-plugin. Bug?

2020-07-13 Thread Jean-Baptiste Onofre
I understand now, you are mixing BaseActivator and karaf-services-maven-plugin. If you use Karaf-services-maven-plugin, you should not use the Activator for command (only for services, tracker, etc). Regards JB > Le 13 juil. 2020 à 14:56, Paul Spencer a écrit : > > JB, > > >> On Jul 13, 202

Re: [WARNING] Bundle ...: Split package, multiple jars provide the same package:org/apache/karaf/util/tracker?

2020-07-13 Thread Paul Spencerx
JB, Removing the org.apache.karaf.util dependency result in the following compilation error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project ewm-scheduler: Compilation failure: Compilation failure: [ERROR] /.../internal/Ac

Re: Services defined in dependency are not ignore by karaf-services-maven-plugin. Bug?

2020-07-13 Thread Paul Spencer
JB, I was expecting this. The use of an Activator in bundle that uses karaf-services-maven-plugin is not discussed in the documenting or JavaDoc. I recommend adding a warning along the lines of "The use of an Activator is not recommend when karaf-services-maven-plugin is used." where ever kara

Re: org.apache.karaf.specs.locator not found

2020-07-13 Thread Alex Soto
I am sorry I posted this to the wrong mailing list. Best regards, Alex soto > On Jul 13, 2020, at 12:22 PM, Jean-Baptiste Onofre wrote: > > Hi Alex, > > I don’t see this error on Jenkins, so I guess this error is in your itest. > > Can you share a simple project to reproduce ? > > By the

Fwd: org.apache.karaf.specs.locator not found

2020-07-13 Thread Alex Soto
I am sorry I posted this to the wrong mailing list. Best regards, Alex soto > Begin forwarded message: > > From: Alex Soto > Subject: Re: org.apache.karaf.specs.locator not found > Date: July 13, 2020 at 1:38:18 PM EDT > To: MailList > > Answering my own question… > > The karaf.version sy

Re: Question about @Reference Karaf Command annotation

2020-07-13 Thread Paul Spencerx
JB, What is the status of your checking? @Reference for commands is not working for me either. I have included related code and output from Karaf below. *** * Testing commands *** karaf@root()> color --help SUBSHELL color COMMANDS color:get-any Get any Service color:get-blue