How to setup your environment for editing configuration files ?
Enable auto-completion and inline documentation:
  • XML: associate the namespace of the configuration language to its schema
  • XPath: if you use an IDE by Jetbrains:
    • Set language injection by importing this file
    • Add Lavoisier XPath functions by replacing {jetbrains_install_dir}/plugins/xpath/lib/xpath.jar with the patched file for IDEA or PhpStorm.

How to configure Lavoisier 2 for HTTPS ?
Add standard keyStore properties to file lavoisier-service.properties:
  • javax.net.ssl.trustStore refers to a JKS file containing the trusted Certificate Authority chains.
  • javax.net.ssl.trustStorePassword is the password protecting the trustStore JKS file.
  • javax.net.ssl.keyStore refers to a JKS file containing the server certificate (both public and private keys).
  • javax.net.ssl.keyStorePassword is the password protecting both the keyStore JKS file and the server private key.

How to convert crt/key files pair to a PKCS12 file?
openssl pkcs12 -export -in localhost.crt -inkey localhost.key -out server_cert.p12
How to create a new adaptor module ?
  1. Download and install a Java Development Kit
  2. Download and install Apache Maven
  3. Download and install the maven archetype files:
    mvn install:install-file -Dfile=maven-archetype-lavoisier-1.0.jar -DpomFile=maven-archetype-lavoisier-1.0.pom -Dpackaging=jar
  4. Create your module:
    mvn archetype:generate -DarchetypeArtifactId=maven-archetype-lavoisier