简体   繁体   中英

Maven - how to rebuild .xml files only on a Java EE project

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM