Using other libraries beyond those shipped with bemokoLive
Importing other libs
Other libs can be used in a site by defining them in the lib element of the site configuration and place the jars in an external lib location as defined in the platform configuration.
Define external lib location
Either in your live-config.xml:
<live>
...
<lib>
<location>/var/bemoko/lib</location>
</lib>
...
</live>
or via a JVM parameter, e.g.
-Dbemoko.lib.location=/var/bemoko/lib
Copy jars into you lib location
Copy jars you want to be made available into the lib location you have defined above following the naming convention
module-version.jar
where module and the version is the name and version of your jar as defined in the site configuration below).
Using these external jars in a site
Register the jars that you want to be made available in your site configuration
<site>
...
<lib>
<jar module="apache-mime4j" group="org.apache.james" version="0.6"/>
<jar module="cssparser" group="net.sourceforge.cssparser" version="0.9.5"/>
<jar module="htmlunit" group="net.sourceforge.htmlunit" version="2.8"/>
<jar module="htmlunit-core-js" group="net.sourceforge.htmlunit" version="2.8"/>
<jar module="httpclient" group="org.apache.httpcomponents" version="4.0.1"/>
<jar module="httpmime" group="org.apache.httpcomponents" version="4.0.1"/>
<jar module="sac" group="org.w3c.css" version="1.3"/>
<jar module="xalan" group="xalan" version="2.7.1"/>
<jar module="serializer" group="xalan" version="2.7.1"/>
</lib>
...
</site>