添加本地jar文件到本地maven倉庫

添加本地jar文件到本地maven倉庫
2011年09月01日
   mvn install:install-file -Dfile=easyjweb-core-1.0-m3.jar -DgroupId=com.easyjf.easyjweb -DartifactId=easyjweb-core -Dversion=1.0-m3 -Dpackaging=jar
  mvn install:install-file -Dfile=easyjweb-ext-1.0-m3.jar -DgroupId=com.easyjf.easyjweb -DartifactId=easyjweb-ext -Dversion=1.0-m3 -Dpackaging=jar
  說明:
  上面的第一條命令是把easyjweb-core-1.0-m3.jar傳到了本地倉庫中(假設本地倉庫地址爲:E:\app\m2\repository\),上傳到倉庫中的jar包名爲easyjweb-core-1.0-m3.jar,目錄結構爲com/easyjf/easyjweb/easyjweb-core/1.0-m3/easyjweb- core-1.0-m3.jar
  第二條命令是把easyjweb-ext-1.0-m3.jar傳到了本地倉庫中(假設本地倉庫地址爲:E:\app\m2\repository\),上傳到倉庫中的jar包名爲easyjweb-ext-1.0-m3.jar,目錄結構爲com/easyjf/easyjweb/easyjweb-ext/1.0-m3/easyjweb-e xt-1.0-m3.jar
  
  
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章