Ensure framework library jars is in your local Maven repo (from base project dir):
mvn install
Package this sample application:
# from examples/simple-echo
mvn package
docker build ./simple-echo-enclave -t simple-echo-enclave
nitro-cli build-enclave --docker-uri simple-echo-enclave:latest --output-file simple-echo-enclave.eif
nitro-cli terminate-enclave --all
nitro-cli run-enclave --eif-path simple-echo-enclave.eif --memory 2048 --cpu-count 2 --enclave-cid 5 --debug-mode
nitro-cli console --enclave-id $(nitro-cli describe-enclaves | jq -r '.[0].EnclaveID')
Ensure that you have the lib libvsockj-native-1.0-SNAPSHOT.so somewhere on your Java Classpath. Usually you can just copy it to /usr/lib64.
CID=5 java -jar simple-echo-host/target/nitro-enclaves-simple-echo-host-1.0.0-SNAPSHOT.jar
You should see the following output, where i-09eb... is the Nitro Module ID:
Echo from Enclave i-09eb1f8c065b7f2e8-enc017dfd281b8c1930: Hello World!