SlideShare a Scribd company logo
1 of 8
MAVEN GUIDE
Jayanga V. Liyanage
Software Engineer
jayangavliyanage@gmail.com
Maven’s primary goal is to allow a developer to
comprehend the complete state of a development
effort in a short time
In order to attain this goal, Maven deals with several
areas of concern:
Making the build process easy
Providing a uniform build system
Providing quality project information
Encouraging better development practices
INSTALLING MAVEN
 Set the JAVA_HOME environment variable to point to a valid
Java SDK (e.g. Java 8).
 Download and unzip Maven from http://maven.apache.org
 Set the M2_HOME environment variable to point to the
directory you unzipped Maven to.
 Set the M2 environment variable to point to
M2_HOME/bin (%M2_HOME%bin on Windows).
 Add M2 to the PATH environment variable (%M2% on Windows).
 Open a command prompt and type 'mvn -version' (without
quotes) and press enter.
Maven Overview
 A Maven POM file (Project Object Model) is an XML file that describe the resources of the
project.
 This includes the directories where the source code, test source etc. is located in, what
external dependencies (JAR files) your projects has etc.
Maven POM Files
• All Maven POM files inherit
from a super POM.
• If no super POM is specified,
the POM file inherits from
the base POM.
MAVEN DIRECTORY STRUCTURE
 - src
 - main
 - java
 - resources
 - test
 - java
 - resources

 - target
Root directory of your source code and test code
Contains the source code related to the application itself
Java codes of the application
Java codes for the tests
Resources needed
Resources needed
Compiled classes, JAR files etc. produced by Maven
MAVEN REPOSITORIES
Local Repository - By default located in
user-home/.m2
Central Repository - Provided by the
Maven community
Remote Repository - Can be located
anywhere on the internet, or inside a local
network
Thank You!

More Related Content

Similar to Basic Maven Guide.pptx

An Introduction to Maven
An Introduction to MavenAn Introduction to Maven
An Introduction to Maven
Vadym Lotar
 
Build Tools-Introduction (3)
Build Tools-Introduction (3)Build Tools-Introduction (3)
Build Tools-Introduction (3)
Manjyot Singh
 
Jdc 2010 - Maven, Intelligent Projects
Jdc 2010 - Maven, Intelligent ProjectsJdc 2010 - Maven, Intelligent Projects
Jdc 2010 - Maven, Intelligent Projects
Mert Çalışkan
 
Maven Presentation - SureFire vs FailSafe
Maven Presentation - SureFire vs FailSafeMaven Presentation - SureFire vs FailSafe
Maven Presentation - SureFire vs FailSafe
Holasz Kati
 
Maven 2.0 - Project management and comprehension tool
Maven 2.0 - Project management and comprehension toolMaven 2.0 - Project management and comprehension tool
Maven 2.0 - Project management and comprehension tool
elliando dias
 

Similar to Basic Maven Guide.pptx (20)

Exploring Maven SVN GIT
Exploring Maven SVN GITExploring Maven SVN GIT
Exploring Maven SVN GIT
 
Team Maven
Team MavenTeam Maven
Team Maven
 
An Introduction to Maven
An Introduction to MavenAn Introduction to Maven
An Introduction to Maven
 
Maven basics
Maven basicsMaven basics
Maven basics
 
maven
mavenmaven
maven
 
What is maven
What is mavenWhat is maven
What is maven
 
Maven
MavenMaven
Maven
 
Maven Introduction
Maven IntroductionMaven Introduction
Maven Introduction
 
Build Tools-Introduction (3)
Build Tools-Introduction (3)Build Tools-Introduction (3)
Build Tools-Introduction (3)
 
Java, Eclipse, Maven & JSF tutorial
Java, Eclipse, Maven & JSF tutorialJava, Eclipse, Maven & JSF tutorial
Java, Eclipse, Maven & JSF tutorial
 
