SlideShare a Scribd company logo
1 of 21
By :
Gayathiry
1. A very brief introduction to source control
 ◦ What is source control
 ◦ Why we need it
 ◦ How to manage (commands can be used/ things needs
   to be considered before commit)
2.
 ◦   “Hello Jaffna” Compile it and run using command line
 ◦   Development tools and build tools
 ◦   Create project structure with specified archtype
 ◦   Simple maven targets
 ◦   Build and run using maven
3.
 ◦   create account and repository on github
 ◦   Install and setup github
 ◦   fork and clone project
 ◦   pull/push request
4.
 ◦   Fork and clone yshool
 ◦   Pull yschool to local repo
 ◦   Clean and deploy using maven
 ◦   Make some change push it back
   tracks and provides control over changes to
    source code

   Examples :
    •   Github
    •   SVN(Subversion)
    •   CVS
    •   etc
   track files
   Periodically commit
   history will help to collaborate with other
    developers
   merge between other developers
   compare and revert with previous version of
    project/individual files
   Getting and Creating Projects
   Basic Snapshotting
   Branching and Merging
   Sharing and Updating Projects
   Inspection and Comparison
   Make sure that you are working on the latest
    version of a file.
   Check out only what you need.
   Check in promptly.
   Write good check-in comments.
   public class AppTest{

       public static void main(String [] args){
            System.out.println("Hello Jaffna!");
       }
    }
   Compile using command line
    • Javac AppTest.java
    • Java AppTest
   Build process is repetitive process where
    programmer builds the project again and
    again to test the changes in the project code
   Build tools automate the repetitive process
    and allows the programmer to concentrate on
    the project development
   Building in a single click
   Dependency management
   Versioning
   Compile Java code, build jars
   Execute tests and report results, fail build on
    failed tests
   Run quality-check tools
    (PMD, Findbugs, Checkstyles)
   File generation
    (XmlBeans, Xsl, Velocity, AspectJ)
   Property expansion / token substitution
   software project management and
    comprehension tool
    Based on the concept of a project object
    model (POM),
   Maven can manage a project's build,
    reporting and documentation from a central
    piece of information.
   In Maven, an archetype is a template of a
    project which is combined with some user
    input to produce a working Maven project
   mvn archetype:generate -
    DarchetypeArtifactId=maven-archetype-
    webapp -DgroupId=package-name -
    DartifactId=project-name
   Project – Top level
   modelVersion - what version of the object model
    this POM
   groupId - unique identifier of the organization
   artifactId - unique base name of the primary
    artifact/context
   packaging - package type
   version
   name - display name
   url - where the project's site can be found
   description - basic description of your project
   mvn   compile
   mvn   test
   mvn   install
   mvn   package
   mvn   clean

   http://maven.apache.org/guides/getting-
    started/index.html#How_do_I_compile_my_a
    pplication_sources
   git is a distributed version control system
   Is a place where we store our publicly
    available source code for client libraries.
   Getting and Creating Projects
    • Init
    • clone
   Basic Snapshotting
    •   add
    •   status
    •   diff
    •   commit
    •   reset
    •   rm, mv
   Branching and Merging
    •   branch
    •   checkout
    •   merge
    •   log
    •   tag
   Sharing and Updating Projects
    • fetch, pull
    • push
    • remote
   Inspection and Comparison
    • log
    • diff
   Set Up Git
   Add git plugin
    • Download : https://github.com/rishabhsrao/peek-
      into-github/downloads
    • Instruction
      : http://cloud.github.com/downloads/rishabhsrao/
      peek-into-github/README.txt
   Create A Repository
   Fork A Repository
   Created a maven project
   Setup git
   Push that to your account
   Fork and clone and existing project
   Send fetch & pull requests
Session 2

More Related Content

What's hot

Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence Parag Gajbhiye
 
Introduction to Apache Maven
Introduction to Apache MavenIntroduction to Apache Maven
Introduction to Apache MavenRajind Ruparathna
 
Jenkins - Continuous Integration after Hudson, CruiseControl, and home built
Jenkins - Continuous Integration after Hudson, CruiseControl, and home builtJenkins - Continuous Integration after Hudson, CruiseControl, and home built
Jenkins - Continuous Integration after Hudson, CruiseControl, and home builtMark Waite
 
Using CI for continuous delivery Part 1
Using CI for continuous delivery Part 1Using CI for continuous delivery Part 1
Using CI for continuous delivery Part 1Vishal Biyani
 
