On Tue, 2018-02-27 at 17:09 +0100, Oliver Lietz wrote:
> > Well, let's try and avoid that :-)
> > 
> > Could we either:
> > 
> > 1) Create a profile in the parent pom, activated for bundle
> > projects,
> > which adds the OSGi dependencies?
> > 
> > 2) Create a 'non-OSGi' parent POM (A) and an 'OSGi' parent POM (B),
> > where A is the parent of B. This way we could use the parent POM in
> > different projects without getting any clashes.
> 
> We could use the bundle profile but that "requires" switching to bnd
> Maven 
> Plugin (or at least placing a file bnd.bnd in the module).

Well, I assume that using the bnd.bnd file is another manual transition
that we must do, right? If that is the case we should discuss it on the
dev list before committing to another migration.

Maybe we can have a compromise and require a property in the pom, e.g. 

  <properties>
    <sling.bundle>true</sling.bundle>
  </properties>

That property will activate the OSGi-related profile from the parent
pom.

Not ideal but still better than copy/pasting considerably more
dependency versions.

Robert

Reply via email to