Using Merlin

Building the Block

Using the sources included in the tutorials/hello directory you can build and run the example using the following commands:

$ maven

Running the Block

To see Merlin in action, execute Merlin and give it either the jar file or the ${basedir}/target/classes directory as the deployment argument. The following command deploys the component relative to the compiled classes in the ${basedir}/target/classes directory.

$ merlin -execute target\classes 

Alternatively you can deploy the component from the jar file.

$ merlin -execute target\hello-1.1.jar

The output resulting from the execution of the block is as follows:

[INFO   ] (tutorial.hello): Hello World!

Congratulations! You have build and deployed your first block.

A quick look at some of the behind the scenes activity is presented in the next tutorial .