with 10 modules (5 module are executable in different ports and others are as library) in tomcat in ubuntu 18.04 server? Which way is better?jar or war?
I want to deploy as jar files but until now, I have deployed project with only one module (as war file) in webapps folder of tomcat.
Do I have to do special things or is it same as one module case?
The IDE is for developers. You'd use something like maven for deploying.
to build the project, just do: mvn clean package or mvn clean install The webapp project is linking all modules, then creates a deploying WAR. For more info, you may check out these posts: https://www.baeldung.com/maven-multi-module https://maven.apache.org/guides/mini/guide-multiple-modules.html http://www.codetab.org/tutorial/apache-maven/multi-module/multi-module-project/
Обсуждают сегодня