Is there a way to execute a Maven goal against all Maven modules of a project without aggregating POM?

已回答

I have got a project containing about 20-30 Maven modules. This project changes from time to time, meaning that some modules get added and others get removed, just depending on the current development task. All modules have been added "plainly" to the project, which means that there is no aggregator POM which aggregates them as sub-modules. 
Sometimes I would like to execute a maven goal like "clean install" against all modules at once, but it does not seem to be possible to do this via the GUI. Creating a run configuration for this is also not an option, because the modules are changing so often so that the run configuration would then have to be changed, too.

Am I missing anything or is using an aggregator POM the only way to execute a maven goal against all Maven modules of my project?

0

There is no such functionality. We have a related request for this. Please feel free to vote and follow the https://youtrack.jetbrains.com/issue/IDEA-235554

0

请先登录再写评论。