从现有项目生成Maven POM? [英] Generating a Maven POM from an existing project?

查看:287
本文介绍了从现有项目生成Maven POM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何IDE(或任何其他工具)能够根据现有项目生成POM?

Do any of the IDEs (or any other tool for that matter) have the ability to generate a POM based on an existing project?

我最终生成了一个Maven原型的POM,如 Peter Sal 建议然后移动现有的来源。感谢帮助人员。

I ended up generating the POM with a Maven archetype as Peter and Sal suggested and then moving the existing source in. Thanks for the help guys.

推荐答案

您可以在IntelliJ中执行此操作,但它生成的POM可能比您手动编写时更复杂。如果您的项目当前在JBuilder或Eclipse中,您可以先导入它。

You can do this in IntelliJ, but the POM it generates may be more complex than if you write by hand. If your project is currently in JBuilder or Eclipse you can import this first.

相反,我建议您在POM中描述您的项目并使用它来生成项目信息。你可以为eclipse和idea做这个(我假设其他的IDE)

Instead I would suggest you describe your project in a POM and use it to generate your project information. You can do this for eclipse and idea (and I assume other IDEs)

这篇关于从现有项目生成Maven POM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