You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Christian Schneider <ch...@die-schneider.net> on 2019/01/31 16:14:28 UTC

[Discuss] Remove some dependencies from health checks core

Health checks core has a few dependencies that I think we should remove
before the release:

- commons-lang

Is used in quite a few places but just for very simple things. I think we
can work without it.

- commons-cli
- org.apache.felix.utils

These are used in the HttpRequestsCheck. It would be difficult to provide
the same check without them.
Because of these dependencies I would regard this check non core and move
it to its own bundle.

Christian

-- 
-- 
Christian Schneider
http://www.liquid-reality.de

Computer Scientist
http://www.adobe.com

Re: [Discuss] Remove some dependencies from health checks core

Posted by Christian Schneider <ch...@die-schneider.net>.
I just found that commons-cli and felix utils are inlined .. so I think
they are less severe.

Christian

Am Do., 31. Jan. 2019 um 17:14 Uhr schrieb Christian Schneider <
chris@die-schneider.net>:

> Health checks core has a few dependencies that I think we should remove
> before the release:
>
> - commons-lang
>
> Is used in quite a few places but just for very simple things. I think we
> can work without it.
>
> - commons-cli
> - org.apache.felix.utils
>
> These are used in the HttpRequestsCheck. It would be difficult to provide
> the same check without them.
> Because of these dependencies I would regard this check non core and move
> it to its own bundle.
>
> Christian
>
> --
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Computer Scientist
> http://www.adobe.com
>
>
>

-- 
-- 
Christian Schneider
http://www.liquid-reality.de

Computer Scientist
http://www.adobe.com

Re: [Discuss] Remove some dependencies from health checks core

Posted by Raymond Auge <ra...@liferay.com>.
hm, ok! Good enough.

-Ray

On Thu, Jan 31, 2019 at 4:31 PM Karl Pauls <ka...@gmail.com> wrote:

