My projects are the following
- parent POM project (has dependency management, packaging POM)
- module project 1 (packaging JAR)
- module porject 2 (packaging WAR)
In my parent POM project the other two projects are defined as modules.
Then I changed some dependencies. After that I wanted to build parent POM project, but unfortunately I was getting an error that there are missing dependency versions in module project 1.
So I had to uncomment the modules, build parent POM project alone, and just then I was able to make my desired Maven reactor build.
The strange thing is that the order of the reactor build seems correct. It's
- parent POM project
- module project 1
- module project 2
Why does it still seem that module project 1 was wont to build first?
parent POM
as their <parent/>. Which version of Maven are you using? Are you runningmvn verify
? Are you sure all groupIds, artifactIds and versions are correct? – Robert Scholteparent POM
is specified as their parent. I'm using Maven 3.0.4.verify
tells me that everything is OK. And the IDs and versions should also be fine. – Bernhard