maven-war-plugin文件移动

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_28114645/article/details/81557212
 <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <version>3.2.1</version>
                <configuration>
                    <warSourceDirectory>src/main/webapp</warSourceDirectory>
                    <failOnMissingWebXml>false</failOnMissingWebXml>
                    <packagingExcludes>web/**</packagingExcludes>  //排除目录
                    <webResources>
                        <resource>
                            <targetPath></targetPath>   //目标路径
                            <directory>web/dist</directory>  //源路径
                            <includes>
                                <include> //文件匹配
                                    */**
                                </include>
                            </includes>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>
        </plugins>

猜你喜欢

转载自blog.csdn.net/qq_28114645/article/details/81557212
今日推荐