0
当我构建我的Spring引导项目时,它也会创建一个目标文件夹和 target/classes,但它不会创建任何META-INF。我也包括依赖 -maven不会为spring引导项目创建META-INF
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<archive>
<index>true</index>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
<manifestEntries>
<mode>development</mode>
<url>${project.url}</url>
<key>value</key>
</manifestEntries>
</archive>
</configuration>
https://maven.apache.org/guides/getting-started/index.html#How_do_I_add_resources_to_my_JAR – nullpointer