Reputation: 15821
I have a few modules in my project
When i execute
mvn clean install
it will be rebuild all my modules and it will be a long long time.( I know - it was because i execute a clean
goal)
What the goal i need to execute or set a PROPERTY in pom.xml (maybe)
to say maven do not compile(skip or getting existing SNAPSHOT) module if was no file (no changes) in this module.
Upvotes: 1
Views: 2028
Reputation: 16209
Your build is probably taking a long time because of the tests, not compilation. See this question.
An easy way of speeding up your build is to skip tests.
You can also try advanced reactor options to select which module you want to build.
Supposedly efforts are underway to make Maven do real incremental builds.
Upvotes: 1