I created a simple Java project (NOT a maven project) in Eclipse. How can I add "Maven Managed Dependencies" to it?
I tried to right click the project node. There's no "Maven" option in the right click menu. And there's no POM.xml file.
You can create a simple project in New
--> Other
--> Maven Project
If your project is a simple java project, you can convert it. Right click on project, Configure
--> Convert to Maven Project
:
Enter the details to create the pom file.
After that, you can add dependencies by right click on project, Maven
--> Add Dependency
, or just add dependency in the generated pom.xml
.