I have a current project which consist out of two independently developed projects:
- Spring REST as back end
- Angular as front end
I do have a Jenkins instance available for building my projects and I'd would like to "marry" both of the projects in a CD job to a single deployable file (.jar
)
Is this a job of jenkins, to copy all needed files together? Or is this usually solved with a maven plugin? I couldn't find much information about that, although it seems like a very common step to me.
Best Answer
Ant or Maven are usually used for this. For example, Apache Wicket calls
npm
andGrunt
from within thepom.xml
:And Apache Freemarker Docgen calls
npm
andGulp
from withinbuild.xml
:References
Apache Wicket JavaScript Tests: wicket/pom.xml at master
Apache Freemarker Docgen
A Minimalist Guide to Building Spring Boot Angular 5 Applications – Shekhar Gulati
How to use ReactJS with Java web applications | Edward Mostrom | Pulse | LinkedIn
Hybrid Spring Boot and React or Angular: A Better Way
Getting started with ReactJS and eXo Platform Portlets