I have the following source layout:
.
├── pom.xml
├── modules (has pom)
│ ├── module1 (has pom)
│ └── module2 (has pom)
│ └── moduleN (has pom)
└── webapp1 (has pom)
└── webapp2 (has pom)
webapp1 and webapp2 depends on all of the modules (the modules being DAO, services, etc).
At the moment, I build everything from the root and mvn package
gives me two WAR files.
How do I build only webapp1 or webapp2?
If I cd
into webapp1 and run mvn package
it says it can't download moduleX.jar (this is with a clean repository). Surely Maven should be able to deduce that those modules need to be built first as dependencies?