pom.xml文件中加入maven-resources-plugin配置在哪
1个回答
展开全部
maven-resources-plugin 一般配置在 build>plugins 下面
配置示例:
<project ...>
<modelVersion>4.0.0</modelVersion>
...
<build>
<plugins>
<!-- maven-resources-plugin插件 -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>default-resources</id>
<phase>process-resources</phase>
<goals>
<goal>resources</goal>
</goals>
<configuration>
<detail>true</detail>
</configuration>
</execution>
<execution>
<id>default-testResources</id>
<phase>process-test-resources</phase>
<goals>
<goal>testResources</goal>
</goals>
</execution>
</executions>
</plugin>
...
</plugins>
</build>
...
</project>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询