在 Java 项目(不是 Node 项目)的 Git 仓库中维护第三方 javascript 库是否有最佳实践?
Is there a best practice on maintaining thirdparty javascript libraries in Git repo for a Java project (not Node project)?
我正在做服务器端 Java 项目。 Java 代码只有 4 KB。然而,第三方 Java 脚本库(chartjs、angular、jquery、d3 等)消耗高达 50 MB。
现在,Java 代码以及所有第三方 Java 脚本库都已提交到我的 git 存储库。这允许我只克隆存储库、构建和 运行 项目。
我想知道是否有推荐的管理第三方的最佳实践Java脚本库?
Right now, the Java code as well as all the thirdparty JavaScript libraries are committed to my git repository. This allows me to just clone the repository, build and run the project.
我认为这是要走的路。
当您的用户带着他现在已过时的版本的错误来找您时,您希望能够获得与您提供软件时完全一样的项目。如果您不得不努力获取您的用户正在使用的库的相同版本,那将是一种巨大的时间损失。
当您决定更新这些库时,最好同时更新您的 git 存储库。
但这是我的看法。
我正在做服务器端 Java 项目。 Java 代码只有 4 KB。然而,第三方 Java 脚本库(chartjs、angular、jquery、d3 等)消耗高达 50 MB。
现在,Java 代码以及所有第三方 Java 脚本库都已提交到我的 git 存储库。这允许我只克隆存储库、构建和 运行 项目。
我想知道是否有推荐的管理第三方的最佳实践Java脚本库?
Right now, the Java code as well as all the thirdparty JavaScript libraries are committed to my git repository. This allows me to just clone the repository, build and run the project.
我认为这是要走的路。
当您的用户带着他现在已过时的版本的错误来找您时,您希望能够获得与您提供软件时完全一样的项目。如果您不得不努力获取您的用户正在使用的库的相同版本,那将是一种巨大的时间损失。
当您决定更新这些库时,最好同时更新您的 git 存储库。
但这是我的看法。