Sunday, 19 August 2012

Conditional Javadoc Generation in Maven

Generating Javadoc at each build process can be very time consuming and pretty unnecessary. One can tackle this issue by moving Javadoc generation in a profile in the pom.xml:
The above create a profile called JavadocGeneration. The Javadoc will be generated if and only if it is invoked:
mvn groupId:artifactId:goal -P JavadocGeneration

No comments:

Post a comment