maven-resources-plugin 一般配置在 build>plugins

来源:互联网 发布:js 把内容动态写入div 编辑:程序博客网 时间:2024/06/05 20:10
<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>
阅读全文
0 0
原创粉丝点击