Building Angular application as a deployable War using Maven

Sunil K Sundaram
1 min readJun 2, 2021

You are working on an awesome Angular and Java (Springboot or others) project and want to automate the build process.

At this stage build tools come in handy and does all the heavy lifting. Maven solves building Java projects. Wallah! Code ready to be deployed!

How would you build and package an UI application written using Angular (or other UI frameworks) and want to automate it in Selenium?

In my early days had created a maven to build an Angular application and package it as a war so that it could be deployed to application servers!

Place the pom.xml (github link herepom.mvn3ng.xml) in your angular root folder and use “mvn clean install” to build the angular application and package as a self contained war file in the created “deploy” folder.

Deploy to any server that can process war files — enjoy!

Happy Automating!

--

--