Sample Projects

Eclipse Che doesn’t provide a standard mechanism to add custom sample projects during build time. Therefore, Kuksa IDE provides an easy and straight forward mechanism to append them to ones provided by Eclipse Che during build time.

Adding New Sample Projects

To add a new sample projects simply write its JSON. And add it to the repository at samples/src/main/resources/samples. During build time Maven will unpack che-core-ide-templates-<version> and append any JSON content from samples/src/main/resources/samples/* to it’s main samples.json.

For instance, by the time of writing a sample project was already added. This is shown below.

$ tree samples/src/main/resources/samples
samples/src/main/resources/samples
   └── helloworld_service.json

Debugging

For verifying that your sample project is being added to the main samples.json you can first check samples/target/classes/samples.json.

Note

samples/target/classes/samples.json is created during the building of kuksa-samples Maven module.

You can also just build kuksa-samples Maven module instead of the entire assembly for quicker debuggin by running;

mvn clean install -rf :kuksa-samples

You can also check if your sample project was in fact added to the assembly by following the steps explained in Verify your build’s correctness.