eclipse 从eclipse导出maven项目
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32478006/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Export maven project from eclipse
提问by Jasmine Peled
Is there a way to export an entire Maven project from eclipse? I don't just want a jar file, I'm looking for a way that another person can download the entire project with the dependencies and all that already set up the same way that I have it.
有没有办法从 Eclipse 导出整个 Maven 项目?我不只是想要一个 jar 文件,我正在寻找一种方法,让另一个人可以下载整个项目以及依赖项以及所有已经设置的与我拥有它的方式相同的项目。
回答by Micha? Grzejszczak
Just copy the project folder and make the other person import it as an "Existing Eclipse project". If you want to collaborate with that person on it, think of using Gitor some other CMS to share it.
只需复制项目文件夹并让其他人将其作为“现有 Eclipse 项目”导入即可。如果你想与那个人合作,考虑使用Git或其他一些 CMS 来共享它。
Maven will take care of getting the right dependencies.
Maven 将负责获取正确的依赖项。
回答by Tariqul Islam
If you export it as war file then you will not get back maven file. So it is better to just copy the project send it to other person, he/she just need to import as an exist project from path.
如果您将其导出为 war 文件,那么您将无法取回 maven 文件。所以最好只是复制项目发送给其他人,他/她只需要从路径导入作为现有项目。