maven-resources-plugin 插件主要是用于复制项目中的资源文件到指定的输出目录中去,有两种不同的资源:主资源文件和测试资源文件,主要的区别在于
resources 是去关联主资源代码
test resources 是去关联测试资源代码
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-web</id>
<phase>process-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes/META-INF/resources</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src/main/webapp</directory>
<includes>
<include>busicomps/factorymgr/**</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
maven-resources-plugin 插件主要是用于复制项目中的资源文件到指定的输出目录中去,有两种不同的资源:主资源文件和测试资源文件,主要的区别在于
resources 是去关联主资源代码
test resources 是去关联测试资源代码
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-web</id>
<phase>process-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes/META-INF/resources</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src/main/webapp</directory>
<includes>
<include>busicomps/factorymgr/**</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>