Plugins

Figure 647. Plugin architecture Slide presentation
  • Tiny core

  • Plugin extensible

Hint: mvn help:effective-pom lists included plugins.


Figure 648. Sample plugins Slide presentation
  • Testing: maven-surefire-plugin

  • Library dependencies: maven-dependency-plugin

  • Packaging: maven-jar-plugin

  • Documentation: maven-javadoc-plugin


Figure 649. Example: The maven-javadoc-plugin Slide presentation
first> jar -tf ~/.m2/repository/org/apache/maven/plugins/\
        maven-javadoc-plugin/3.0.0/maven-javadoc-plugin-3.0.0.jar
...
META-INF/LICENSE
META-INF/maven/org.apache.maven.plugins/maven-javadoc-plugin/plugin-help.xml
javadoc-report.properties
META-INF/maven/plugin.xml
log4j.properties
META-INF/NOTICE
org/apache/maven/plugins/javadoc/AbstractFixJavadocMojo$JavaEntityTags.class
org/apache/maven/plugins/javadoc/AggregatorTestJavadocReport.class
...