SlideShare a Scribd company logo
Java Build tools : Ant and Maven
 Ant was the first among “modern” build tools.
 It was released in 2000 and in a short period of time became the most popular build
tool for Java projects.
 It is very easy to learn thus allowing anyone to start using it without any special
preparation.
 It is based on procedural programming idea.
 Maven was released in 2004. Its goal was to improve upon some of the problems
developers were facing when using Ant.
© Sun Technologies Inc. 1
© Sun Technologies Inc.
Apache Ant features
2
 Ant doesn’t have formal conventions like a common project directory structure or
default behavior.
 You have to tell Ant exactly where to find the source and where to put the output.
 Ant is procedural.
You have to tell Ant exactly what to do and when to do it.
© Sun Technologies Inc.
Getting started with Ant
 Download and unzip the latest version of ANT.
 You should have installed Java and set up path of JAVA_HOME.
 Set PATH environment variable by appending path of ANT.
 Build a basic ANT script and run from command prompt.
3
© Sun Technologies Inc.
Running and checking whether Ant is installed in the system .
4
© Sun Technologies Inc. 5
Writing build.xml file in Notepad
© Sun Technologies Inc. 6
Running build.xml file in command prompt
© Sun Technologies Inc. 7
Running hello.xml file
© Sun Technologies Inc.
Executing hello.xml in command prompt
8
© Sun Technologies Inc.
Executing hello.xml in command prompt
9
© Sun Technologies Inc.
Writing Second target in hello.xml
10
© Sun Technologies Inc.
Executing Second target of hello.xml in command prompt
11
© Sun Technologies Inc.
Executing build.xml in eclipse
12
© Sun Technologies Inc.
Executing build.xml in eclipse
13
© Sun Technologies Inc.
Executing run target
14
© Sun Technologies Inc.
Executing run target in eclipse
15
© Sun Technologies Inc.
Executing second run target in eclipse
16
© Sun Technologies Inc.
Sample Ant build.xml
17
© Sun Technologies Inc.
Apache Maven
18
Apache Maven is a open source build testing tool. It will check the
compilation issue in entire framework based on the concept of a
project object model (POM), Maven can manage project's build,
reporting and documentation.
© Sun Technologies Inc.
Apache Maven features
19
 Maven has conventions.
It knows where your source code is because you followed the convention. Maven’s
Compiler plugin put the bytecode in target/classes, and it produces a JAR file in
target.
 Maven is declarative.
All you need to do is create a pom.xml file and put your source in the default
directory. Maven will take care of the rest.
© Sun Technologies Inc.
Apache Maven Installation
20
 Download latest version of maven and unzip the folder.
 Copy the bin path.
 Go to environment variables find path variable and edit and paste the bin path.
 Create a new variable as Maven_Home and paste the path of Maven.
 And the Java_Home should contain path of the java.
 Go to command prompt and check whether maven is installed or not by typing
mvn –version.
© Sun Technologies Inc.
Apache Maven Installation
21
© Sun Technologies Inc.
Downloading jars from command prompt
22
© Sun Technologies Inc.
Apache Maven Installation
23
First we need to add all the dependencies to pom.xml file.
Then run,
 mvn compile is a command to get dependencies jar from internet
It will download Jars from internet based on pom.xml file.
 mvn install
Command for executing test script from command prompt.
© Sun Technologies Inc.
Apache Maven with eclipse
24
 Install maven plugin in eclipse
Help -> install new software
install the plugin m2e - Maven Integration for Eclipse
 Install java
