April 17, 2017 at 12:07 pm #519906
IDE: ME 2017 OS: Windows 7.
I would like to know the difference between the creation of a Web Project with Maven Support vs creation of a Maven Project directly.
1) File –> New –> Web Project –> Check [x] Add Maven support –> Add Project to an EAR –> create the project with an EAR.
–Is the project created in this way a web project or a maven project?
2) File –> New –> Maven Project –> create the project (no EAR)
What are the differences between the projects created using the above two methods? What the advantages choosing one over the other?
EugeneApril 18, 2017 at 4:32 am #520006
1) File –> New –> Web Project –> Check [x] Add Maven support –> Add Project to an EAR –> create the project with an EAR. –Is the project created in this way a web project or a maven project?
The project is a maven enabled MyEclipse web project. Maven-enabled MyEclipse projects work with both Maven and MyEclipse tooling, simultaneously. Maven-enabled MyEclipse projects function normally like MyEclipse projects as well as Maven projects; allowing you to run any Maven goal against them using the MyEclipse IDE, manage dependencies.
The project created using File > New > Maven project is a purely maven project.The difference between the two ways of maven project creation is that, with projects created using New > Web Project wizard you can immediately ensure that your project will be deployable to the server and has proper MyEclipse configuration.
It is easier to create proper project structure for deployment to your server using New > Web project wizard.
Please refer to this article for more information about working with Maven in MyEclipse : https://www.genuitec.com/products/myeclipse/learning-center/maven/using-maven-in-myeclipse-maven4myeclipse/
Hope this helps. Please let us know if you have any questions.