maven打包排除resources文件夹下的文件

<!--排除resources文件夹-->
<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-jar-plugin</artifactId>
   <version>3.0.2</version>
   <configuration>
      <excludes>
         <!--注意这玩意从编译结果目录开始算目录结构-->
         <exclude>/**/*.properties</exclude>
         <exclude>/**/*.xml</exclude>
      </excludes>
   </configuration>
</plugin>

猜你喜欢

转载自blog.csdn.net/weixin_42608550/article/details/82592309