
Access the resources section to download the completed projects, then unzip the product parent.zip and import the files into Eclipse.
Download notes from the resources tab to quickly revise Maven topics for interviews, unzip the downloaded zip to access the notes from the important theory lectures.
Discover how Maven automates build processes and project management, compiling code, running unit and integration tests, packaging jars or wars, and deploying applications.
mvn archetype:generate -DgroupId=com.bharath -DartifactId=hellomaven -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
Build the project using Maven install, which compiles, tests, and packages into a jar in the target directory. Run the jar with java -cp to print hello world.
Maven organizes work into lifecycle phases like process resources, compile, test, and package, each tied to plugin goals; depending on the project, packaging may map to jar or war.
Create a product services maven project in Eclipse using the quickstart archetype. Build with Maven install to produce a jar and run the app.
Customize the default maven behavior by configuring the maven compiler plugin in pom.xml to compile with java 1.8, overriding the super pom settings, and update the project to apply changes.
Implement the product dao impl using a hash map to create and read products by id with no database, preparing for unit tests; update and delete are optional.
Upgrade JUnit in the pom.xml from 3.8.1 to 4.4 by replacing the dependency with the copied maven snippet, then update the project to fetch latest dependencies.
Ensure your JUnit-Jupiter-Engine dependency and the latest version of the Surefire plugin, then download the updated build section from resources to make tests compile and run.
Write and run JUnit tests for the product DAO impl, creating a test class with a @Test method that calls create and read, then asserts not null and expected name.
Skip unit tests in a maven build by running mvn install -D skipTests, see the build succeed while tests are skipped, and anticipate skipping from Eclipse in the next lecture.
Explore how maven dependency management uses pom.xml coordinates to download dependencies to the local repository, add them to the classpath, and resolve transitive dependencies and scopes for war packaging.
Create a Maven web project in Eclipse using archetype webapp, set group id and artifact id, package as war, then run mvn install to produce product web.war in target folder.
Create two servlets to add and display products as an HTML table, set up the maven project structure and URL mappings, and implement doPost and doGet.
Tomcat 10+ uses the servlet 5.0 api, with packaging moved to jakarta.servlet; update imports to jakarta.servlet and add jakarta.servlet 5.0.2 as a provided dependency.
Create a maven web project in eclipse with source/main/java, add servlet classes and web.xml mappings, and include servlet dependencies in pom.xml; build product.html form for id, name, description, and price.
Create a multi-module project by defining a parent pom.xml in the parent folder, set packaging to pom, and declare modules for product services and product web.
Add the product services dependency to the product web pom.xml, using groupId com.bhrath.product, artifactId product services, version 1.0, ensuring the same coordinates as the product services pom.
Implement a display product details servlet that reads the product id from the request, retrieves the product via the BO, and outputs id, name, description, and price.
Create and test a multi-module maven project with a user services module implementing a dao backed by an in-memory hashmap and web module with servlets to create and display users.
Create a maven project using the archetype for a Java project, set a unique group id and artifact id, then outline dev, test, and production profiles with database settings.
Sample of the reviews:
Right level of detail. Clear and simple explanation of concepts. Very simple and relevant example to follow. A course that is short and simple, delivering the concepts it set out to do. Well done. - Shahid Mir
I am following Bharath's courses to become a master Java Developer, this was very practical course and it helped me learn some new features with maven. - Bruno Militzer
The instructor Bharath is best when it comes to keeping complex concepts short to the point. Amazing course on Maven, highly recommend. - B.S.Sagar
Apache maven is one of the most popular build and project management tools in the java world. In this course you will master all the core concepts of Maven while working hands on to create a multi module maven java web application project.
You will download and install Maven
You will create a standalone project using the maven script from the command line.
Understand the Project Object Model
Learn all the import concepts such Maven life cycle phases,Maven Project Coordinates,Plugin,Goals and Repositories.
Customize the Maven default settings
Create a Maven Web Application
Using Maven from Eclipse with the aid of m2eclipse plugin
What are the requirements?
Java,Eclipse IDE,Tomcat,Maven(Installation is covered in easy setup section)
A basic understanding of Java and Java Web Development
What am I going to get from this course?
Learn what convention over configuration is and the Maven project structure
Apply your understanding of Maven and your ability to build a project using Maven
Create and build a java web application using Maven
Master all the important concepts of Maven while working hands on