Forums Register Login

Maven: Don’t just blindly “mvn clean install”

+Pie Number of slices to send: Send
Suppose you have a multi-module Maven project, with a ton of modules, two of them being fancynewtool-db and fancynewtool-rest. fancynewtool-rest has fancynewtool-db as a dependency. What happens if you cd into the rest-module and do a mvn clean compile/test for the first time? Maven will tell you that it cannot resolve the db-module dependency. And now your instinct might be to do a blind mvn clean install in the parent project, because that is just the way Maven works ™.

A full mvn clean install works, but is simply not the fastest and most efficient way. Read more...
You got style baby! More than this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 789 times.
Similar Threads
Using Maven Module with a Module that is not Maven - Possible?
Problems with Multi Module project
Dependency problem and project errors in Maven
Unable to resolve dependency to a jar file created by MVN in 1st module.
Maven project crash after clean
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:36:24.