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
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