How to use maven to package js output to war file?

I have a JVM module and a JS module. This doc got me building them each separately.

https://kotlinlang.org/docs/reference/using-maven.html

Now I’d like to create a WAR that has the JVM classes + the generated javascript. Any examples on how to do that?

Rob

THis is how I did it (see javascript-logger-testapp module):