How to make Spring Boot include the manifest file in its repackaged WAR?

How to make Spring Boot include the manifest file in its repackaged WAR?

I'm building a Spring Boot application using spring-boot-starter-parent version 2.1.0-RELEASE and need it to produce a deployable WAR file containing a MANIFEST.MF in the META-INF/ directory. I've set up the Maven WAR plugin to include the manifest in the build artifact:

I'm building a Spring Boot application using spring-boot-starter-parent version 2.1.0-RELEASE and need it to produce a deployable WAR file containing a MANIFEST.MF in the META-INF/ directory. I've set up the Maven WAR plugin to include the manifest in the build artifact:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-war-plugin</artifactId>
  <version>3.2.2</version>
  <configuration>
    <archive>
      <manifest>
        <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
      </manifest>
    </archive>
  </configuration>
</plugin>

However, the final build artifact doesn't include a manifest file. I noticed that Spring Boot performs a repackaging after the Maven WAR plugin packaged the WAR file in the first place:

[INFO] --- spring-boot-maven-plugin:2.1.0.RELEASE:repackage (repackage)

And indeed the artifact.war.original in the target directory does contain the manifest.

How do I make Spring Boot to include the manifest in the final WAR file as well?

java maven spring

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How to Install OpenJDK 11 on CentOS 8

What is OpenJDK? OpenJDk or Open Java Development Kit is a free, open-source framework of the Java Platform, Standard Edition (or Java SE).

Spring Beans in Java

Spring IoC container is the core of the Spring Framework.In spring-based applications, objects live inside a spring containerThe container instan.

Java Spring Boot First App

Step by Step to your First Spring App

Spring | Spring JDBC Tutorial | Java Spring Tutorial Spring Training

Spring | Spring JDBC Tutorial | Java Spring Tutorial Spring Training . Spring Framework Certification Training This post Spring JDBC Tutorial video will help you

Top 10 Advanced Java and Spring Boot Courses for Full-Stack Java Developers

These are best online courses to learn Spring Boot, Advanced Java, Docker, React, Microservices, DEvops, and Angular to become full stack Java developer.