<build> <finalName>gnisms-app</finalName> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <!--<version>1.3.5.RELEASE</version>--> <configuration> <mainClass>com.greenet.gnisms.app.GnISMSApplication</mainClass> // 从这里开始 <layout>JAR</layout> <excludes> <exclude> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <!-- 不希望打包到libs目录下的jar包 --> </exclude> </excludes> // 到这里结束 </configuration> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
maven打包排除lib中指定jar
最新推荐文章于 2024-06-21 13:51:58 发布