I will try creating new project from scratch step-by-step and write down all steps
If you see better approach or just easier way – please leave comment and I will modify article. Also you can suggest technologies and configurations for that new project
It allows all of us to gain interesting collective experince
So lets start
Step1: Creating multimodule project with maven
Maven is still most popular build system that’s why maven, but if anybody provides code for gradle I will add it to post also
//create parent
mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo.archetypes -DarchetypeArtifactId=pom-root -DarchetypeVersion=RELEASE
go inside parent folder and create child modules
//first module
mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=RELEASE
//create one more module
mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=RELEASE
I created two modules core for common things and web