Github user aledsage commented on the issue:
https://github.com/apache/brooklyn-server/pull/884
I tried correcting the `Package-Import`, building brooklyn karaf dist, and
starting it. It failed to install the `brooklyn-cli` bundle because
`brooklyn-launcher` is not included in the dist:
```
2017-11-08T08:51:51,254 ERROR 9 o.a.k.f.i.s.BootFeaturesInstaller
[pool-1-thread-2] Error installing boot features
org.osgi.service.resolver.ResolutionException: Unable to resolve root:
missing requirement [root] osgi.identity; osgi.identity=brooklyn-headless;
type=karaf.feature; version=0;
filter:="(&(osgi.identity=brooklyn-headless)(type=karaf.feature)(version>=0.0.0))"
[caused by: Unable to resolve brooklyn-headless/1.0.0.SNAPSHOT: missing
requirement [brooklyn-headless/1.0.0.SNAPSHOT] osgi.identity;
osgi.identity=brooklyn-server-software-all; type=karaf.feature [caused by:
Unable to resolve brooklyn-server-software-all/1.0.0.SNAPSHOT: missing
requirement [brooklyn-server-software-all/1.0.0.SNAPSHOT] osgi.identity;
osgi.identity=brooklyn-cli; type=karaf.feature [caused by: Unable to resolve
brooklyn-cli/1.0.0.SNAPSHOT: missing requirement [brooklyn-cli/1.0.0.SNAPSHOT]
osgi.identity; osgi.identity=org.apache.brooklyn.cli; type=osgi.bundle;
version="[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]"; resolution:=mandatory [caused by:
Unable to resolve org.apache.brooklyn.cli/1.0.0.SNAPSHOT: missing requiremen
t [org.apache.brooklyn.cli/1.0.0.SNAPSHOT] osgi.wiring.package;
filter:="(&(osgi.wiring.package=org.apache.brooklyn.launcher)(version>=1.0.0)(!(version>=2.0.0)))"]]]]
```
I think we should back off from including `brooklyn-cli`, and just move the
catalog items.
I'm torn as to where the best place is - they are really just aliases for
other catalog items, including for nginx in `brooklyn-software-webapp` in the
`brooklyn-library` repo. Options include:
1. Create a new module, such as
`org.apache.brooklyn:brooklyn-catalog-aliases` in
`brooklyn-library/catalog-aliases` (and include it in
`brooklyn-library/karaf/catalog/src/main/resources/catalog.bom`)
2. Add it to an existing bundle, such as `brooklyn-core` (_don't like
because that shouldn't know about nginx) or `brooklyn-software-webapp` (_don't
like because `server` etc is nothing to do with webapps_)
3. Create a new `catalog-aliases.bom` in
`brooklyn-dist/karaf/config/src/main/resources/catalog/` (i.e. next to
`catalog-templates.bom`). _don't like that, because it should be in a bundle._
On balance, I favour option 1: the new module.
Thoughts @Graeme-Miller @ahgittin @tbouron?
---