Posted on 2009-05-06 11:06
不需要解释 阅读(113)
评论(0) 编辑 收藏
Often times you will have 3rd party JARs that you need to put in your local repository for use in your builds. The JARs must be placed in the local repository in the correct place in order for it to be correctly picked up by Maven. To make this easier, and less error prone, we have provide a goal in the install plug-in which should make this relatively painless. To install a JAR in the local repository use the following command:
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> \
-DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
for example:
mvn install:install-file -Dfile=jazzy-core-0.5.2.jar -DgroupId=jazzy-core -DartifactId=jazzy -Dversion=0.5.2 -Dpackaging=jar