© Sun Technologies Inc.
Apache Maven with eclipse
25
© Sun Technologies Inc.
Apache Maven with eclipse
26
© Sun Technologies Inc.
Apache Maven with eclipse
27
© Sun Technologies Inc.
Apache Maven with eclipse
28
© Sun Technologies Inc.
Apache Ant VS Maven
29
ANT,
doesn't have formal conventions like a common project directory structure,
you have to tell Ant exactly where to find the source and where to put the
output.
is procedural, you have to tell Ant exactly what to do and when to do it. You
had to tell it to compile, then copy, then compress.
doesn't have a lifecycle, you had to define goals and goal dependencies. You
had to attach a sequence of tasks to each goal/target manually.
© Sun Technologies Inc.
Apache Ant VS Maven
30
Maven,
 has conventions, it already knew where your source code was because you followed
the convention. It put the bytecode in target/classes, and it produced a JAR file in
target.
 is declarative. All you need to do is create a pom.xml file and put your source in the
default directory. Maven will take care of the rest.
© Sun Technologies Inc. 31
Thank you

More Related Content

What's hot

JMeter Load Testing | Load Testing Using JMmeter | JMeter Tutorial For Beginn...
JMeter Load Testing | Load Testing Using JMmeter | JMeter Tutorial For Beginn...JMeter Load Testing | Load Testing Using JMmeter | JMeter Tutorial For Beginn...
JMeter Load Testing | Load Testing Using JMmeter | JMeter Tutorial For Beginn...
Simplilearn
 
PERFORMANCE TESTING USING LOAD RUNNER
PERFORMANCE  TESTING  USING  LOAD RUNNERPERFORMANCE  TESTING  USING  LOAD RUNNER
PERFORMANCE TESTING USING LOAD RUNNER
AjithaG9
 
Stress driven development
Stress driven developmentStress driven development
Stress driven development
mitesh_sharma
 
JMeter JMX Script Creation via BlazeMeter
JMeter JMX Script Creation via BlazeMeterJMeter JMX Script Creation via BlazeMeter
JMeter JMX Script Creation via BlazeMeter
RapidValue
 
Wap tpresentation (Load testing Tool )
Wap tpresentation (Load testing Tool )Wap tpresentation (Load testing Tool )
Wap tpresentation (Load testing Tool )
jagdishdevabhaipatel
 
Presentation on Apache Jmeter
Presentation on Apache JmeterPresentation on Apache Jmeter
Presentation on Apache Jmeter
Sabitri Gaire
 
Introduction to jmeter & how to view jmeter Test Result in Real-Time
Introduction to jmeter & how to view jmeter Test Result in Real-TimeIntroduction to jmeter & how to view jmeter Test Result in Real-Time
Introduction to jmeter & how to view jmeter Test Result in Real-Time
BugRaptors
 
Load Testing with JMeter
Load Testing with JMeterLoad Testing with JMeter
Load Testing with JMeter
Yuriy Gerasimov
 
Open source load testing
Open source load testingOpen source load testing
Open source load testing
Richard Friedman
 
JMeter
JMeterJMeter
Introduction to GOCD - Amulya Sharma
Introduction to GOCD - Amulya SharmaIntroduction to GOCD - Amulya Sharma
Introduction to GOCD - Amulya Sharma
Amulya Sharma
 
Load runner & win runner
Load runner & win runnerLoad runner & win runner
Load runner & win runner
Himanshu
 
Open Source Load Testing: JMeter, Gatling and Taurus
Open Source Load Testing: JMeter, Gatling and TaurusOpen Source Load Testing: JMeter, Gatling and Taurus
Open Source Load Testing: JMeter, Gatling and Taurus
Guy Salton
 
Load Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWSLoad Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWS
Vladimir Ilic
 
JMeter - Performance testing your webapp
JMeter - Performance testing your webappJMeter - Performance testing your webapp
JMeter - Performance testing your webappAmit Solanki
 
Performance testing using hp load runner
Performance testing using hp load runnerPerformance testing using hp load runner
Performance testing using hp load runner
Return on Intelligence
 
JMeter workshop
JMeter workshopJMeter workshop
JMeter workshop
Raman Kansal
 
