resources maven
- 作者: 半夏鎏離半夏傷
- 来源: 51数据库
- 2020-11-23
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>
配置示例:
<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>
推荐阅读