Developer Studio creates separate projects and a separate Maven pom.xml
file for most deployable artifacts. In Maven-centric development, however, you have a parent project and some child modules, including a separate distribution module that is a child module of the parent project. To achieve this model, you can create a Maven Multi Module project in your workspace, create your artifact projects nested within it, and then create the Composite Application project for the distribution module. You can also convert an existing project to a Maven Multi Module Project.
Creating a new Maven Multi Module project
To create a new Maven Multi Module project, follow the steps below:
- In WSO2 Developer Studio, click File > New > Project.
- In the wizard that appears, expand WSO2 > Maven Project and click Maven Multi Module Project. Click Next.
- Alternatively, you can open the Developer Studio Dashboard (click Developer Studio > Open Dashboard) and then click Maven Multi Module Project.
- In the Maven Information Settings dialog box, provide Maven information such as group ID, artifact ID (which also becomes your project name), and version, and then select the modules to include in the project by selecting projects from the list.
- Click Finish.
You can now open the pom.xml
file to see the selected projects that are listed as Maven modules.
Convert an existing project to a Maven Multi Module project
To convert an existing project to a Maven Multi Module project, follow the steps below:
Right-click the project, point to Configure and then click Convert to Maven Project.
The process will run in the background and once complete, the letter M will be added above the project icon.