UIMA-3523 replicated code from build-duccdocs profile in the release profile

git-svn-id: https://svn.apache.org/repos/asf/uima/sandbox/uima-ducc/trunk@1556259 13f79535-47bb-0310-9956-ffa450edef68