AXIS2-5865: Fix a couple of issues that occur when building only parts of the project (and dependencies are pulled from snapshot repositories).