
Understand how Maven automates project setup, dependencies, compilation, testing, and deployment. Learn Maven archetypes, packaging options, documentation, endpoints, and automated server management for Java applications.
Explore Maven architecture, including plugins, pom.xml configurations, and the console, and see how it automates compile, test, and packaging for Java projects.
Explore the pom.xml in Maven, learn how the project object model defines Maven configuration details such as groupId, artifactId, version, packaging, and description for Maven-based projects.
Explore how Maven repositories store configurations and dependencies, including local, central, and remote types. The local repository resides on your computer, central is online, and remote is organization-based.
Learn how Maven resolves dependencies by searching the local repository, then central and remote repositories, loading configurations into the local repo for the project, and reporting failures if unavailable.
Understand the local repository in maven, created on first run and defaulting to c:/users/<user>/.m2, which is checked first for dependencies before other repositories; you can change its location via settings.xml.
Explore Maven central repository, a web-based hub of freeware dependencies and configurations, used by default when local artifacts are missing, with licensed dependencies needing local handling.
configure a remote repository in your pom.xml to supply dependencies from a company managed source; Maven searches local, central, remote, loading to local or failing the build.
Explore how Maven handles dependency management by configuring dependencies in the pom.xml, using groupId, artifactId, version, and scope to fetch jars from local, central, and remote repositories.
Learn to declare dependencies in pom.xml with groupId, artifactId, version, and scope, and understand how Maven searches the central repository for jar files like spring-core-6.0.0.jar.
Maven searches jar files from the pom.xml dependency graph, downloads Hibernate artifacts and their transitive dependencies, including provided ones, and resolves Spring context and core modules.
Explore how Maven resolves dependencies via pom.xml, focusing on dependency scopes such as compile, provided, runtime, and test to control availability during compilation, testing, and execution.
Explore Maven dependency scopes, focusing on compile and provided scopes, with examples like Hibernate core and Servlet API, and how they apply to compilation, testing, and execution.
Understand Maven dependency scopes—compile, runtime, and test—and apply them to JDBC applications with MySQL connector J and JUnit testing.
Learn how build configurations in Maven configure plugins such as the compiler, test, and clean tools to manage project lifecycles, including specifying Java source and target versions.
Explore Maven archetypes as project types with distinct directory structures and configurations, from standalone to web applications, including deployment descriptors like web.xml, and generate them with mvn archetype:generate.
Learn to download, install, and set up Apache Maven, configure M2_HOME and PATH, then use Maven commands like mvn archetype:generate to prepare Java projects and verify with mvn -version.
Generate a Java project using Maven by creating a quickstart archetype, configuring groupId, artifactId, and version, and inspecting the created pom.xml and project structure.
Modify the generated Maven application by editing app.java and app test java, then execute the Maven project to run and verify with JUnit tests, understanding the pom.xml and directory structure.
Learn how to run a Maven-based Java project with mvn test, building the app and its tests, and running the app via direct java or a packaged jar.
Install and configure apache maven on macbook by downloading the tar.gz, extracting it, setting mav en_home and path in zshrc, and verifying the installation with mvn -version.
Learn to create a Java project with Maven on MacBook by generating a quickstart archetype with mvn archetype:generate, configure groupId, artifactId, and version, and review the pom.xml and src structure.
Learn to create a Maven Java project from structure to execution, including pom.xml, src/main/java, src/test/java, and running tests with mvn test and jar packaging.
Learn to create a simple Maven project in Eclipse IDE, selecting the Quickstart archetype, configuring groupId, artifactId, version, and package, then the build succeeds.
Set maven.compiler.source and maven.compiler.target to 21 in pom.xml. Then update the project in Eclipse to apply changes.
Learn to set the Java version in Eclipse, write and run a simple app.java, and run Maven test in Eclipse to execute JUnit tests and display hello world output.
Open IntelliJ IDEA and create a Maven project, selecting Maven as the build system and JDK 21. Add Main.java with hello message, ensure pom.xml is created, and run the program.
Explore creating a maven project in IntelliJ IDEA using archetype selection, generating a quickstart pom.xml with groupId, artifactId, and version, and running the Java application and maven tests.
Create a quickstart Maven project, add the driver dependency in pom.xml, and implement JDBC application logic in the main method.
Add a JDBC dependency to your pom.xml to turn a Java project into a JDBC project, and download the MySQL connector for version 9.1.0 along with its transitive protobuf dependency.
Learn to set up a Maven JDBC project, add the MySQL driver, and fetch data from the Durga db's emp_one table using try-with-resources.
Develop and run a JDBC application with MySQL using Maven in IntelliJ IDEA, configuring the pom.xml with the MySQL connector dependency and loading Maven changes.
Build a Maven Java project, add the MySQL connector, and implement JDBC with try-with-resources to connect to MySQL, run a query, and display results in IntelliJ or Eclipse.
Connect a JDBC application to an Oracle database using Maven by creating and installing a local Oracle JDBC driver dependency in the local repository, since central Maven lacks it.
Prepare a JDBC program using a Maven project to connect to Oracle, loading the Oracle dependency from the local repository via pom.xml updates.
Explore developing a JDBC application with Maven by configuring the local repository, adding Oracle JDBC to pom.xml, connecting to Oracle via DriverManager, and executing and printing results.
Master web application development with Maven using the webapp archetype. Configure pom.xml with the Tomcat plugin and servlet dependency, then run the app on Maven's integrated Tomcat server.
Build a Maven web app by configuring pom.xml with the compiler plugin and servlet API, create login form, success and failure pages, and wire them to a /login servlet.
Learn to build a Maven web login servlet with a /login endpoint, reading username and password from request.getParameter via a post form, and dispatching to success.html or failure.html.
Learn to run a web application with maven's internal tomcat server by configuring a maven build, setting the tomcat port, and accessing login app via localhost to test login functionality.
Learn to run a Maven web project on an external Tomcat server by updating dependencies to Jakarta Servlet API 5.0, removing the Maven Tomcat plugin, and configuring Tomcat 11.
Run a Maven-based web application in IntelliJ IDEA with an external Tomcat 11 server, creating a Jakarta EE project and deploying a simple test servlet.
Prepare Hibernate applications with Maven by creating a quickstart project, adding Hibernate core and MySQL dependencies in pom.xml, and setting up mapping, configuration, and a test app.
Set up a maven project with hibernate and mysql dependencies, then create a bean employee pojo with getters and setters and map it to the emp1 table.
Create a Hibernate mapping file employee.xml for the employee class to EMP1 table, map id and columns e name and e sal, and include DTD from Hibernate core jar.
learn to create a hibernate.cfg.xml configuration with a session factory, set driver class, url, username, password, and MySQL dialect, enable show_sql, and wire mapping via employee.xml or annotated classes.
Explore hibernate application development with maven by configuring hibernate.cfg.xml, building a session factory, and performing create, read, update, and delete operations with transaction management using pom.xml.
Develop a Spring core module application with Maven by creating a quickstart project, adding the Spring context dependency, and testing a bin bean that greets by time.
Learn how to configure a spring application with Maven and a spring-config.xml file, define a bean with properties, and start an application context that creates and manages the bean.
MAVEN Course Content:
Introduction
MAVEN Architecture
POM File
MAVEN Repositories
MAVEN Dependency Management
Steps to Prepare Applications with MAVEN
Profiles in Applications with MAVEN
Developing JDBC Application with MAVEN.
Developing WEB Application with MAVEN
Developing Hibernate Application with MAVEN
Developing SPRING Application with MAVEN
If we want to create and execute any project we have to perform the following activities.
Download and install the technologies, Frameworks,...
Creating a project and its directory structure or template.
Adding the required JAR files to the project.
Prepare the Java resources and web resources as per the requirement.
Compile Java resources.
Generate Documentation.
Test the code
Generate Reports
Start the Server
Deploy the application.
Access the application.
Un-deploy the application.
Stop the Server.
Performing all the above activities manually by the developers may increase burden to the developers, here the developers may focus more on the application infrastructure or configurations instead of the actual required application’s business logic, it will impact the application Development process.
In the above context, we need an alternative to perform all the above activities automatically without the Developers interference, here the required alternatives are provided by some third party organizations called “Build Tools”.
EX: Ant, MAVEN, GRADLE,...
ANT is an outdated Build tool, it is not supported by the present technologies and tools.
MAVEN is not an outdated build tool, it is used by the at present Technologies and tools.
GRADLE is also a latest Build tool, but it is not showing much difference from the MAVEN.
MAVEN is able to perform the following activities for the applications.
It is able to provide Project Architectures.
It is able to provide all the required dependencies or JAR files to the Project.
It is able to Compile the code if we provide java code.
It is able to generate documentation for the code.
It is able to test the code.
It is able to start the Server.
It is able to deploy the applications inside the server.
It is able to provide some end points or URLs to access the applications.
It is able to Up-deploy the applications.
It is able to stop the Server.
It is able to prepare packages for the application in the form of JAR file, WAR file, EAR file.