问题
Should the WEB-INF/lib directory and it's contents be versioned by a VCS?
回答1:
If you can easily rebuild its content, I would argue against versioning it.
Considering one of the main goals of a VCS (manage the history and get the delta between one version and the other), the history and delta of binaries is often not well managed in a VCS.
those binaries are best referenced through an artifact repository (like Nexus), where a building script (like Maven) can access and copy them where they are needed (like a WEB-INF/lib directory for instance).
来源:https://stackoverflow.com/questions/3865383/should-the-web-inf-lib-directory-be-versioned-by-a-version-control-system