Maven 打war包时,排除指定的jar包

时间:2020-12-17 09:18:34

<
build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.2</version> <configuration> <archiveClasses>false</archiveClasses> <!--排除netcdf-4.2-min.jar多个用逗号隔开--> <packagingExcludes> WEB-INF/lib/netcdf-4.2-min.jar </packagingExcludes> </configuration> </plugin> </plugins> </build>