Generating a Maven POM from an existing project?(从现有项目生成 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:从现有项目生成 Maven POM?
基础教程推荐
- 存储 20 位数字的数据类型 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
