I have a multi-module maven project.
MyProject
├── ModuleA
│ ├── ...
│ └── pom.xml
├── ModuleB
│ ├── ...
│ └── pom.xml
├── ...
└── pom.xml
I want to specify a groupId (com.myCompany.myProject
), and find and update the dependencies that fall into that groupId in all modules (something similar to npm outdated
and npm update
by scope
in JS/NPM world).
Also, I prefer to run these commands using CLI (instead of hardcoding in pom.xml) because the groupId will be determined by a script dynamically.
How can I achieve this with maven?