插件是maven的核心,所有的功能都要通过插件来完成。 #插件配置的基本格式 本例是以maven-resources-plugin为例
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
<inherited>true</inherited>
<configuration><!--有的插件识别这个位置,有的不识别,有的都识别-->
<skip>false</skip><!--只有部分插件支持这个功能-->
</configuration>
<executions>
<execution>
<id>default-resources</id>
<phase>process-resources</phase>
<goals>
<goal>resources</goal>
</goal