You can grab the distribution artifact, containing Brooklyn, its dependencies and launch scripts, here:
Just download your preferred flavour and unpack.
You can grab a single JAR containing all of Brooklyn and its dependencies here:
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 (versions of the examples are aligned with Brooklyn non-snapshot releases) try the following command:
{% highlight bash %} % curl -L https://github.com/brooklyncentral/brooklyn-examples/tarball/0.4.0-M2 -o brooklyn-0.4.0-M2.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-releases http://developers.cloudsoftcorp.com/download/maven2/ libs-snapshot-local http://ccweb.cloudsoftcorp.com/maven/libs-snapshot-local/ true never fail
<dependencies> <dependency> <groupId>io.brooklyn</groupId> <artifactId>brooklyn-all</artifactId> <version>${project.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: