语法参考
引入 Maven
插件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.2.2</version> <inherited>true</inherited> <configuration> <archive> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile> <forced>false</forced> <manifest> <addClasspath>false</addClasspath> <addDefaultEntries>true</addDefaultEntries> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> <addBuildEnvironmentEntries>true</addBuildEnvironmentEntries> <addExtensions>false</addExtensions> </manifest> </archive> </configuration> </plugin>
|
配置 MANIFEST.MF
本文地址: https://github.com/maxzhao-it/blog/post/b46c777d/