> org.apache.felix.healthcheck.api-2.0.0 is part of the release:
>
>
> https://repository.apache.org/content/repositories/orgapachefelix-1279/org/apache/felix/org.apache.felix.healthcheck.api/2.0.0/
>
> You have to build it first - then the rest should work (it did for me).
>
> regards,
>
> Karl
>
>
> On Thu, Jan 31, 2019 at 10:11 PM Raymond Auge <ra...@liferay.com>
> wrote:
> >
> > Why do the modules org.apache.felix.healthcheck.core depend on
> >
> >         <dependency>
> >             <groupId>org.apache.felix</groupId>
> >             <artifactId>org.apache.felix.healthcheck.api</artifactId>
> >             <version>2.0.0</version>
> >             <scope>provided</scope>
> >         </dependency>
> >
> > when that artifact does not exist?
> >
> > I only see a 2.0.1-SNAPSHOT
> >
> > Same goes for org.apache.felix.healthcheck.generalchecks and
> > org.apache.felix.healthcheck.webconsoleplugin
> >
> > The project doesn't build.
> >
> > - Ray
> >
> >
> >
> > On Thu, Jan 31, 2019 at 11:46 AM Christian Schneider <
> > chris@die-schneider.net> wrote:
> >
> > > I just looked through hc core .. I first only looked into general
> checks
> > > (confused the names in my first mail).
> > >
> > > The usage of commons lang there is much broader. So I agree it can not
> be
> > > removed easily.
> > > So let`s keep it for now. We can still make this lighter later.
> > >
> > > Christian
> > >
> > >
> > > Am Do., 31. Jan. 2019 um 17:37 Uhr schrieb Georg Henzler <
> > > felix@ghenzler.de
> > > >:
> > >
> > > > Hi Christian,
> > > >
> > > > the dependencies of bundle HC core [1] are
> > > >
> > > > * org.apache.felix.healthcheck.api
> > > > * slf4j-api
> > > > * javax.servlet-api
> > > > * commons-lang
> > > >
> > > > I thought the same as you three weeks ago and had a try removing
> > > > commons-lang, but then for the AEM use case it does not make sense at
> > > > all since the servlet API and commons lang are both assigned to start
> > > > level 5 (and that startlevel is reached within the first second of
> > > > startup). For other use cases I think common-lang is such an
> omnipresent
> > > > and small dependency that does not cause trouble.
> > > >
> > > > the maven dependencies commons-cli and org.apache.felix.utils of
> bundle
> > > > HC general checks (which is optional in itself) do not introduce OSGi
> > > > dependencies since they are using the Conditional-Package mechanism
> [2].
> > > >
> > > > -Georg
> > > >
> > > > [1]
> > > >
> > > >
> > >
> http://svn.apache.org/viewvc/felix/trunk/healthcheck/core/pom.xml?revision=1852326&view=markup
> > > > [2]
> > > >
> > > >
> > >
> http://svn.apache.org/viewvc/felix/trunk/healthcheck/generalchecks/bnd.bnd?revision=1852182&view=markup#l11
> > > >
> > > > On 2019-01-31 17:14, Christian Schneider wrote:
> > > > > Health checks core has a few dependencies that I think we should
> remove
> > > > > before the release:
> > > > >
> > > > > - commons-lang
> > > > >
> > > > > Is used in quite a few places but just for very simple things. I
> think
> > > > > we
> > > > > can work without it.
> > > > >
> > > > > - commons-cli
> > > > > - org.apache.felix.utils
> > > > >
> > > > > These are used in the HttpRequestsCheck. It would be difficult to
> > > > > provide
> > > > > the same check without them.
> > > > > Because of these dependencies I would regard this check non core
> and
> > > > > move
> > > > > it to its own bundle.
> > > > >
> > > > > Christian
> > > > >
> > > > > --
> > > >
> > >
> > >
> > > --
> > > --
> > > Christian Schneider
> > > http://www.liquid-reality.de
> > >
> > > Computer Scientist
> > > http://www.adobe.com
> > >
> >
> >
> > --
> > *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
> >  (@rotty3000)
> > Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
> >  (@Liferay)
> > Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org>
> (@OSGiAlliance)
>
>
>
> --
> Karl Pauls
> karlpauls@gmail.com
>


-- 
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)

Re: [Discuss] Remove some dependencies from health checks core

Posted by Karl Pauls <ka...@gmail.com>.
org.apache.felix.healthcheck.api-2.0.0 is part of the release:

https://repository.apache.org/content/repositories/orgapachefelix-1279/org/apache/felix/org.apache.felix.healthcheck.api/2.0.0/

You have to build it first - then the rest should work (it did for me).

regards,

Karl


On Thu, Jan 31, 2019 at 10:11 PM Raymond Auge <ra...@liferay.com> wrote:
>
> Why do the modules org.apache.felix.healthcheck.core depend on
>
>         <dependency>
>             <groupId>org.apache.felix</groupId>
>             <artifactId>org.apache.felix.healthcheck.api</artifactId>
>             <version>2.0.0</version>
>             <scope>provided</scope>
>         </dependency>
>
> when that artifact does not exist?
>
> I only see a 2.0.1-SNAPSHOT
>
> Same goes for org.apache.felix.healthcheck.generalchecks and
> org.apache.felix.healthcheck.webconsoleplugin
>
> The project doesn't build.
>
> - Ray
>
>
>
> On Thu, Jan 31, 2019 at 11:46 AM Christian Schneider <
> chris@die-schneider.net> wrote:
>
> > I just looked through hc core .. I first only looked into general checks
> > (confused the names in my first mail).
> >
> > The usage of commons lang there is much broader. So I agree it can not be
> > removed easily.
> > So let`s keep it for now. We can still make this lighter later.
> >
> > Christian
> >
> >
> > Am Do., 31. Jan. 2019 um 17:37 Uhr schrieb Georg Henzler <
> > felix@ghenzler.de
> > >:
> >
> > > Hi Christian,
> > >
> > > the dependencies of bundle HC core [1] are
> > >
> > > * org.apache.felix.healthcheck.api
> > > * slf4j-api
> > > * javax.servlet-api
> > > * commons-lang
> > >
> > > I thought the same as you three weeks ago and had a try removing
> > > commons-lang, but then for the AEM use case it does not make sense at
> > > all since the servlet API and commons lang are both assigned to start
> > > level 5 (and that startlevel is reached within the first second of
> > > startup). For other use cases I think common-lang is such an omnipresent
> > > and small dependency that does not cause trouble.
> > >
> > > the maven dependencies commons-cli and org.apache.felix.utils of bundle
> > > HC general checks (which is optional in itself) do not introduce OSGi
> > > dependencies since they are using the Conditional-Package mechanism [2].
> > >
> > > -Georg
> > >
> > > [1]
> > >
> > >
> > http://svn.apache.org/viewvc/felix/trunk/healthcheck/core/pom.xml?revision=1852326&view=markup
> > > [2]
> > >
> > >
> > http://svn.apache.org/viewvc/felix/trunk/healthcheck/generalchecks/bnd.bnd?revision=1852182&view=markup#l11
> > >
> > > On 2019-01-31 17:14, Christian Schneider wrote:
> > > > Health checks core has a few dependencies that I think we should remove
> > > > before the release:
> > > >
> > > > - commons-lang
> > > >
> > > > Is used in quite a few places but just for very simple things. I think
> > > > we
> > > > can work without it.
> > > >
> > > > - commons-cli
> > > > - org.apache.felix.utils
> > > >
> > > > These are used in the HttpRequestsCheck. It would be difficult to
> > > > provide
> > > > the same check without them.
> > > > Because of these dependencies I would regard this check non core and
> > > > move
> > > > it to its own bundle.
> > > >
> > > > Christian
> > > >
> > > > --
> > >
> >
> >
> > --
> > --
> > Christian Schneider
> > http://www.liquid-reality.de
> >
> > Computer Scientist
> > http://www.adobe.com
> >
>
>
> --
> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
>  (@rotty3000)
> Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
>  (@Liferay)
> Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)



