将Maven项目导入NetBeans [英] Import a maven project into netbeans
问题描述
我正在学习如何用Java创建一些应用程序,我在一个教程中找到了一个maven项目示例,然后在netbeans中进行了编译.
I'm learning how to create some applications in Java, i found a maven project example in a tutorial and went to compile it in netbeans.
我试图在Internet上搜索如何将Maven项目导入netbeans ,但找不到解决方案.
I tried to search in the Internet how to import a maven project into netbeans, and i can't found a solution.
顺便说一句,在本教程中,我下载了pom.xml之类的东西,我想知道它是什么以及如何使用?
By the way, in the tutorial i downloaded something like pom.xml, i wonder what is it and how it can be used?
谢谢!
推荐答案
您可以按照以下步骤在netbean中导入Eclipse Maven项目.
You can import Eclipse Maven project in netbean, just follow the steps.
1)在Netbean中,依次单击File-> New Project->在左窗格中选择maven->在右窗格中选择具有现有POM的项目,然后完成.
1) In Netbean , File->New Project->Select maven in left Pane -> Select Project with existing POM on right pane and finish.
2)现在,将要求您打开一个Eclipse项目,只需打开它就可以了.
2) Now you will be asked to open a eclipse project just open it and that's it..
我希望您能以此解决您的问题...
I hope you will solve your problem with this......
这篇关于将Maven项目导入NetBeans的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!