-->

Import a maven project into netbeans

2020-08-09 07:06发布

问题:

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.

I tried to search in the Internet how to import a maven project into netbeans, and i can't found a solution.

By the way, in the tutorial i downloaded something like pom.xml, i wonder what is it and how it can be used?

Thanks!

回答1:

You can import Eclipse Maven project in netbean, just follow the steps.

1) In Netbean , File->New Project->Select maven in left Pane -> Select Project with existing POM on right pane and finish.

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......



回答2:

Although not really a direct solution to your problem, a work around to get you up and running is to create a maven project in Netbeans via the wizard, with the same name as the example project you want to install. Then, create the same package structure in the project as the example, then copy the files into their correct packages. Although you are not importing the project, but it should get you up and running.