anchor.diff:  goto :exit
   
   :install
  -mvn install:install-file -DgroupId=!groupId! -DartifactId=!artifactId! -Dversion=!version! -Dpackaging=!packaging! -Dfile=!file!
  +call mvn install:install-file -DgroupId=!groupId! -DartifactId=!artifactId! -Dversion=!version! -Dpackaging=!packaging! -Dfile=!file!
   goto :exit
   
   :deploy
  -mvn deploy:deploy-file -DgroupId=!groupId! -DartifactId=!artifactId! -Dversion=!version! -Dpackaging=!packaging! -Dfile=!file! -Durl=!repoUrl! -DrepositoryId=!repositoryId!
  +call mvn deploy:deploy-file -DgroupId=!groupId! -DartifactId=!artifactId! -Dversion=!version! -Dpackaging=!packaging! -Dfile=!file! -Durl=!repoUrl! -DrepositoryId=!repositoryId!
   goto :exit
   
   :get
  -mvn dependency:get -DrepoUrl=!repoUrl! -Dartifact=!groupId!:!artifactId!:!version!
  +set success=
  +call mvn dependency:get -DrepoUrl=!repoUrl! -Dartifact=!groupId!:!artifactId!:!version!
  +if defined targetDir (
  +	set repository=%USERPROFILE%\.m2\repository
  +	set localTmp=%TEMP%\%~n0_tmp
  +	type %USERPROFILE%\.m2\settings.xml|findstr /c:localRepository>!localTmp!
  +	set localRepository=
  +	for /f "usebackq tokens=2 delims=<> " %%r in (!localTmp!) do (
  +		if not defined localRepository (
  +			set localRepository=%%r
  +		)
  +	)
  +	set filename=!artifactId!-!version!.jar
  +	set relative=!groupId:.=\!\!artifactId!\!version!\!filename!
  +	call :debug local repository: !localRepository!
  +	call :debug repository: !repository!
  +	call :debug file relative to repository: !relative!
  +	if exist "!localRepository!\!relative!" (
  +		copy /b "!localRepository!\!relative!" !targetDir!\!filename!
  +	) else if exist "!repository!\!relative!" (
  +		copy /b "!repository!\!relative!" !targetDir!\!filename!
  +	)
  +)
   goto :exit
   
   :mvnnotfound
  
positive.code: 	) else if "x!opt!" equ "x-f" (
  		set file=!val!
  	) else if "x!opt!" equ "x-i" (
  		set repositoryId=%%q
  	)
  )
  
  
negative.code: setlocal enabledelayedexpansion
  
  call :debug test maven installation ...
  set mvnfound=
  call mvn --version>nul 2>&1 && set mvnfound=true
  if not defined mvnfound goto :mvnnotfound
  
  set commands=install get deploy
  rem maven get -r:http://repo1.maven.org/maven2/ -m:groupId:artifactId:version [-t:targetDir]
  rem maven install -m:groupId:artifactId:version:packaging -f:x:\path\to\file.ext
  rem maven deploy -r:http://repo1.maven.org/maven2/ -m:groupId:artifactId:version:packaging -f:x:\path\to\file.ext -i:repositoryId
  
  call :debug supported commands: !commands!
  
  call :debug parse arguments ...
  
  set command=
  set repoUrl=http://repo1.maven.org/maven2/
  for %%c in (%*) do (
  	set arg=%%c
  