snip
My suggestion was much simpler, i.e., that we could keep the client code out of the sample extension jar and include a .class file for the client code for these 3 samples in the binary distro. This is similar to what real users will do when developing extensions.
Making this happen is a little complicated from what I can see. I put the client code in the test directory in the first place because I couldn't see a way of excluding it using pom configuration. I've gone back and had a play with it and I still can't see how to exclude a class file from a jar file using the jar plugin. There maybe something that can be done with the assembly plugin but I'm not really familiar with it so maybe one of our Maven experts can help? If we do want to exclude "application" code from the sample extension jar (which I grant you does make sense for the extension samples) then we can either leave the code where it is in the test dir or put it in another sample project. I added this latter proposition because if it's in the test dir then we don't meet the 'run out of the box from a java command line' aspiration that has been expressed previously. Simon
