Fix javadoc warning

There are several warnings when the `javadoc` task is being executed.
By making the `compile` stage extends from `provided`, the warnings disappear.