Introduction to jenkins
Introduction to jenkinsIntroduction to jenkins
Introduction to jenkinsAbe Diaz
 
An introduction to Maven
An introduction to MavenAn introduction to Maven
An introduction to MavenJoao Pereira
 
Exploring the power of Gradle in android studio - Basics & Beyond
Exploring the power of Gradle in android studio - Basics & BeyondExploring the power of Gradle in android studio - Basics & Beyond
Exploring the power of Gradle in android studio - Basics & BeyondKaushal Dhruw
 
Continuous delivery with open source tools
Continuous delivery with open source toolsContinuous delivery with open source tools
Continuous delivery with open source toolsSebastian Helzle
 
Ci jenkins maven svn
Ci jenkins maven svnCi jenkins maven svn
Ci jenkins maven svnAnkur Goyal
 
Build Automation using Maven
Build Automation using Maven Build Automation using Maven
Build Automation using Maven Ankit Gubrani
 
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 yardsJohn Ferguson Smart Limited
 
Gradle: One technology to build them all
Gradle: One technology to build them allGradle: One technology to build them all
Gradle: One technology to build them allBonitasoft
 

What's hot (19)

Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
 
Jenkins CI
Jenkins CIJenkins CI
Jenkins CI
 
Introduction to Apache Maven
Introduction to Apache MavenIntroduction to Apache Maven
Introduction to Apache Maven
 
Jenkins
JenkinsJenkins
Jenkins
 
Jenkins - Continuous Integration after Hudson, CruiseControl, and home built
Jenkins - Continuous Integration after Hudson, CruiseControl, and home builtJenkins - Continuous Integration after Hudson, CruiseControl, and home built
Jenkins - Continuous Integration after Hudson, CruiseControl, and home built
 
Introduction to Maven
Introduction to MavenIntroduction to Maven
Introduction to Maven
 
Using CI for continuous delivery Part 1
Using CI for continuous delivery Part 1Using CI for continuous delivery Part 1
Using CI for continuous delivery Part 1
 
Introduction to jenkins
Introduction to jenkinsIntroduction to jenkins
Introduction to jenkins
 
An introduction to Maven
An introduction to MavenAn introduction to Maven
An introduction to Maven
 
Exploring the power of Gradle in android studio - Basics & Beyond
Exploring the power of Gradle in android studio - Basics & BeyondExploring the power of Gradle in android studio - Basics & Beyond
Exploring the power of Gradle in android studio - Basics & Beyond
 
Continuous delivery with open source tools
Continuous delivery with open source toolsContinuous delivery with open source tools
Continuous delivery with open source tools
 
Apache Maven
Apache MavenApache Maven
Apache Maven
 
Ci jenkins maven svn
Ci jenkins maven svnCi jenkins maven svn
Ci jenkins maven svn
 
Maven Nexus
Maven NexusMaven Nexus
Maven Nexus
 
Git best practices workshop
Git best practices workshopGit best practices workshop
Git best practices workshop
 
Build Automation using Maven
Build Automation using Maven Build Automation using Maven
Build Automation using Maven
 
Jenkins
JenkinsJenkins
Jenkins
 
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
 
Gradle: One technology to build them all
Gradle: One technology to build them allGradle: One technology to build them all
Gradle: One technology to build them all
 

Viewers also liked

Keagen Mathiew Koch Slide Show
Keagen Mathiew Koch Slide ShowKeagen Mathiew Koch Slide Show
Keagen Mathiew Koch Slide Showlolagirlkoch
 
Markologis
MarkologisMarkologis
Markologisnickdp
 
India Presentation 1
India Presentation 1India Presentation 1
India Presentation 1johnbromley
 
Code.Group
Code.GroupCode.Group
Code.Groupnickdp
 
Article On Green Field Project
Article On Green Field ProjectArticle On Green Field Project
Article On Green Field Projectmkg2803
 
India Presentation
India PresentationIndia Presentation
India Presentationjohnbromley
 

Viewers also liked (8)

Keagen Mathiew Koch Slide Show
Keagen Mathiew Koch Slide ShowKeagen Mathiew Koch Slide Show
Keagen Mathiew Koch Slide Show
 
Markologis
MarkologisMarkologis
Markologis
 
Session 2
Session 2Session 2
Session 2
 
India Presentation 1
India Presentation 1India Presentation 1
India Presentation 1
 
Warsaw
WarsawWarsaw
Warsaw
 
Code.Group
Code.GroupCode.Group
Code.Group
 
Article On Green Field Project
Article On Green Field ProjectArticle On Green Field Project
Article On Green Field Project
 
India Presentation
India PresentationIndia Presentation
India Presentation
 

Similar to Session 2

Jenkins advance topic
Jenkins advance topicJenkins advance topic
Jenkins advance topicKalkey
 
Intelligent Projects with Maven - DevFest Istanbul
Intelligent Projects with Maven - DevFest IstanbulIntelligent Projects with Maven - DevFest Istanbul
Intelligent Projects with Maven - DevFest IstanbulMert Çalışkan
 
Java Build Tools
Java Build ToolsJava Build Tools
Java Build Tools­Avishek A
 
Azure DevOps for JavaScript Developers
Azure DevOps for JavaScript DevelopersAzure DevOps for JavaScript Developers
Azure DevOps for JavaScript DevelopersSarah Dutkiewicz
 
Jenkins advance topic
Jenkins advance topicJenkins advance topic
Jenkins advance topicGourav Varma
 
Presentation 1 open source tools in continuous integration environment v1.0
Presentation 1   open source tools in continuous integration environment v1.0Presentation 1   open source tools in continuous integration environment v1.0
Presentation 1 open source tools in continuous integration environment v1.0Jasmine Conseil
 
Maven in mulesoft
Maven in mulesoftMaven in mulesoft
Maven in mulesoftvenkata20k
 
CICD with SharePoint SPFx A useful overview
CICD with SharePoint SPFx A useful overviewCICD with SharePoint SPFx A useful overview
CICD with SharePoint SPFx A useful overviewpdalian
 
BMO - Intelligent Projects with Maven
BMO - Intelligent Projects with MavenBMO - Intelligent Projects with Maven
BMO - Intelligent Projects with MavenMert Çalışkan
 
Version Control and Continuous Integration
Version Control and Continuous IntegrationVersion Control and Continuous Integration
Version Control and Continuous IntegrationGeff Henderson Chang
 
Jbossworld Presentation
Jbossworld PresentationJbossworld Presentation
Jbossworld PresentationDan Hinojosa
 
Maven 2 features
Maven 2 featuresMaven 2 features
Maven 2 featuresAngel Ruiz
 
Part 2 improving your software development v1.0
Part 2   improving your software development v1.0Part 2   improving your software development v1.0
Part 2 improving your software development v1.0Jasmine Conseil
 
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 worldDmitry Bakaleinik
 
DevOps on AWS: Accelerating Software Delivery with the AWS Developer Tools
DevOps on AWS: Accelerating Software Delivery with the AWS Developer ToolsDevOps on AWS: Accelerating Software Delivery with the AWS Developer Tools
DevOps on AWS: Accelerating Software Delivery with the AWS Developer ToolsAmazon Web Services
 

Similar to Session 2 (20)

Maven
MavenMaven
Maven
 
Jenkins advance topic
Jenkins advance topicJenkins advance topic
Jenkins advance topic
 
Intelligent Projects with Maven - DevFest Istanbul
Intelligent Projects with Maven - DevFest IstanbulIntelligent Projects with Maven - DevFest Istanbul
Intelligent Projects with Maven - DevFest Istanbul
 
Java Build Tools
Java Build ToolsJava Build Tools
Java Build Tools
 
Azure DevOps for JavaScript Developers
Azure DevOps for JavaScript DevelopersAzure DevOps for JavaScript Developers
Azure DevOps for JavaScript Developers
 
Jenkins advance topic
Jenkins advance topicJenkins advance topic
Jenkins advance topic
 
Presentation 1 open source tools in continuous integration environment v1.0
Presentation 1   open source tools in continuous integration environment v1.0Presentation 1   open source tools in continuous integration environment v1.0
Presentation 1 open source tools in continuous integration environment v1.0
 
Maven in mulesoft
Maven in mulesoftMaven in mulesoft
Maven in mulesoft
 
Devops
DevopsDevops
Devops
 
Maven Introduction
Maven IntroductionMaven Introduction
Maven Introduction
 
CICD with SharePoint SPFx A useful overview
CICD with SharePoint SPFx A useful overviewCICD with SharePoint SPFx A useful overview
CICD with SharePoint SPFx A useful overview
 
BMO - Intelligent Projects with Maven
BMO - Intelligent Projects with MavenBMO - Intelligent Projects with Maven
BMO - Intelligent Projects with Maven
 
