Hi All-

With the move towards bundles, people have been experimenting with project structure, and there seem to be two schools:

(1) use maven, include a `pom.xml` in root, and put the `catalog.bom` and blueprints into either `src/main/resources/` or a custom resources directory eg `catalog/`

(2) put `catalog.bom` in root, and have yaml blueprint files, and scripts and other resources, in whatever structure underneath makes sense

Both have benefits. For instance with (2) you can deploy straight from the root, or even `br catalog add https://github.com/brooklyncentral/brooklyn-dns/archive/master.zip`, and it's obvious where the entry point is. With (1) you can build and install to maven, and access the dependency as `mvn:...` URLs in karaf; and it of course becomes very useful when including java.

I've done some experimenting at [1] on a pom.xml configuration that works with (2). This means a blueprint developer can do what they like without ever touching maven, not having a pom.xml, etc. Then if they want maven at some point it can be added on without having to change anything else in the project. It also means community blueprints can be used as (1) or as (2), and people looking at them just look at the subset of bom and yaml files that are the blueprint and it will be sensible, without any odd structure imposed by maven. And we can encourage putting a `catalog.bom` in the root of every project on the planet so there is never ever any question about how to deploy software ever again. :)

Is this structure something we should converge on as a recommendation for blueprints projects? Basically I'm proposing we say (2) is _always_ best practice, even when is needed (1), and we have (one so far and more to follow if we like this) exemplars for how to structure projects.

Best
Alex


[1]  https://github.com/brooklyncentral/brooklyn-dns/pull/7

Reply via email to