LPS-47505 Build services for OSGi modules

Hey Brian,

We need these changes to build services in OSGi plugins, where the service base dir is the root path instead of docroot/WEB-INF. For those plugins, we'll set the service.base.dir property to ".", while by default it remains docroot/WEB-INF.

Please backport these changes to 6.2.x.

Thx!

@juliocamarero
@migue