📘 Premium Read: Access my best content on Medium member-only articles — deep dives into Java, Spring Boot, Microservices, backend architecture, interview preparation, career advice, and industry-standard best practices.
🎓 Top 15 Udemy Courses (80-90% Discount): My Udemy Courses - Ramesh Fadatare — All my Udemy courses are real-time and project oriented courses.
▶️ Subscribe to My YouTube Channel (176K+ subscribers): Java Guides on YouTube
▶️ For AI, ChatGPT, Web, Tech, and Generative AI, subscribe to another channel: Ramesh Fadatare on YouTube
Tools and technologies used
- IDE - Eclipse Neon
- JDK - 1.8
- Maven - 3.5.3
Step-1
Create a Java project
Step -2
In New Java Project dialog, provide the project name as "JavaDemoProject" and click on Finish as shown in the diagram:So now we have created plain Java Project, next step is to convert to maven project.
Convert this Java Project to Maven Project
Step-3
Right, click on JavaDemoProject.Go to Configure → Convert to Maven Project.
You will see the below dialog. Now you can add Name and Description and click on Finish.
Step-4
Review the new folder structure of maven project and also pom.xml file:Pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>JavaDemoProject</groupId> <artifactId>JavaDemoProject</artifactId> <version>0.0.1-SNAPSHOT</version> <build> <sourceDirectory>src</sourceDirectory> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build> </project>
That's all. Now you can add dependencies you pom.xml and start developing your project.
Comments
Post a Comment
Leave Comment