How to Get Automatic Analysis for Load Test Results
How to Get Automatic Analysis for Load Test ResultsHow to Get Automatic Analysis for Load Test Results
How to Get Automatic Analysis for Load Test Results
Clare Avieli
 
Load testing a website through JMETER
Load testing a website through JMETERLoad testing a website through JMETER
Load testing a website through JMETER
BugRaptors
 
Jmeter load testing
Jmeter load testingJmeter load testing
Jmeter load testingAli Raza
 

What's hot (20)

JMeter Load Testing | Load Testing Using JMmeter | JMeter Tutorial For Beginn...
JMeter Load Testing | Load Testing Using JMmeter | JMeter Tutorial For Beginn...JMeter Load Testing | Load Testing Using JMmeter | JMeter Tutorial For Beginn...
JMeter Load Testing | Load Testing Using JMmeter | JMeter Tutorial For Beginn...
 
PERFORMANCE TESTING USING LOAD RUNNER
PERFORMANCE  TESTING  USING  LOAD RUNNERPERFORMANCE  TESTING  USING  LOAD RUNNER
PERFORMANCE TESTING USING LOAD RUNNER
 
Stress driven development
Stress driven developmentStress driven development
Stress driven development
 
JMeter JMX Script Creation via BlazeMeter
JMeter JMX Script Creation via BlazeMeterJMeter JMX Script Creation via BlazeMeter
JMeter JMX Script Creation via BlazeMeter
 
Wap tpresentation (Load testing Tool )
Wap tpresentation (Load testing Tool )Wap tpresentation (Load testing Tool )
Wap tpresentation (Load testing Tool )
 
Presentation on Apache Jmeter
Presentation on Apache JmeterPresentation on Apache Jmeter
Presentation on Apache Jmeter
 
Introduction to jmeter & how to view jmeter Test Result in Real-Time
Introduction to jmeter & how to view jmeter Test Result in Real-TimeIntroduction to jmeter & how to view jmeter Test Result in Real-Time
Introduction to jmeter & how to view jmeter Test Result in Real-Time
 
Load Testing with JMeter
Load Testing with JMeterLoad Testing with JMeter
Load Testing with JMeter
 
Open source load testing
Open source load testingOpen source load testing
Open source load testing
 
JMeter
JMeterJMeter
JMeter
 
Introduction to GOCD - Amulya Sharma
Introduction to GOCD - Amulya SharmaIntroduction to GOCD - Amulya Sharma
Introduction to GOCD - Amulya Sharma
 
Load runner & win runner
Load runner & win runnerLoad runner & win runner
Load runner & win runner
 
Open Source Load Testing: JMeter, Gatling and Taurus
Open Source Load Testing: JMeter, Gatling and TaurusOpen Source Load Testing: JMeter, Gatling and Taurus
Open Source Load Testing: JMeter, Gatling and Taurus
 
Load Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWSLoad Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWS
 
JMeter - Performance testing your webapp
JMeter - Performance testing your webappJMeter - Performance testing your webapp
JMeter - Performance testing your webapp
 
Performance testing using hp load runner
Performance testing using hp load runnerPerformance testing using hp load runner
Performance testing using hp load runner
 
JMeter workshop
JMeter workshopJMeter workshop
JMeter workshop
 
How to Get Automatic Analysis for Load Test Results
How to Get Automatic Analysis for Load Test ResultsHow to Get Automatic Analysis for Load Test Results
How to Get Automatic Analysis for Load Test Results
 
Load testing a website through JMETER
Load testing a website through JMETERLoad testing a website through JMETER
Load testing a website through JMETER
 
Jmeter load testing
Jmeter load testingJmeter load testing
Jmeter load testing
 

Viewers also liked

Path Testing
Path TestingPath Testing
Path Testing
Sun Technlogies
 
Selenium web driver
Selenium web driverSelenium web driver
Selenium web driver
Sun Technlogies
 
An introduction to Maven
An introduction to MavenAn introduction to Maven
An introduction to Maven
Joao Pereira
 
Demystifying Maven
Demystifying MavenDemystifying Maven
Demystifying Maven
Mike Desjardins
 
Selenium
SeleniumSelenium
Selenium
Sun Technlogies
 
Javascript
JavascriptJavascript
Javascript
Sun Technlogies
 
Automated Deployment with Maven - going the whole nine yards
Automated Deployment with Maven - going the whole nine yardsAutomated Deployment with Maven - going the whole nine yards
Automated Deployment with Maven - going the whole nine yards
John Ferguson Smart Limited
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
Sun Technlogies
 
Maven basic concept
Maven basic conceptMaven basic concept
Maven basic concept
Ming-Sian Lin
 
Maven 3 / Tycho
Maven 3 / TychoMaven 3 / Tycho
Maven 3 / Tycho
Karsten Thoms
 
Hands On with Maven
Hands On with MavenHands On with Maven
Hands On with Maven
Sid Anand
 
Selenium
SeleniumSelenium
Selenium
Kalyan ch
 
Hibernate 3
Hibernate 3Hibernate 3
Hibernate 3
Rajiv Gupta
 
Concurrency and Multithreading Demistified - Reversim Summit 2014
Concurrency and Multithreading Demistified - Reversim Summit 2014Concurrency and Multithreading Demistified - Reversim Summit 2014
Concurrency and Multithreading Demistified - Reversim Summit 2014
Haim Yadid
 
Java Builds with Maven and Ant
Java Builds with Maven and AntJava Builds with Maven and Ant
Java Builds with Maven and Ant
David Noble
 
Version Management in Maven
Version Management in MavenVersion Management in Maven
Version Management in MavenGeert Pante
 
Selenium
SeleniumSelenium
Selenium
Adam Goucher
 

Viewers also liked (20)

XPATH
XPATHXPATH
XPATH
 
Path Testing
Path TestingPath Testing
Path Testing
 
Selenium web driver
Selenium web driverSelenium web driver
Selenium web driver
 
An introduction to Maven
An introduction to MavenAn introduction to Maven
An introduction to Maven
 
Demystifying Maven
Demystifying MavenDemystifying Maven
Demystifying Maven
 
Jira
JiraJira
Jira
 
Selenium
SeleniumSelenium
Selenium
 
Javascript
JavascriptJavascript
Javascript
 
Automated Deployment with Maven - going the whole nine yards
Automated Deployment with Maven - going the whole nine yardsAutomated Deployment with Maven - going the whole nine yards
Automated Deployment with Maven - going the whole nine yards
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
 
Maven basic concept
Maven basic conceptMaven basic concept
Maven basic concept
 
A Case Study of Using Selenium IDE and WebDriver_Word Doc
A Case Study of Using Selenium IDE and WebDriver_Word DocA Case Study of Using Selenium IDE and WebDriver_Word Doc
A Case Study of Using Selenium IDE and WebDriver_Word Doc
 
Maven 3 / Tycho
Maven 3 / TychoMaven 3 / Tycho
Maven 3 / Tycho
 
Hands On with Maven
Hands On with MavenHands On with Maven
Hands On with Maven
 
Selenium
SeleniumSelenium
Selenium
 
Hibernate 3
Hibernate 3Hibernate 3
Hibernate 3
 
Concurrency and Multithreading Demistified - Reversim Summit 2014
Concurrency and Multithreading Demistified - Reversim Summit 2014Concurrency and Multithreading Demistified - Reversim Summit 2014
Concurrency and Multithreading Demistified - Reversim Summit 2014
 
Java Builds with Maven and Ant
Java Builds with Maven and AntJava Builds with Maven and Ant
Java Builds with Maven and Ant
 
Version Management in Maven
Version Management in MavenVersion Management in Maven
Version Management in Maven
 
Selenium
SeleniumSelenium
Selenium
 

Similar to Maven and ANT

Maven
MavenMaven
Maven Introduction
Maven IntroductionMaven Introduction
Maven Introduction
Sandeep Chawla
 
Maven 2 features
Maven 2 featuresMaven 2 features
Maven 2 features
Angel Ruiz
 
Maven: Managing Software Projects for Repeatable Results
Maven: Managing Software Projects for Repeatable ResultsMaven: Managing Software Projects for Repeatable Results
Maven: Managing Software Projects for Repeatable Results
Steve Keener
 
1 app 2 developers 3 servers
1 app 2 developers 3 servers1 app 2 developers 3 servers
1 app 2 developers 3 servers
Mark Myers
 
An Introduction to Maven Part 1
An Introduction to Maven Part 1An Introduction to Maven Part 1
An Introduction to Maven Part 1
MD Sayem Ahmed
 
Build server
Build serverBuild server
Build server
Christophe Vanlancker
 
Introduction to Maven
Introduction to MavenIntroduction to Maven
Introduction to Maven
Onkar Deshpande
 
Apache ANT vs Apache Maven
Apache ANT vs Apache MavenApache ANT vs Apache Maven
Apache ANT vs Apache Maven
Mudit Gupta
 
Build Automation using Maven
Build Automation using Maven Build Automation using Maven
Build Automation using Maven
Ankit Gubrani
 
Codename one
Codename oneCodename one
Django simplified : by weever mbakaya
Django simplified : by weever mbakayaDjango simplified : by weever mbakaya
Django simplified : by weever mbakaya
Mbakaya Kwatukha
 
Apache maven, a software project management tool
Apache maven, a software project management toolApache maven, a software project management tool
Apache maven, a software project management toolRenato Primavera
 
Maven basics
Maven basicsMaven basics
SE2018_Lec-22_-Continuous-Integration-Tools
SE2018_Lec-22_-Continuous-Integration-ToolsSE2018_Lec-22_-Continuous-Integration-Tools
SE2018_Lec-22_-Continuous-Integration-Tools
Amr E. Mohamed
 
A-Z_Maven.pdf
A-Z_Maven.pdfA-Z_Maven.pdf
A-Z_Maven.pdf
Mithilesh Singh
 
Maven
MavenMaven
Can I Contain This?
Can I Contain This?Can I Contain This?
Can I Contain This?
Eficode
 

Similar to Maven and ANT (20)

Manen Ant SVN
Manen Ant SVNManen Ant SVN
Manen Ant SVN
 
Maven
MavenMaven
Maven
 
Maven Introduction
Maven IntroductionMaven Introduction
Maven Introduction
 
Maven 2 features
Maven 2 featuresMaven 2 features
Maven 2 features
 
Maven: Managing Software Projects for Repeatable Results
Maven: Managing Software Projects for Repeatable ResultsMaven: Managing Software Projects for Repeatable Results
Maven: Managing Software Projects for Repeatable Results
 
Exploring Maven SVN GIT
Exploring Maven SVN GITExploring Maven SVN GIT
Exploring Maven SVN GIT
 
1 app 2 developers 3 servers
1 app 2 developers 3 servers1 app 2 developers 3 servers
1 app 2 developers 3 servers
 
An Introduction to Maven Part 1
An Introduction to Maven Part 1An Introduction to Maven Part 1
An Introduction to Maven Part 1
 
Build server
Build serverBuild server
Build server
 
Introduction to Maven
Introduction to MavenIntroduction to Maven
Introduction to Maven
 
Apache ANT vs Apache Maven
Apache ANT vs Apache MavenApache ANT vs Apache Maven
Apache ANT vs Apache Maven
 
Build Automation using Maven
Build Automation using Maven Build Automation using Maven
Build Automation using Maven
 
Codename one
Codename oneCodename one
Codename one
 
Django simplified : by weever mbakaya
Django simplified : by weever mbakayaDjango simplified : by weever mbakaya
Django simplified : by weever mbakaya
 
Apache maven, a software project management tool
Apache maven, a software project management toolApache maven, a software project management tool
Apache maven, a software project management tool
 
Maven basics
Maven basicsMaven basics
Maven basics
 
SE2018_Lec-22_-Continuous-Integration-Tools
SE2018_Lec-22_-Continuous-Integration-ToolsSE2018_Lec-22_-Continuous-Integration-Tools
SE2018_Lec-22_-Continuous-Integration-Tools
 
A-Z_Maven.pdf
A-Z_Maven.pdfA-Z_Maven.pdf
A-Z_Maven.pdf
 
Maven
MavenMaven
Maven
 
Can I Contain This?
Can I Contain This?Can I Contain This?
Can I Contain This?
 

More from Sun Technlogies

HyperText Markup Language - HTML
HyperText Markup Language - HTMLHyperText Markup Language - HTML
HyperText Markup Language - HTML
Sun Technlogies
 
Extended Finite State Machine - EFSM
Extended Finite State Machine - EFSMExtended Finite State Machine - EFSM
Extended Finite State Machine - EFSM
Sun Technlogies
 
Cascading Style Sheets - CSS
Cascading Style Sheets - CSSCascading Style Sheets - CSS
Cascading Style Sheets - CSS
Sun Technlogies
 
Core java
Core javaCore java
Core java
Sun Technlogies
 
Automation Testing
Automation TestingAutomation Testing
Automation Testing
Sun Technlogies
 
Devops
DevopsDevops
QTest
QTest QTest
Mobile Application Testing
Mobile Application TestingMobile Application Testing
Mobile Application Testing
Sun Technlogies
 
Array and functions
Array and functionsArray and functions
Array and functions
Sun Technlogies
 
Sikuli
SikuliSikuli

More from Sun Technlogies (10)

HyperText Markup Language - HTML
HyperText Markup Language - HTMLHyperText Markup Language - HTML
HyperText Markup Language - HTML
 
Extended Finite State Machine - EFSM
Extended Finite State Machine - EFSMExtended Finite State Machine - EFSM
Extended Finite State Machine - EFSM
 
Cascading Style Sheets - CSS
Cascading Style Sheets - CSSCascading Style Sheets - CSS
Cascading Style Sheets - CSS
 
Core java
Core javaCore java
Core java
 
Automation Testing
Automation TestingAutomation Testing
Automation Testing
 
Devops
DevopsDevops
Devops
 
QTest
QTest QTest
QTest
 
Mobile Application Testing
Mobile Application TestingMobile Application Testing
Mobile Application Testing
 
Array and functions
Array and functionsArray and functions
Array and functions
 
Sikuli
SikuliSikuli
Sikuli
 

Recently uploaded

Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
Sharepoint Designs
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
Jelle | Nordend
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Globus
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
informapgpstrackings
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
Globus
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
MayankTawar1
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
XfilesPro
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
ayushiqss
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 

Recently uploaded (20)

Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 

