What is frontend-maven-plugin?
Okay – before I answer the question of what frontend-maven-plugin
is, let’s see how we can package our application. We can build Spring Boot to generate a JAR file and create a production build of Angular as well.
But what if we can create a JAR file for Spring Boot that will also contain the production build of Angular inside it? The approach of putting the frontend and the backend in a single JAR file will provide us with an easier way to deploy the application to test and production environments.
It will allow us to manage a single path for the API and the frontend application. To do this, we will require a Maven plugin called frontend-maven-plugin
(https://github.com/eirslett/frontend-maven-plugin), which will help us create a JAR file that contains both our backend and frontend.
Some requirements ensure that our backend and frontend will work together. In the next section, we’ll find out what configurations we need in...