{% include fields.md %}
You can grab the distribution artifact, containing Brooklyn, its dependencies and launch scripts, here{% if site.brooklyn-version contains ‘SNAPSHOT’ %} (but please check the date on snapshot artifacts){% endif %}:
Just download your preferred flavour and unpack.
You can grab a single JAR containing all of Brooklyn and its dependencies here{% if site.brooklyn-version contains ‘SNAPSHOT’ %} (again please check the date on snapshot artifacts){% endif %}:
Just download your preferred flavour and add it to your classpath.
You can clone the most recent stable examples from the brooklyn-examples git repository:
{% highlight bash %} % git clone https://github.com/brooklyncentral/brooklyn-examples.git {% endhighlight %}
You can also download them from here.
If you prefer to do this from the command-line, use:
{% highlight bash %} % curl -L https://github.com/brooklyncentral/brooklyn-examples/tarball/master -o brooklyn-latest.tgz {% endhighlight %}
If you are looking for a specific version (e.g. to run examples compiled for a specific Brooklyn version) try the following command:
{% highlight bash %} % export BV=0.4.0-M2 % curl -L https://github.com/brooklyncentral/brooklyn-examples/tarball/${BV} -o brooklyn-${BV}.tgz {% endhighlight %}
Once you have the examples you can build them with maven (v3).
Note however, that you still need to have the Brooklyn installed in order to run them.
A good entry point is the Elastic Web Cluster.
If you use maven, you can add Brooklyn with the following entries in your pom:
{% highlight xml %} cloudsoft-cloudfront-releases-repo http://developers.cloudsoftcorp.com/maven/releases/ cloudsoft-cloudfront-snapshots-repo http://developers.cloudsoftcorp.com/maven/snapshots/ true never fail
<dependencies> <dependency> <groupId>io.brooklyn</groupId> <artifactId>brooklyn-all</artifactId> <version>{{ site.brooklyn-version }}</version> </dependency> </dependencies>
{% endhighlight %}
Brooklyn-All (used above) brings in all dependencies, including jclouds and Apache Whirr. If you prefer a smaller repo you might want just brooklyn-core
, brooklyn-policies
, and some of: brooklyn-software-webapp
, brooklyn-software-database
, brooklyn-software-messaging
, brooklyn-systems-hadoop
. (Browse the full list here.)
TODO: we are moving to mavencentral so the repositories section will shortly be unnecessary
Full source is at github.com/brooklyncentral/brooklyn. Information on working with the source is [here]({{ site.url }}/dev/code).
Alternatively you can download archives of the source directly: