狠狠撸

狠狠撸Share a Scribd company logo
2
Most read
4
Most read
5
Most read
APACHE MAVEN
What is Maven?
● Software Project Management tool
● Based on the concept of Project Object Model(POM)
● A build lifecycle framework
● Automate build infrastructure
● Ability to manage build, reporting, documentation, scm’
s, dependecies, unit testing, mailing lists...
What does it provide?
Standardizes the Project Build Process
● Designed to simplify the process of Jakarta Turbine
Project.
● Several projects with slightly different ANT file.
● JAR’s were checked in CVS’s
● MAVEN developed to build multiple project’s together
History of Maven
● Provide comprehensive model
● Provide plugins that interact with this comprehensive
model
● Convention over Configuration
● Project Object Model (POM)
Objective of Maven
● Fundamental unit of Maven
● Contains information about the project and
configuration details
● Contains goals and plugins
● Uniquely identified by GroupId and ArtifactId
● POM’s inherit from parent POM’s
Project Object Model (POM)
Well defined sequence of phases, which
defines the order in which goals are executed.
Maven Build Lifecycle
A typical Maven build lifecycle
Maven Build Lifecycle
Phase Handles Description
prepare-resources resource copying Resource copying can be customized in this
phase.
compile compilation Source code compilation is done in this phase.
package packaging This phase creates the JAR / WAR package as
mentioned in packaging in POM.xml.
install installation This phase installs the package in local / remote
maven repository.
● 3 standard Lifecycles
○ Clean
○ Build
○ Site
● The order of execution depends on which goals and
build phases are invoked
Maven Build Lifecycle
● Maven clean goal is bound to clean phase
● Maven deletes the output of the build
Clean Lifecycle
● Primary lifecycle of Maven
● It has 23 phases
● Compile, Install ,Package phases are some
examples
Build Lifecycle
● Create Documentation
● Create Reports
● Deploy Site
Site Lifecycle
● Set of configuration values, which can be used to set or override the
default values.
● Maven profile helps you customise your build for diff environments like
deployment or production
● Build profiles are specified in the pom.xml and it modifies the pom.xml at
build time based on the target environment.
● Build profile is of three types:
○ Per Project
○ Per User
○ Global
● mvn test -Ptest
Maven Build Profile
● Repository is a place where all the project jar’s, library jars, plugins and
project artifacts are stored and can be accessed by maven easily.
● There are 3 types of repositories: Local, Central and Remote.
● Local - Is the one Maven creates in the system
● Central - Maintained by Maven community
● Remote - Maintained by the user
Maven Repositories
● Maven is a plugin execution framework where all the tasks are done by
plugins.
● Plugins can create jar/war, compile code, run unit tests, create project
reports and documents.
● mvn compiler:compile
● Two types of plugins:
○ Build - Executes during the build phase and should be configured in
the build element.
○ Reporting - Executes during the site phase and should be configured
in the reporting element.
Maven Plugins
● Maven uses archetype plugins to create project.
● mvn archetype:generate
-DgroupId=com.companyname.software
-DartifactId=financialService
-DarchetypeArtifactId=maven-archetype-quickstart
-DinteractiveMode=false
Creating Maven Projects
Ad

Recommended

