Developing JSAGA engine
GIT
mvn scm:bootstrap
TAG={release_tag} mvn scm:bootstrap -DscmVersionType=tag -DscmVersion=$TAG -Dgoals=deploy,site-deploy
git pull git checkout master
mvn -f pom-unreleased.xml deploy mvn release:prepare mvn release:perform
[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on project saga-api-test: failed to get report for org.apache.maven.plugins:maven-javadoc-plugin: Failed to execute goal on project jsaga-adaptor-srm: Could not resolve dependencies for project fr.in2p3.jsaga.adaptor:jsaga-adaptor-srm:jar:1.0.0: The following artifacts could not be resolved: fr.in2p3.jsaga.adaptor:jsaga-adaptor-voms:jar:1.0.0, fr.in2p3.jsaga.adaptor:jsaga-adaptor-globus:jar:1.0.0, fr.in2p3.jsaga:jsaga-adaptoritf:jar:1.0.0, fr.in2p3.jsaga:jsaga-engine:jar:1.0.0: Could not find artifact fr.in2p3.jsaga.adaptor:jsaga-adaptor-voms:jar:1.0.0
cd build/checkout mvn install cd - mvn release:perform
git pull git checkout <yourBranch>
mvn -f pom-unreleased.xml deploy mvn deploy site-deploy
mvn site-deploy -P local
Options +Indexes IndexOptions +NameWidth=* +DescriptionWidth=* AddDescription " " .md5 AddDescription " " .sha1 AddDescription "Tarball distribution" .tar.gz AddDescription "ZIP distribution" .zip AddDescription "GUI Installer" .jar
# Get branch name git ls-remote ssh://git.in2p3.fr/jsaga-contrib # Pull contribution in branch "mergedBranch" git checkout -b mergedBranch master git pull ssh://git.in2p3.fr/jsaga-contrib <branch name> # Merge it in branch "master" git checkout master git merge mergedBranch # Cleanup git branch -d mergedBranch
# Update local repository git pull # Create patch git checkout workingBranch git diff origin/master > mydiff.patch # Apply patch git checkout -b mergedBranch master git apply --stat myDiff.patch git apply --check myDiff.patch git apply myDiff.patch # Merge git checkout master git merge mergedBranch # Delete remote and local branches git push origin :workingBranch git branch -D workingBranch git branch -d mergedBranch git branch -al
# Update local repository git pull # Apply patch git checkout -b mergedBranch master git am --ignore-space-change --ignore-whitespace patch.mbox # Check changes with IDE (GIT -> Push Active Branches...) # Merge git checkout master git merge mergedBranch # Delete local branch git branch -d mergedBranch git branch -al
$ git rev-list -n 1 --before="2011-12-27 00:00" master e0ad6b79cc64d5720a9754231146438ceb1ddaf3 $ git checkout -b new_branch_name e0ad6b79cc64d5720a9754231146438ceb1ddaf3 HEAD is now at e0ad6b7... log message of patch
# Update local repository git pull git checkout workingBranch # perform interactive rebasing onto branch "master" # in case of conflict, add the conflicting file(s) to GIT (but do not commit them) # replace old branch (remote) with rebased branch (local) git push origin :workingBranch git push workingBranch
# Update the release tag git checkout <release_tag> git show git checkout -b <release_tag> git show vim pom.xml git diff git commit -m 'tag bis' pom.xml git tag -f <release_tag> git push origin --tags git branch -D <release_tag>