Description
PearMergerTest fails with error message:
java.lang.NoClassDefFoundError: org/apache/uima/tutorial/DateAnnot
at org.apache.uima.example.DateTime.<clinit>(DateTime.java:131)
...
at org.apache.uima.tools.pear.merger.PearMergerTest.testPearMerger(PearMergerTest.java:138)
A look into the pear files that are being merged shows that JCAS classes (including DateTime) are located in the directory org/apache/uima/example/types, which doesn't match the package name. So this is a bad PEAR file and the PearMergerTest is correctly reporting an error.
Previously this issue was masked because the classpath for the tests incorrectly included the uimaj-examples project, which does contain the correct JCAS types.