duguo.org »  last updated 17:11, 14 January 2008 by Du, Guo

Maven Add New Artifact Directly

From duguo.org

Jump to: navigation, search

deploy-file.bat

  • First deploy to you local folder
call mvn deploy:deploy-file -Durl=file://.  -Dfile=js-wrapper-3.2.1.jar -DpomFile=pom.xml
  • Then copy the folder to your repository


install-file.bat

For windows user, you may using following script to install file with source code to your local repository

call mvn install:install-file -Dpackaging=jar -DcreateChecksum=true -Dclassifier=sources -DgroupId=org.tanukisoftware -DartifactId=js-wrapper -Dversion=3.2.1 -Dfile=js-wrapper-3.2.1-sources.jar
call mvn install:install-file -Dpackaging=jar -DcreateChecksum=true -DgeneratePom=true -DgroupId=org.tanukisoftware -DartifactId=js-wrapper -Dversion=3.2.1 -Dfile=js-wrapper-3.2.1.jar
pause