Guide to installing 3rd party JARs

Guide to installing 3rd party JARs

from http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

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.

Example

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>

Available parameters

  • artifactId
  • ArtifactId of the artifact to be installed. Retrieved from POM file if specified.
    Deprecated. No reason given

  • classifier
  • Classifier type of the artifact to be installed. For example, 'sources' or 'javadoc'. Defaults to none which means this is the project's main jar.
    Deprecated. No reason given

  • createChecksum (Default: false)
  • Flag Whether to create checksums(MD5, SHA1) or not.
    Deprecated. No reason given

  • file
  • The file to be deployed
    Deprecated. No reason given

  • generatePom (Default: false)
  • Install a POM for this artifact. Will generate a default POM if none is supplied with the pomFile argument.
    Deprecated. No reason given

  • groupId
  • GroupId of the artifact to be installed. Retrieved from POM file if specified.
    Deprecated. No reason given

  • localRepositoryId
  • The id for the localRepo Deprecated. No reason given

  • localRepositoryPath
  • The path for a specific local repository directory. It will wrap into an ArtifactRepository with localRepoId as id and with default repositoryLayout
    Deprecated. No reason given

  • packaging
  • Packaging type of the artifact to be installed. Retrieved from POM file if specified
    Deprecated. No reason given

  • pomFile
  • Location of an existing POM file to be deployed alongside the main artifact, given by the ${file} parameter.
    Deprecated. No reason given

  • repositoryLayout (Default: default)
  • The type of remote repository layout to deploy to. Try legacy for a Maven 1.x-style repository layout.
    Deprecated. No reason given

  • version
  • Version of the artifact to be installed. Retrieved from POM file if specified
    Deprecated. No reason given

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值