<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven.resources.plugin.version}</version>
<executions>
<execution>
<id>copy-ads-resources-</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes/com/sdk/repository/mapper/ads</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src/main/java/com/sdk/repository/mapper/ads</directory>
<includes>
<include>*.xml</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
如果有多个目录要复制怎么办,就写多几个<execution>复制就行了