Does <sourceModification> exclude classes or sources? Here for classes I mean .class. In my experience, this element excludes the sources completely. Therefore these won't never get compiled and included in the jar. If so, the example in the descriptor documentation page could change.
Marco