Version Control and Continuous Integration
Version Control and Continuous IntegrationVersion Control and Continuous Integration
Version Control and Continuous Integration
 
Jbossworld Presentation
Jbossworld PresentationJbossworld Presentation
Jbossworld Presentation
 
Maven 2 features
Maven 2 featuresMaven 2 features
Maven 2 features
 
Part 2 improving your software development v1.0
Part 2   improving your software development v1.0Part 2   improving your software development v1.0
Part 2 improving your software development v1.0
 
Agile Software Development & Tools
Agile Software Development & ToolsAgile Software Development & Tools
Agile Software Development & 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
 
DevOps on AWS: Accelerating Software Delivery with the AWS Developer Tools
DevOps on AWS: Accelerating Software Delivery with the AWS Developer ToolsDevOps on AWS: Accelerating Software Delivery with the AWS Developer Tools
DevOps on AWS: Accelerating Software Delivery with the AWS Developer Tools
 
Build Time Hacking
Build Time HackingBuild Time Hacking
Build Time Hacking
 

Recently uploaded

Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 

Recently uploaded (20)

Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

Session 2

  • 2. 1. A very brief introduction to source control ◦ What is source control ◦ Why we need it ◦ How to manage (commands can be used/ things needs to be considered before commit) 2. ◦ “Hello Jaffna” Compile it and run using command line ◦ Development tools and build tools ◦ Create project structure with specified archtype ◦ Simple maven targets ◦ Build and run using maven
  • 3. 3. ◦ create account and repository on github ◦ Install and setup github ◦ fork and clone project ◦ pull/push request 4. ◦ Fork and clone yshool ◦ Pull yschool to local repo ◦ Clean and deploy using maven ◦ Make some change push it back
  • 4. tracks and provides control over changes to source code  Examples : • Github • SVN(Subversion) • CVS • etc
  • 5. track files  Periodically commit  history will help to collaborate with other developers  merge between other developers  compare and revert with previous version of project/individual files
  • 6. Getting and Creating Projects  Basic Snapshotting  Branching and Merging  Sharing and Updating Projects  Inspection and Comparison
  • 7. Make sure that you are working on the latest version of a file.  Check out only what you need.  Check in promptly.  Write good check-in comments.
  • 8. public class AppTest{ public static void main(String [] args){ System.out.println("Hello Jaffna!"); } }  Compile using command line • Javac AppTest.java • Java AppTest
  • 9. Build process is repetitive process where programmer builds the project again and again to test the changes in the project code  Build tools automate the repetitive process and allows the programmer to concentrate on the project development  Building in a single click
  • 10. Dependency management  Versioning  Compile Java code, build jars  Execute tests and report results, fail build on failed tests  Run quality-check tools (PMD, Findbugs, Checkstyles)  File generation (XmlBeans, Xsl, Velocity, AspectJ)  Property expansion / token substitution
  • 11. software project management and comprehension tool  Based on the concept of a project object model (POM),  Maven can manage a project's build, reporting and documentation from a central piece of information.
  • 12. In Maven, an archetype is a template of a project which is combined with some user input to produce a working Maven project  mvn archetype:generate - DarchetypeArtifactId=maven-archetype- webapp -DgroupId=package-name - DartifactId=project-name
  • 13. Project – Top level  modelVersion - what version of the object model this POM  groupId - unique identifier of the organization  artifactId - unique base name of the primary artifact/context  packaging - package type  version  name - display name  url - where the project's site can be found  description - basic description of your project
  • 14.
  • 15. mvn compile  mvn test  mvn install  mvn package  mvn clean  http://maven.apache.org/guides/getting- started/index.html#How_do_I_compile_my_a pplication_sources
  • 16. git is a distributed version control system  Is a place where we store our publicly available source code for client libraries.
  • 17. Getting and Creating Projects • Init • clone  Basic Snapshotting • add • status • diff • commit • reset • rm, mv
  • 18. Branching and Merging • branch • checkout • merge • log • tag  Sharing and Updating Projects • fetch, pull • push • remote  Inspection and Comparison • log • diff
  • 19. Set Up Git  Add git plugin • Download : https://github.com/rishabhsrao/peek- into-github/downloads • Instruction : http://cloud.github.com/downloads/rishabhsrao/ peek-into-github/README.txt  Create A Repository  Fork A Repository
  • 20. Created a maven project  Setup git  Push that to your account  Fork and clone and existing project  Send fetch & pull requests