Maven and ANT

  • 1. Java Build tools : Ant and Maven  Ant was the first among “modern” build tools.  It was released in 2000 and in a short period of time became the most popular build tool for Java projects.  It is very easy to learn thus allowing anyone to start using it without any special preparation.  It is based on procedural programming idea.  Maven was released in 2004. Its goal was to improve upon some of the problems developers were facing when using Ant. © Sun Technologies Inc. 1
  • 2. © Sun Technologies Inc. Apache Ant features 2  Ant doesn’t have formal conventions like a common project directory structure or default behavior.  You have to tell Ant exactly where to find the source and where to put the output.  Ant is procedural. You have to tell Ant exactly what to do and when to do it.
  • 3. © Sun Technologies Inc. Getting started with Ant  Download and unzip the latest version of ANT.  You should have installed Java and set up path of JAVA_HOME.  Set PATH environment variable by appending path of ANT.  Build a basic ANT script and run from command prompt. 3
  • 4. © Sun Technologies Inc. Running and checking whether Ant is installed in the system . 4
  • 5. © Sun Technologies Inc. 5 Writing build.xml file in Notepad
  • 6. © Sun Technologies Inc. 6 Running build.xml file in command prompt
  • 7. © Sun Technologies Inc. 7 Running hello.xml file
  • 8. © Sun Technologies Inc. Executing hello.xml in command prompt 8
  • 9. © Sun Technologies Inc. Executing hello.xml in command prompt 9
  • 10. © Sun Technologies Inc. Writing Second target in hello.xml 10
  • 11. © Sun Technologies Inc. Executing Second target of hello.xml in command prompt 11
  • 12. © Sun Technologies Inc. Executing build.xml in eclipse 12
  • 13. © Sun Technologies Inc. Executing build.xml in eclipse 13
  • 14. © Sun Technologies Inc. Executing run target 14
  • 15. © Sun Technologies Inc. Executing run target in eclipse 15
  • 16. © Sun Technologies Inc. Executing second run target in eclipse 16
  • 17. © Sun Technologies Inc. Sample Ant build.xml 17
  • 18. © Sun Technologies Inc. Apache Maven 18 Apache Maven is a open source build testing tool. It will check the compilation issue in entire framework based on the concept of a project object model (POM), Maven can manage project's build, reporting and documentation.
  • 19. © Sun Technologies Inc. Apache Maven features 19  Maven has conventions. It knows where your source code is because you followed the convention. Maven’s Compiler plugin put the bytecode in target/classes, and it produces a JAR file in target.  Maven is declarative. All you need to do is create a pom.xml file and put your source in the default directory. Maven will take care of the rest.
  • 20. © Sun Technologies Inc. Apache Maven Installation 20  Download latest version of maven and unzip the folder.  Copy the bin path.  Go to environment variables find path variable and edit and paste the bin path.  Create a new variable as Maven_Home and paste the path of Maven.  And the Java_Home should contain path of the java.  Go to command prompt and check whether maven is installed or not by typing mvn –version.
  • 21. © Sun Technologies Inc. Apache Maven Installation 21
  • 22. © Sun Technologies Inc. Downloading jars from command prompt 22
  • 23. © Sun Technologies Inc. Apache Maven Installation 23 First we need to add all the dependencies to pom.xml file. Then run,  mvn compile is a command to get dependencies jar from internet It will download Jars from internet based on pom.xml file.  mvn install Command for executing test script from command prompt.
  • 24. © Sun Technologies Inc. Apache Maven with eclipse 24  Install maven plugin in eclipse Help -> install new software install the plugin m2e - Maven Integration for Eclipse  Install java
  • 25. © Sun Technologies Inc. Apache Maven with eclipse 25
  • 26. © Sun Technologies Inc. Apache Maven with eclipse 26
  • 27. © Sun Technologies Inc. Apache Maven with eclipse 27
  • 28. © Sun Technologies Inc. Apache Maven with eclipse 28
  • 29. © Sun Technologies Inc. Apache Ant VS Maven 29 ANT, doesn't have formal conventions like a common project directory structure, you have to tell Ant exactly where to find the source and where to put the output. is procedural, you have to tell Ant exactly what to do and when to do it. You had to tell it to compile, then copy, then compress. doesn't have a lifecycle, you had to define goals and goal dependencies. You had to attach a sequence of tasks to each goal/target manually.
  • 30. © Sun Technologies Inc. Apache Ant VS Maven 30 Maven,  has conventions, it already knew where your source code was because you followed the convention. It put the bytecode in target/classes, and it produced a JAR file in target.  is declarative. All you need to do is create a pom.xml file and put your source in the default directory. Maven will take care of the rest.
  • 31. © Sun Technologies Inc. 31 Thank you