0

Trying to figure out the proper way to deploy an angular/spring project, none of the documentation seems to cover the process in total. This is my best guess at this point:

Step 1: ng build --base-href .

Step 2: mvn clean install

But I notice the war file does not have any of the angular front end files in it. Is there a middle step of moving all the dist folder files into the src/main/webapp folder? Or is there a single command that packages everything up automatically?

Trying to figure out the correct process.

1
  • 1
    Yes there is a middle step required of moving the dist folder into your static resource folder. There's multiple ways of doing so, you can do it manually, use the maven-resource-plugin to copy over the folder, you can configure Angular CLI to automatically put the files in there, you can package the Angular project as a JAR and bundle it as a dependency, ... . Commented Jun 4 at 6:21

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.