OpenCmsDays 2013 - Using OpenCms 9 folders as a network drive
OpenCmsDays 2013 - Using OpenCms 9 folders as a network drive
Alkacon Software GmbH & Co. KG
?
OpenCms Days 2013 - Gradle based OpenCms build automated setup
OpenCms Days 2013 - Gradle based OpenCms build automated setup
Alkacon Software GmbH & Co. KG
?
Triple E class DevOps with Hudson, Maven, Kokki/Multiconf and PyDev
Triple E class DevOps with Hudson, Maven, Kokki/Multiconf and PyDev
Werner Keil
?
Microservice Workshop Hands On
Microservice Workshop Hands On
Ram G Suri
?
Maven tutorial
Maven tutorial
Dragos Balan
?
OpenCms Days 2012 - Developing OpenCms with Gradle
OpenCms Days 2012 - Developing OpenCms with Gradle
Alkacon Software GmbH & Co. KG
?
Composer
Composer
Naseer Ahmad
?
Gradle
Gradle
Andrii Khaisin
?
Testing Rest with Spring by Kostiantyn Baranov (Senior Software Engineer, Gl...
Testing Rest with Spring by Kostiantyn Baranov (Senior Software Engineer, Gl...
GlobalLogic Ukraine
?
Puppet managed loadays
Puppet managed loadays
Yankee Nemoy
?
Vpm
Vpm
GlobalLogic Ukraine
?
JenkinsCI
JenkinsCI
Chandrika Gole
?
Java Development EcoSystem
Java Development EcoSystem
Alex Tumanoff
?
OpenCms Days 2016: Next generation content repository
OpenCms Days 2016: Next generation content repository
Alkacon Software GmbH & Co. KG
?
OpenCms Days 2015 Next generation repository
OpenCms Days 2015 Next generation repository
Alkacon Software GmbH & Co. KG
?
Cli jbug
Cli jbug
maeste
?
Hands on continouous delivery, I TAKE 2014
Hands on continouous delivery, I TAKE 2014
Ioan Eugen Stan
?
Maven plugins, properties en profiles: Advanced concepts in Maven
Maven plugins, properties en profiles: Advanced concepts in Maven
Geert Pante
?
Apache Maven
Apache Maven
eurosigdoc acm
?
OpenCms Days 2014 - OpenCms Module Development and Deployment with IntelliJ, ...
OpenCms Days 2014 - OpenCms Module Development and Deployment with IntelliJ, ...
Alkacon Software GmbH & Co. KG
?
Ruby in mule
Ruby in mule
Ramakrishna kapa
?
JBoss EAP 7 & JDG 7 ?? ?? ??
JBoss EAP 7 & JDG 7 ?? ?? ??
Ted Won
?
Intro to XPages for Administrators (DanNotes, November 28, 2012)
Intro to XPages for Administrators (DanNotes, November 28, 2012)
Per Henrik Lausten
?
Linux Kernel Selftest Framework - Quality Control for New Releases
Linux Kernel Selftest Framework - Quality Control for New Releases
Samsung Open Source Group
?
Continous Delivery with CQ
Continous Delivery with CQ
olibur
?
Introduction to Maven
Introduction to Maven
Onkar Deshpande
?
Maven ppt
Maven ppt
natashasweety7
?
OpenCms Days 2015 How do you develop for OpenCms?
OpenCms Days 2015 How do you develop for OpenCms?
Alkacon Software GmbH & Co. KG
?
An Introduction to Maven Part 1
An Introduction to Maven Part 1
MD Sayem Ahmed
?
Jenkins advance topic
Jenkins advance topic
Gourav Varma
?

More Related Content

What's hot (20)

Testing Rest with Spring by Kostiantyn Baranov (Senior Software Engineer, Gl...
Testing Rest with Spring by Kostiantyn Baranov (Senior Software Engineer, Gl...
GlobalLogic Ukraine
?
Puppet managed loadays
Puppet managed loadays
Yankee Nemoy
?
Vpm
Vpm
GlobalLogic Ukraine
?
JenkinsCI
JenkinsCI
Chandrika Gole
?
Java Development EcoSystem
Java Development EcoSystem
Alex Tumanoff
?
OpenCms Days 2016: Next generation content repository
OpenCms Days 2016: Next generation content repository
Alkacon Software GmbH & Co. KG
?
OpenCms Days 2015 Next generation repository
OpenCms Days 2015 Next generation repository
Alkacon Software GmbH & Co. KG
?
Cli jbug
Cli jbug
maeste
?
Hands on continouous delivery, I TAKE 2014
Hands on continouous delivery, I TAKE 2014
Ioan Eugen Stan
?
Maven plugins, properties en profiles: Advanced concepts in Maven
Maven plugins, properties en profiles: Advanced concepts in Maven
Geert Pante
?
Apache Maven
Apache Maven
eurosigdoc acm
?
OpenCms Days 2014 - OpenCms Module Development and Deployment with IntelliJ, ...
OpenCms Days 2014 - OpenCms Module Development and Deployment with IntelliJ, ...
Alkacon Software GmbH & Co. KG
?
Ruby in mule
Ruby in mule
Ramakrishna kapa
?
JBoss EAP 7 & JDG 7 ?? ?? ??
JBoss EAP 7 & JDG 7 ?? ?? ??
Ted Won
?
Intro to XPages for Administrators (DanNotes, November 28, 2012)
Intro to XPages for Administrators (DanNotes, November 28, 2012)
Per Henrik Lausten
?
Linux Kernel Selftest Framework - Quality Control for New Releases
Linux Kernel Selftest Framework - Quality Control for New Releases
Samsung Open Source Group
?
Continous Delivery with CQ
Continous Delivery with CQ
olibur
?
Introduction to Maven
Introduction to Maven
Onkar Deshpande
?
Maven ppt
Maven ppt
natashasweety7
?
OpenCms Days 2015 How do you develop for OpenCms?
OpenCms Days 2015 How do you develop for OpenCms?
Alkacon Software GmbH & Co. KG
?
Testing Rest with Spring by Kostiantyn Baranov (Senior Software Engineer, Gl...
Testing Rest with Spring by Kostiantyn Baranov (Senior Software Engineer, Gl...
GlobalLogic Ukraine
?
Puppet managed loadays
Puppet managed loadays
Yankee Nemoy
?
Java Development EcoSystem
Java Development EcoSystem
Alex Tumanoff
?
Hands on continouous delivery, I TAKE 2014
Hands on continouous delivery, I TAKE 2014
Ioan Eugen Stan
?
Maven plugins, properties en profiles: Advanced concepts in Maven
Maven plugins, properties en profiles: Advanced concepts in Maven
Geert Pante
?
OpenCms Days 2014 - OpenCms Module Development and Deployment with IntelliJ, ...
OpenCms Days 2014 - OpenCms Module Development and Deployment with IntelliJ, ...
Alkacon Software GmbH & Co. KG
?
JBoss EAP 7 & JDG 7 ?? ?? ??
JBoss EAP 7 & JDG 7 ?? ?? ??
Ted Won
?
Intro to XPages for Administrators (DanNotes, November 28, 2012)
Intro to XPages for Administrators (DanNotes, November 28, 2012)
Per Henrik Lausten
?
Linux Kernel Selftest Framework - Quality Control for New Releases
Linux Kernel Selftest Framework - Quality Control for New Releases
Samsung Open Source Group
?
Continous Delivery with CQ
Continous Delivery with CQ
olibur
?

Similar to Apache maven (20)

An Introduction to Maven Part 1
An Introduction to Maven Part 1
MD Sayem Ahmed
?
Jenkins advance topic
Jenkins advance topic
Gourav Varma
?
Maven Zero to Hero with AWS CodeCommit, CodeArtifact, ECR, OWASP Dependency ...
Maven Zero to Hero with AWS CodeCommit, CodeArtifact, ECR, OWASP Dependency ...
Ravi Soni
?
Ci jenkins maven svn
Ci jenkins maven svn
Ankur Goyal
?
Java build tools
Java build tools
Sujit Kumar
?
Maven in Java EE project
Maven in Java EE project
Ondrej Mihályi
?
Maven
Maven
Nishant Arora
?
Build Automation using Maven
Build Automation using Maven
Ankit Gubrani
?
Maven and j unit introduction
Maven and j unit introduction
Sergii Fesenko
?
Maven
Maven
Jyothi Malapati
?
Maven
Maven
Jyothi Malapati
?
Mavennotes.pdf
Mavennotes.pdf
AnkurSingh656748
?
Build tool
Build tool
Mallikarjuna G D
?
Maven
Maven
Harshit Choudhary
?
Maven
Maven
Мар?я Русин
?
Apache ANT vs Apache Maven
Apache ANT vs Apache Maven
Mudit Gupta
?
tools cli java
tools cli java
TiNguyn863920
?
What is maven
What is maven
sureshraj43
?
Maven basics
Maven basics
Vijay Krishnan Ramaswamy
?
Maven in mulesoft
Maven in mulesoft
venkata20k
?
Ad

Recently uploaded (20)

Pavement and its types, Application of rigid and Flexible Pavements
Pavement and its types, Application of rigid and Flexible Pavements
Sakthivel M
?
最新版美国圣莫尼卡学院毕业证(厂惭颁毕业证书)原版定制
最新版美国圣莫尼卡学院毕业证(厂惭颁毕业证书)原版定制
Taqyea
?
Modern multi-proposer consensus implementations
Modern multi-proposer consensus implementations
Fran?ois Garillot
?
The basics of hydrogenation of co2 reaction
The basics of hydrogenation of co2 reaction
kumarrahul230759
?
Machine Learning - Classification Algorithms
Machine Learning - Classification Algorithms
resming1
?
Industry 4.o the fourth revolutionWeek-2.pptx
Industry 4.o the fourth revolutionWeek-2.pptx
KNaveenKumarECE
?
Structural Design for Residential-to-Restaurant Conversion
Structural Design for Residential-to-Restaurant Conversion
DanielRoman285499
?
Engineering Mechanics Introduction and its Application
Engineering Mechanics Introduction and its Application
Sakthivel M
?
COMPOSITE COLUMN IN STEEL CONCRETE COMPOSITES.ppt
COMPOSITE COLUMN IN STEEL CONCRETE COMPOSITES.ppt
ravicivil
?
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
djiceramil
?
Great power lithium iron phosphate cells
Great power lithium iron phosphate cells
salmankhan835951
?
3. What is the principles of Teamwork_Module_V1.0.ppt
3. What is the principles of Teamwork_Module_V1.0.ppt
engaash9
?
Center Enamel can Provide Aluminum Dome Roofs for diesel tank.docx
Center Enamel can Provide Aluminum Dome Roofs for diesel tank.docx
CenterEnamel
?
Fundamentals of Digital Design_Class_12th April.pptx
Fundamentals of Digital Design_Class_12th April.pptx
drdebarshi1993
?
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
resming1
?
OCS Group SG - HPHT Well Design and Operation - SN.pdf
OCS Group SG - HPHT Well Design and Operation - SN.pdf
Muanisa Waras
?
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
djiceramil
?
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
resming1
?
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
SharinAbGhani1
?
Montreal Dreamin' 25 - Introduction to the MuleSoft AI Chain (MAC) Project
Montreal Dreamin' 25 - Introduction to the MuleSoft AI Chain (MAC) Project
Alexandra N. Martinez
?
Pavement and its types, Application of rigid and Flexible Pavements
Pavement and its types, Application of rigid and Flexible Pavements
Sakthivel M
?
最新版美国圣莫尼卡学院毕业证(厂惭颁毕业证书)原版定制
最新版美国圣莫尼卡学院毕业证(厂惭颁毕业证书)原版定制
Taqyea
?
Modern multi-proposer consensus implementations
Modern multi-proposer consensus implementations
Fran?ois Garillot
?
The basics of hydrogenation of co2 reaction
The basics of hydrogenation of co2 reaction
kumarrahul230759
?
Machine Learning - Classification Algorithms
Machine Learning - Classification Algorithms
resming1
?
Industry 4.o the fourth revolutionWeek-2.pptx
Industry 4.o the fourth revolutionWeek-2.pptx
KNaveenKumarECE
?
Structural Design for Residential-to-Restaurant Conversion
Structural Design for Residential-to-Restaurant Conversion
DanielRoman285499
?
Engineering Mechanics Introduction and its Application
Engineering Mechanics Introduction and its Application
Sakthivel M
?
COMPOSITE COLUMN IN STEEL CONCRETE COMPOSITES.ppt
COMPOSITE COLUMN IN STEEL CONCRETE COMPOSITES.ppt
ravicivil
?
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
djiceramil
?
Great power lithium iron phosphate cells
Great power lithium iron phosphate cells
salmankhan835951
?
3. What is the principles of Teamwork_Module_V1.0.ppt
3. What is the principles of Teamwork_Module_V1.0.ppt
engaash9
?
Center Enamel can Provide Aluminum Dome Roofs for diesel tank.docx
Center Enamel can Provide Aluminum Dome Roofs for diesel tank.docx
CenterEnamel
?
Fundamentals of Digital Design_Class_12th April.pptx
Fundamentals of Digital Design_Class_12th April.pptx
drdebarshi1993
?
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
resming1
?
OCS Group SG - HPHT Well Design and Operation - SN.pdf
OCS Group SG - HPHT Well Design and Operation - SN.pdf
Muanisa Waras
?
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-ABB Furse.pdf
djiceramil
?
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
resming1
?
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
SharinAbGhani1
?
Montreal Dreamin' 25 - Introduction to the MuleSoft AI Chain (MAC) Project
Montreal Dreamin' 25 - Introduction to the MuleSoft AI Chain (MAC) Project
Alexandra N. Martinez
?
Ad

Apache maven

  • 2. What is Maven? ● Software Project Management tool ● Based on the concept of Project Object Model(POM)
  • 3. ● A build lifecycle framework ● Automate build infrastructure ● Ability to manage build, reporting, documentation, scm’ s, dependecies, unit testing, mailing lists... What does it provide?
  • 4. Standardizes the Project Build Process
  • 5. ● Designed to simplify the process of Jakarta Turbine Project. ● Several projects with slightly different ANT file. ● JAR’s were checked in CVS’s ● MAVEN developed to build multiple project’s together History of Maven
  • 6. ● Provide comprehensive model ● Provide plugins that interact with this comprehensive model ● Convention over Configuration ● Project Object Model (POM) Objective of Maven
  • 7. ● Fundamental unit of Maven ● Contains information about the project and configuration details ● Contains goals and plugins ● Uniquely identified by GroupId and ArtifactId ● POM’s inherit from parent POM’s Project Object Model (POM)
  • 8. Well defined sequence of phases, which defines the order in which goals are executed. Maven Build Lifecycle
  • 9. A typical Maven build lifecycle Maven Build Lifecycle Phase Handles Description prepare-resources resource copying Resource copying can be customized in this phase. compile compilation Source code compilation is done in this phase. package packaging This phase creates the JAR / WAR package as mentioned in packaging in POM.xml. install installation This phase installs the package in local / remote maven repository.
  • 10. ● 3 standard Lifecycles ○ Clean ○ Build ○ Site ● The order of execution depends on which goals and build phases are invoked Maven Build Lifecycle
  • 11. ● Maven clean goal is bound to clean phase ● Maven deletes the output of the build Clean Lifecycle
  • 12. ● Primary lifecycle of Maven ● It has 23 phases ● Compile, Install ,Package phases are some examples Build Lifecycle
  • 13. ● Create Documentation ● Create Reports ● Deploy Site Site Lifecycle
  • 14. ● Set of configuration values, which can be used to set or override the default values. ● Maven profile helps you customise your build for diff environments like deployment or production ● Build profiles are specified in the pom.xml and it modifies the pom.xml at build time based on the target environment. ● Build profile is of three types: ○ Per Project ○ Per User ○ Global ● mvn test -Ptest Maven Build Profile
  • 15. ● Repository is a place where all the project jar’s, library jars, plugins and project artifacts are stored and can be accessed by maven easily. ● There are 3 types of repositories: Local, Central and Remote. ● Local - Is the one Maven creates in the system ● Central - Maintained by Maven community ● Remote - Maintained by the user Maven Repositories
  • 16. ● Maven is a plugin execution framework where all the tasks are done by plugins. ● Plugins can create jar/war, compile code, run unit tests, create project reports and documents. ● mvn compiler:compile ● Two types of plugins: ○ Build - Executes during the build phase and should be configured in the build element. ○ Reporting - Executes during the site phase and should be configured in the reporting element. Maven Plugins
  • 17. ● Maven uses archetype plugins to create project. ● mvn archetype:generate -DgroupId=com.companyname.software -DartifactId=financialService -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false Creating Maven Projects