What is the functional difference between extension and plugin in Maven?
Below are examples from here , which contains a brief summary, but does not explain the difference.
Extension example:
<project> ... <build> <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-ftp</artifactId> <version>2.10</version> </extension> </extensions> </build> ... </project>
Plugin example:
<project> ... <build> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <configuration> ... </configuration> </plugin> </plugins> </build> ... </project>
source share