2012年4月25日 星期三

I have a jar that I want to put into my local repository. How can I copy it in?如何放置我自己的jar至maven的儲存庫

I have a jar that I want to put into my local repository. How can I copy it in?


mvn install:install-file
  -Dfile=
  -DgroupId=
  -DartifactId=
  -Dversion=
  -Dpackaging=
  -DgeneratePom=true

Where: "path-to-file"  the path to the file to load
       "group-id"  the group that the file should be registered under
       "artifact-id"  the artifact name for the file
       "version"       the version of the file       "packaging"     the packaging of the file e.g. jar


ex: mvn install:install-file -Dfile=d:\my.jar -DgroupId=com.my -DartifactId=my.jar -Dversion=1.0 -Dpackaging=jar


沒有留言:

張貼留言