Reputation: 1224
As the title states.
I've made changes to .xml file only. Do I need to mvn clean install
the whole project or a simple mvn install
? Or maybe mvn generate-sources
will do the stuff?
Can anyone elaborate?
Upvotes: 0
Views: 76
Reputation: 35825
To build the artifact, you need to call mvn package
. If you do not do a clean, beware that remainders of the previous build might still exist. Changing the code of a class is generally fine, while changing the dependencies in the POM is not (you might end up with both versions of an artifact if you change the version in the POM).
Your hibernate case is somewhere in between, so you probably need to make experiments. Maven does not make any guarantees.
Upvotes: 1