--
Karl Pauls
karlpauls@gmail.com

Re: [Discuss] Remove some dependencies from health checks core

Posted by Christian Schneider <ch...@die-schneider.net>.
This is not unusual during a release but it makes building from current
source a bit difficult.

Christian

Am Do., 31. Jan. 2019 um 22:11 Uhr schrieb Raymond Auge <
raymond.auge@liferay.com>:

> Why do the modules org.apache.felix.healthcheck.core depend on
>
>         <dependency>
>             <groupId>org.apache.felix</groupId>
>             <artifactId>org.apache.felix.healthcheck.api</artifactId>
>             <version>2.0.0</version>
>             <scope>provided</scope>
>         </dependency>
>
> when that artifact does not exist?
>
> I only see a 2.0.1-SNAPSHOT
>
> Same goes for org.apache.felix.healthcheck.generalchecks and
> org.apache.felix.healthcheck.webconsoleplugin
>
> The project doesn't build.
>
> - Ray
>
>
>
> On Thu, Jan 31, 2019 at 11:46 AM Christian Schneider <
> chris@die-schneider.net> wrote:
>
> > I just looked through hc core .. I first only looked into general checks
> > (confused the names in my first mail).
> >
> > The usage of commons lang there is much broader. So I agree it can not be
> > removed easily.
> > So let`s keep it for now. We can still make this lighter later.
> >
> > Christian
> >
> >
> > Am Do., 31. Jan. 2019 um 17:37 Uhr schrieb Georg Henzler <
> > felix@ghenzler.de
> > >:
> >
> > > Hi Christian,
> > >
> > > the dependencies of bundle HC core [1] are
> > >
> > > * org.apache.felix.healthcheck.api
> > > * slf4j-api
> > > * javax.servlet-api
> > > * commons-lang
> > >
> > > I thought the same as you three weeks ago and had a try removing
> > > commons-lang, but then for the AEM use case it does not make sense at
> > > all since the servlet API and commons lang are both assigned to start
> > > level 5 (and that startlevel is reached within the first second of
> > > startup). For other use cases I think common-lang is such an
> omnipresent
> > > and small dependency that does not cause trouble.
> > >
> > > the maven dependencies commons-cli and org.apache.felix.utils of bundle
> > > HC general checks (which is optional in itself) do not introduce OSGi
> > > dependencies since they are using the Conditional-Package mechanism
> [2].
> > >
> > > -Georg
> > >
> > > [1]
> > >
> > >
> >
> http://svn.apache.org/viewvc/felix/trunk/healthcheck/core/pom.xml?revision=1852326&view=markup
> > > [2]
> > >
> > >
> >
> http://svn.apache.org/viewvc/felix/trunk/healthcheck/generalchecks/bnd.bnd?revision=1852182&view=markup#l11
> > >
> > > On 2019-01-31 17:14, Christian Schneider wrote:
> > > > Health checks core has a few dependencies that I think we should
> remove
> > > > before the release:
> > > >
> > > > - commons-lang
> > > >
> > > > Is used in quite a few places but just for very simple things. I
> think
> > > > we
> > > > can work without it.
> > > >
> > > > - commons-cli
> > > > - org.apache.felix.utils
> > > >
> > > > These are used in the HttpRequestsCheck. It would be difficult to
> > > > provide
> > > > the same check without them.
> > > > Because of these dependencies I would regard this check non core and
> > > > move
> > > > it to its own bundle.
> > > >
> > > > Christian
> > > >
> > > > --
> > >
> >
> >
> > --
> > --
> > Christian Schneider
> > http://www.liquid-reality.de
> >
> > Computer Scientist
> > http://www.adobe.com
> >
>
>
> --
> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
>  (@rotty3000)
> Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
>  (@Liferay)
> Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org>
> (@OSGiAlliance)
>


-- 
-- 
Christian Schneider
http://www.liquid-reality.de

Computer Scientist
http://www.adobe.com

Re: [Discuss] Remove some dependencies from health checks core

Posted by Raymond Auge <ra...@liferay.com>.
Why do the modules org.apache.felix.healthcheck.core depend on

        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.healthcheck.api</artifactId>
            <version>2.0.0</version>
            <scope>provided</scope>
        </dependency>

when that artifact does not exist?

I only see a 2.0.1-SNAPSHOT

Same goes for org.apache.felix.healthcheck.generalchecks and
org.apache.felix.healthcheck.webconsoleplugin

The project doesn't build.

- Ray



On Thu, Jan 31, 2019 at 11:46 AM Christian Schneider <
chris@die-schneider.net> wrote:

> I just looked through hc core .. I first only looked into general checks
> (confused the names in my first mail).
>
> The usage of commons lang there is much broader. So I agree it can not be
> removed easily.
> So let`s keep it for now. We can still make this lighter later.
>
> Christian
>
>
> Am Do., 31. Jan. 2019 um 17:37 Uhr schrieb Georg Henzler <
> felix@ghenzler.de
> >:
>
> > Hi Christian,
> >
> > the dependencies of bundle HC core [1] are
> >
> > * org.apache.felix.healthcheck.api
> > * slf4j-api
> > * javax.servlet-api
> > * commons-lang
> >
> > I thought the same as you three weeks ago and had a try removing
> > commons-lang, but then for the AEM use case it does not make sense at
> > all since the servlet API and commons lang are both assigned to start
> > level 5 (and that startlevel is reached within the first second of
> > startup). For other use cases I think common-lang is such an omnipresent
> > and small dependency that does not cause trouble.
> >
> > the maven dependencies commons-cli and org.apache.felix.utils of bundle
> > HC general checks (which is optional in itself) do not introduce OSGi
> > dependencies since they are using the Conditional-Package mechanism [2].
> >
> > -Georg
> >
> > [1]
> >
> >
> http://svn.apache.org/viewvc/felix/trunk/healthcheck/core/pom.xml?revision=1852326&view=markup
> > [2]
> >
> >
> http://svn.apache.org/viewvc/felix/trunk/healthcheck/generalchecks/bnd.bnd?revision=1852182&view=markup#l11
> >
> > On 2019-01-31 17:14, Christian Schneider wrote:
> > > Health checks core has a few dependencies that I think we should remove
> > > before the release:
> > >
> > > - commons-lang
> > >
> > > Is used in quite a few places but just for very simple things. I think
> > > we
> > > can work without it.
> > >
> > > - commons-cli
> > > - org.apache.felix.utils
> > >
> > > These are used in the HttpRequestsCheck. It would be difficult to
> > > provide
> > > the same check without them.
> > > Because of these dependencies I would regard this check non core and
> > > move
> > > it to its own bundle.
> > >
> > > Christian
> > >
> > > --
> >
>
>
> --
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Computer Scientist
> http://www.adobe.com
>


