Correct javadoc generation and publishing.

Signed-off-by: Gary Pamparà <gpampara@gmail.com>