简体   繁体   English

Java项目Ant到Maven迁移

[英]Java Project Ant to Maven Migration

I am migrating a very old project that is built through ANT and is version managed in GIT.我正在迁移一个非常古老的项目,该项目是通过 ANT 构建的,并在 GIT 中进行版本管理。 I am migrating to Maven.我正在迁移到 Maven。 Question: Because the new folder project structure is going to follow the Maven Standard Layout that is very different from the actual one, what is the best way to commit and push to GIT?问题:由于新文件夹项目结构将遵循与实际非常不同的 Maven 标准布局,因此提交和推送到 GIT 的最佳方式是什么? i am asking this because git will think all the files are to be deleted (they are not in the same folder) and all the files are new (because they are in new folders).我问这个是因为 git 会认为所有文件都将被删除(它们不在同一个文件夹中)并且所有文件都是新的(因为它们在新文件夹中)。

Thanks in advance.提前致谢。
Best regards.此致。

You can move entire folders in GIT.您可以移动 GIT 中的整个文件夹。 And GIT is better at tracking history of these types of moves then say SVN. GIT 比 SVN 更擅长跟踪这些类型的移动的历史。 I did a folder move just the other day git mv src\test\folder\subfolder src\test\前几天我做了一个文件夹移动git mv src\test\folder\subfolder src\test\

TortoiseGIT shows the file change as a renamed files and shows the original file path. TortoiseGIT 将文件更改显示为重命名文件并显示原始文件路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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