The maven related submodules are library dependencies that should be in the WEB-INF / lib directory. The reason you need to run mvn: install at the top level is because you need to restore the jar when it creates the corresponding submodule, and then copy it to the WEB-INF / lib directory when the war package is being drafted.
If you can come up with a way to make your IDE or some other tool automatically update the JAR in the WEB-INF / lib directory, then you should be fine. You can try to compile your IDE your related project as a disparate JAR structure in the WEB-INF / lib directory. This will depend on your web container, whether it is selected or not. I think Tomcat will probably be okay with this, but I'm not sure about Jetty. I am going to try it myself soon.
Javid jamae
source share