This is a sample plugin to test CDI integration with Nuxeo service platform.
For now it does not much, but it runs CDI/JSF2 components from a Nuxeo bundle deployed in a Nuxeo server ... that's a start ...
$ cd /my/workspaces/nuxeo
$ git co feature-NXP-8977-cdi-sample
$ mvn clean install -N
$ cd nuxeo-jsf
$ git co feature-NXP-8977-cdi-sample
$ mvn -Dmaven.test.skip=true clean install
$ mvn clean install -Pdist
You will end up with a full distribution
nuxeo-cdi-1.0-SNAPSHOT-tomcat.zip
in the
nuxeo-cdi-distribution/target
folder. This distribution is running
CDI / JSF2 components on a customized Nuxeo Core Server distribution.
The nuxeo-cdi-sample
bundle is already deployed.
See the nuxeo-cdi-distribution/src/main/assemble/assembly.xml
file
for how the custom distribution is built.
xhtml files can be hot reloaded on the running server:
- copy build.properties.sample to build.properties, and set your server home path in variable tomcat.dir
- in nuxeo-cdi-sample module, run "ant" to deploy xhtml files that have changed on running server