Professional Documents
Culture Documents
Maven and Git Training
Maven and Git Training
What is Maven?
Maven is a build automation tool used mainly for java projects from apache.
› POM Files
› Dependencies and Repositories
› Build Life Cycles, Phases and Goals
› Build Profiles
› Build Plugins
› In a windows system, you can access through ‘start + right click on computer’,
then choose properties. Click on ‘system avanced configuration’, click on
‘environment variables’ button. Edit path environment variable and add the
maven bin directory at the end.
› Now you are ready, open a shell window and type mvn -v. You should see the
maven version and many other things.
› You can follow the full instructions in order to install maven here:
https://maven.apache.org/install.html
› Project
› modelVersion
› groupId
› artifactId
› Version
› Dependencies
› Dependency
› Name
› Scope
› packaging
› ECLIPSE EXAMPLE
› mvn clean
› mvn compile
› mvn test-compile
› mvn test
› mvn package
› mvn install
› mvn deploy
Version control:
› Version control is a system that records changes to a file or set of files over time
so that you can recall specific versions later. So ideally, we can place any file in
the computer on version control.
› Git is one of the way of implementing the idea of version control. It is Distributed
Version Control System(DVCS)
Unlike Centralized Version Control System that uses a central server to store all
files and enables team collaboration, DVCS just can be implemented just with a
help of a desktop, single software available at a command line. So the failure of
the central server does not create any problem in DVCS. So a lot of operations
can be performed when you are offline.
› Working Directory,
› Staging Area,
› Local Repository
› Remote Repository.