Skip to content

pallet/java-crate

Repository files navigation

Repository · Issues · API docs · Annotated source · Release Notes

Install and configure java.

Dependency Information

:dependencies [[com.palletops/java-crate "0.8.0-beta.6"]]

Releases

PalletCrate VersionRepoGroupId
0.8.0-RC.4 0.8.0-beta.6 clojars com.palletops Release Notes Source
0.7 0.7.1 sonatype org.cloudhoist Release Notes Source
0.6 0.5.1 sonatype org.cloudhoist Release Notes Source
0.5 0.5.1 sonatype org.cloudhoist Release Notes Source
0.8-alpha.7 0.8.0-alpha.1 sonatype org.cloudhoist Release Notes Source
0.8-alpha.8 0.8.0-alpha.2 sonatype org.cloudhoist Release Notes Source

Server Spec

The java crate defines the server-spec function, that takes a settings map and returns a server-spec for installing java. You can use this in a group-spec or server-spec.

(group-spec "my-node-with-java"
  :extends [(pallet.crate.java/server-spec {})])

The default server-spec uses the :settings and :install phase, so remember to add the :install phase when lifting or converging a node including this crate.

Settings

The java crate uses the following settings:

:vendor one of #{:openjdk :oracle :sun}

:components a set of #{:jdk :jre}

:strategy allows override of the install strategy (:packages, :package-source, :rpm or :debs)

:version specify the java version to install

:packages the packages that are used to install

:package-source a non-default package source for the packages

:rpm takes a map of remote-file options specifying a self-extracting rpm file to install

:debs takes a map of remote-directory options specifying an archive of deb files to install. The archive should have no top level directory.

:local-file, :url, etc takes the location of a tar file containing a java binary distribution

Support

On the group, or #pallet on freenode irc.

License

Licensed under EPL

Copyright 2010, 2011, 2012, 2013 Hugo Duncan.