Two things.
1. The Maven issue: I found that I had to do "mvn install" after "mvn compile" and before "mvn assembly:assembly". Is it just me? The "Maven Guide" page in the Wiki doesn't mention this.
2. The unit tests fail like this:
java.io.FileNotFoundException: C:\Poker\cspoker_src\common\common\target\common-common-0.1-SNAPSHOT.jar..\..\src\main\resources\org\cspoker\common\elements\hand\handRanks.txt (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at org.cspoker.common.elements.hand.HandRanks.loadHandRanks(HandRanks.java:87)
at org.cspoker.common.elements.hand.HandRanks.<init>(HandRanks.java:52)
at org.cspoker.common.elements.hand.HandRanks.<clinit>(HandRanks.java:43)
the problem is here in HandRanks.loadHandRanks():
FileInputStream fstream = new FileInputStream(getClass().getProtectionDomain().
getCodeSource().getLocation().getPath().replace("%20"," ") +
"../../src/main/resources/org/cspoker/common/elements/hand/handRanks.txt");
There are at least two problems with this. First, the getPath() returns a jar file name (a String ending in .jar) to which the "../../src/..." path is appended. So the path comes out looking something like "...\target\common-common-0.1-SNAPSHOT.jar..\..\src\..." as you can see. Second, when Maven instruments the code for Cobertura (coverage) and re-runs the tests, the getCodeSource().getLocation() is different because it includes "...\generated-classes\..." so the appended path will need more "..\" in it.
I haven't tried to fix this. In order to make it work in the Cobertura context it would need some nasty tricks. Instead there should probably be a better way to get at handRanks.txt.
Jeff