I have a parent project which contains several sub modules created with Maven.
I need to run the sub modules one by one and then last one is report generator module in team city using Maven. How to do this?
The main project is aggregrator project contains sub modules which are automation testing and report generator project.
Report Generator project has no artifact dependency but it's has a dependency on the output report file generated from other submodules. The report module will grab the HTML report file from relative directory prior running the sub modules. Once the HTML report file is grabbed, it creates a .zip
file that contains several reports which is sent out in a single shot.
I want to build a sub-module created with Maven in IntelliJ's TeamCity. How can we achieve that?
Steps to run the submodule in the IntellJ's teamcity with Maven:
I will be doing it manually for now. I give the name of the sub module as 'report-generator'.
Project "Aggregator / report-generator" has been successfully created. You can now create a build configuration.
Now, as soon as you select this, the teamcity will auto-detect the presence of the build tools and setting that you are using for parent project and recommend it if you want to use it for sub-module also.
In your case, you want to run the sub-module with maven. So, in that case, select Maven as build step.
Successful Execution of the sub-module via Maven build step.