Creating Maven multi-module project with Eclipse - WebSystique
In this post, we will see how to create a maven Multi-module project. Multi-module project structuring can be handy when we have to share a particular module between different projects. For instance, you can have different web-applications which are using same module for interacting with database.
We will develop a parent-project and three sub-modules projects (one model-library and two web applications), where both web-applications will share the same model library.
Step 1 : Create Parent project
mvn archetype:create -DgroupId=com.websystique.multimodule -DartifactId=parent-project |
This command will create a new project with name 'parent-project' in your workspace.
Step 2 : Update pom.xml to declare it as parent project
Open pom.xml of above created parent-project and change the packaging to 'pom'.
Read full article from Creating Maven multi-module project with Eclipse - WebSystique
No comments:
Post a Comment