-- 
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)

Re: [Discuss] Remove some dependencies from health checks core

Posted by Christian Schneider <ch...@die-schneider.net>.
I just looked through hc core .. I first only looked into general checks
(confused the names in my first mail).

The usage of commons lang there is much broader. So I agree it can not be
removed easily.
So let`s keep it for now. We can still make this lighter later.

Christian


Am Do., 31. Jan. 2019 um 17:37 Uhr schrieb Georg Henzler <felix@ghenzler.de
>:

> Hi Christian,
>
> the dependencies of bundle HC core [1] are
>
> * org.apache.felix.healthcheck.api
> * slf4j-api
> * javax.servlet-api
> * commons-lang
>
> I thought the same as you three weeks ago and had a try removing
> commons-lang, but then for the AEM use case it does not make sense at
> all since the servlet API and commons lang are both assigned to start
> level 5 (and that startlevel is reached within the first second of
> startup). For other use cases I think common-lang is such an omnipresent
> and small dependency that does not cause trouble.
>
> the maven dependencies commons-cli and org.apache.felix.utils of bundle
> HC general checks (which is optional in itself) do not introduce OSGi
> dependencies since they are using the Conditional-Package mechanism [2].
>
> -Georg
>
> [1]
>
> http://svn.apache.org/viewvc/felix/trunk/healthcheck/core/pom.xml?revision=1852326&view=markup
> [2]
>
> http://svn.apache.org/viewvc/felix/trunk/healthcheck/generalchecks/bnd.bnd?revision=1852182&view=markup#l11
>
> On 2019-01-31 17:14, Christian Schneider wrote:
> > Health checks core has a few dependencies that I think we should remove
> > before the release:
> >
> > - commons-lang
> >
> > Is used in quite a few places but just for very simple things. I think
> > we
> > can work without it.
> >
> > - commons-cli
> > - org.apache.felix.utils
> >
> > These are used in the HttpRequestsCheck. It would be difficult to
> > provide
> > the same check without them.
> > Because of these dependencies I would regard this check non core and
> > move
> > it to its own bundle.
> >
> > Christian
> >
> > --
>


-- 
-- 
Christian Schneider
http://www.liquid-reality.de

Computer Scientist
http://www.adobe.com

Re: [Discuss] Remove some dependencies from health checks core

Posted by Georg Henzler <fe...@ghenzler.de>.
Hi Christian,

the dependencies of bundle HC core [1] are

* org.apache.felix.healthcheck.api
* slf4j-api
* javax.servlet-api
* commons-lang

I thought the same as you three weeks ago and had a try removing 
commons-lang, but then for the AEM use case it does not make sense at 
all since the servlet API and commons lang are both assigned to start 
level 5 (and that startlevel is reached within the first second of 
startup). For other use cases I think common-lang is such an omnipresent 
and small dependency that does not cause trouble.

the maven dependencies commons-cli and org.apache.felix.utils of bundle 
HC general checks (which is optional in itself) do not introduce OSGi 
dependencies since they are using the Conditional-Package mechanism [2].

-Georg

[1] 
http://svn.apache.org/viewvc/felix/trunk/healthcheck/core/pom.xml?revision=1852326&view=markup
[2] 
http://svn.apache.org/viewvc/felix/trunk/healthcheck/generalchecks/bnd.bnd?revision=1852182&view=markup#l11

On 2019-01-31 17:14, Christian Schneider wrote:
> Health checks core has a few dependencies that I think we should remove
> before the release:
> 
> - commons-lang
> 
> Is used in quite a few places but just for very simple things. I think 
> we
> can work without it.
> 
> - commons-cli
> - org.apache.felix.utils
> 
> These are used in the HttpRequestsCheck. It would be difficult to 
> provide
> the same check without them.
> Because of these dependencies I would regard this check non core and 
> move
> it to its own bundle.
> 
> Christian
> 
> --