Maven Tutorial
Introduction to Maven Installation and environment configuration Maven settings Standard directory structure in Maven project command line IntelliJ IDEA Super POM and Parent POM Understanding POM.xml file Declaring maven dependencies Dependency management using repositories in Maven Adding jar file as a dependency in Maven Maven archetypes Maven build life cycle, phases and goals Generating project API documentation Generating Site documentation for a project Installing artifacts in local repository Deploying the artifact on remote repository Maven plug-ins surefire plugin compiler plugin Profiles in MavenExecuting Maven phases and goals through command prompt Maven command line optionsexec-maven-plugin usage Skipping tests in Maven Test execution report in MavenProject documentation in Maven
We know that javadoc tool can be used to create the documentation for a project. Maven provides one plugin that can be used to create project documentation using javadoc tool. You need to use below section in POM.xml to use maven javadoc plugin.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
</plugin>
</plugins>
</build>
Then you can invoke below maven goal to generate the Java API documentation for your project.
mvn javadoc:javadoc
After this goal is executed, documentation is generated under target/site/apidocs directory.Web development and Automation testing
solutions delivered!!