You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Robert Munteanu <ro...@apache.org> on 2017/10/06 08:34:38 UTC

Should the maven-sling-plugin check if the bundle deployment was successful?

Hi,

I was just wondering whether deploying a bundle with the Maven plugin
should also check if the bundle could be started. It would definitely
be helpful.

We technically have access to the bundle name and version from the jar
file and can use the the OSGi console REST APIs to poll for the bundle
state, for a bounded period of time.

Thoughts?

Robert

Re: Should the maven-sling-plugin check if the bundle deployment was successful?

Posted by Robert Munteanu <ro...@apache.org>.
On Fri, 2017-10-06 at 11:16 +0200, Karl Pauls wrote:
> On Fri, Oct 6, 2017 at 10:43 AM, Stefan Seifert <sseifert@pro-vision.
> de> wrote:
> > yes, in think this would be helpful.
> > could be configurable, but by default it should be switched on.
> > if deployment was not succesfull the "install" goal could fail with
> > an build error
> 
> Yes please!
> 

I created a Jira issue for this so it is not forgotten

  https://issues.apache.org/jira/browse/SLING-7562

Robert

Re: Should the maven-sling-plugin check if the bundle deployment was successful?

Posted by Karl Pauls <ka...@gmail.com>.
On Fri, Oct 6, 2017 at 10:43 AM, Stefan Seifert <ss...@pro-vision.de> wrote:
> yes, in think this would be helpful.
> could be configurable, but by default it should be switched on.
> if deployment was not succesfull the "install" goal could fail with an build error

Yes please!

regards,

Karl

> stefan
>
>>-----Original Message-----
>>From: Robert Munteanu [mailto:rombert@apache.org]
>>Sent: Friday, October 6, 2017 10:35 AM
>>To: dev@sling.apache.org
>>Subject: Should the maven-sling-plugin check if the bundle deployment was
>>successful?
>>
>>Hi,
>>
>>I was just wondering whether deploying a bundle with the Maven plugin
>>should also check if the bundle could be started. It would definitely
>>be helpful.
>>
>>We technically have access to the bundle name and version from the jar
>>file and can use the the OSGi console REST APIs to poll for the bundle
>>state, for a bounded period of time.
>>
>>Thoughts?
>>
>>Robert
>



-- 
Karl Pauls
karlpauls@gmail.com

RE: Should the maven-sling-plugin check if the bundle deployment was successful?

Posted by Stefan Seifert <ss...@pro-vision.de>.
yes, in think this would be helpful.
could be configurable, but by default it should be switched on.
if deployment was not succesfull the "install" goal could fail with an build error

stefan

>-----Original Message-----
>From: Robert Munteanu [mailto:rombert@apache.org]
>Sent: Friday, October 6, 2017 10:35 AM
>To: dev@sling.apache.org
>Subject: Should the maven-sling-plugin check if the bundle deployment was
>successful?
>
>Hi,
>
>I was just wondering whether deploying a bundle with the Maven plugin
>should also check if the bundle could be started. It would definitely
>be helpful.
>
>We technically have access to the bundle name and version from the jar
>file and can use the the OSGi console REST APIs to poll for the bundle
>state, for a bounded period of time.
>
>Thoughts?
>
>Robert