<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>