Jdc 2010 - Maven, Intelligent Projects
Jdc 2010 - Maven, Intelligent ProjectsJdc 2010 - Maven, Intelligent Projects
Jdc 2010 - Maven, Intelligent Projects
 
Maven Presentation - SureFire vs FailSafe
Maven Presentation - SureFire vs FailSafeMaven Presentation - SureFire vs FailSafe
Maven Presentation - SureFire vs FailSafe
 
Maven 2.0 - Project management and comprehension tool
Maven 2.0 - Project management and comprehension toolMaven 2.0 - Project management and comprehension tool
Maven 2.0 - Project management and comprehension tool
 
SE2018_Lec-22_-Continuous-Integration-Tools
SE2018_Lec-22_-Continuous-Integration-ToolsSE2018_Lec-22_-Continuous-Integration-Tools
SE2018_Lec-22_-Continuous-Integration-Tools
 
Introduction to maven, its configuration, lifecycle and relationship to JS world
Introduction to maven, its configuration, lifecycle and relationship to JS worldIntroduction to maven, its configuration, lifecycle and relationship to JS world
Introduction to maven, its configuration, lifecycle and relationship to JS world
 
Maven
MavenMaven
Maven
 
An Introduction to Maven Part 1
An Introduction to Maven Part 1An Introduction to Maven Part 1
An Introduction to Maven Part 1
 
Build tools introduction
Build tools introductionBuild tools introduction
Build tools introduction
 
Maven.pptx
Maven.pptxMaven.pptx
Maven.pptx
 
A-Z_Maven.pdf
A-Z_Maven.pdfA-Z_Maven.pdf
A-Z_Maven.pdf
 

Recently uploaded

Recently uploaded (20)

VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 

Basic Maven Guide.pptx

  • 1. MAVEN GUIDE Jayanga V. Liyanage Software Engineer jayangavliyanage@gmail.com
  • 2. Maven’s primary goal is to allow a developer to comprehend the complete state of a development effort in a short time In order to attain this goal, Maven deals with several areas of concern: Making the build process easy Providing a uniform build system Providing quality project information Encouraging better development practices
  • 3. INSTALLING MAVEN  Set the JAVA_HOME environment variable to point to a valid Java SDK (e.g. Java 8).  Download and unzip Maven from http://maven.apache.org  Set the M2_HOME environment variable to point to the directory you unzipped Maven to.  Set the M2 environment variable to point to M2_HOME/bin (%M2_HOME%bin on Windows).  Add M2 to the PATH environment variable (%M2% on Windows).  Open a command prompt and type 'mvn -version' (without quotes) and press enter.
  • 5.  A Maven POM file (Project Object Model) is an XML file that describe the resources of the project.  This includes the directories where the source code, test source etc. is located in, what external dependencies (JAR files) your projects has etc. Maven POM Files • All Maven POM files inherit from a super POM. • If no super POM is specified, the POM file inherits from the base POM.
  • 6. MAVEN DIRECTORY STRUCTURE  - src  - main  - java  - resources  - test  - java  - resources   - target Root directory of your source code and test code Contains the source code related to the application itself Java codes of the application Java codes for the tests Resources needed Resources needed Compiled classes, JAR files etc. produced by Maven
  • 7. MAVEN REPOSITORIES Local Repository - By default located in user-home/.m2 Central Repository - Provided by the Maven community Remote Repository - Can be located anywhere on the internet, or inside a local network

Editor's Notes

  1. Started very recently Supported features such as ICP, Fire scheduling, RTE, FSCM Not supported AAR
  2. Shortly, It is VBSFires without VBS. Started very recently Supported features such as ICP, Fire scheduling, RTE, FSCM Not supported AAR
  3. Shortly, It is VBSFires without VBS. Started very recently Supported features such as ICP, Fire scheduling, RTE, FSCM Not supported AAR
  4. Shortly, It is VBSFires without VBS. Started very recently Supported features such as ICP, Fire scheduling, RTE, FSCM Not supported AAR
  5. Path Planning Vehicle Plugin Bullet physic support add more realism to vehicle movement.