maven 安装本地jar包,通过install插件的install-file mojo进行工作,具体可通过如下命令进行查看

mvn help:describe -Dplugin=install -Ddetail

下面是一个实例:

mvn install:install-file -Dfile=X:/core-3.3.1-SNAPSHOT.jar -DgroupId=com.google.zxing -DartifactId=zxing-parent -Dversion=3.3.1-SNAPSHOT -Dpackaging=jar

下面是我运行的部分相关的结果:

install:install-file
Description: Installs a file in the local repository.
Implementation: org.apache.maven.plugin.install.InstallFileMojo
Language: java Available parameters: artifactId
User property: artifactId
ArtifactId of the artifact to be installed. Retrieved from POM file if
one is specified. classifier
User property: 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
artifact. createChecksum (Default: false)
User property: createChecksum
Flag whether to create checksums (MD5, SHA-) or not. file
Required: true
User property: file
The file to be installed in the local repository. generatePom
User property: generatePom
Generate a minimal POM for the artifact if none is supplied via the
parameter pomFile. Defaults to true if there is no existing POM in the
local repository yet. groupId
User property: groupId
GroupId of the artifact to be installed. Retrieved from POM file if one
is specified. javadoc
User property: javadoc
The bundled API docs for the artifact. localRepositoryPath
User property: localRepositoryPath
The path for a specific local repository directory. If not specified the
local repository path configured in the Maven settings will be used. packaging
User property: packaging
Packaging type of the artifact to be installed. Retrieved from POM file
if one is specified. pomFile
User property: pomFile
Location of an existing POM file to be installed alongside the main
artifact, given by the file parameter. repositoryLayout (Default: default)
Required: true
User property: repositoryLayout
The type of remote repository layout to install to. Try legacy for a
Maven .x-style repository layout. sources
User property: sources
The bundled sources for the artifact. updateReleaseInfo (Default: false)
User property: updateReleaseInfo
Whether to update the metadata to make the artifact a release version. version
User property: version
Version of the artifact to be installed. Retrieved from POM file if one
is specified.

maven-本地安装jar包的更多相关文章

  1. maven本地安装jar包同时生成pom文件

    maven 本地安装jar包:mvn install:install-file -Dfile=本地路径/ojdbc12.jar -DgroupId=com.oracle -DartifactId=oj ...

  2. Maven本地安装JAR包组件

    http://www.mkyong.com/maven/how-to-add-oracle-jdbc-driver-in-your-maven-local-repository/ mvn instal ...

  3. Maven 手动安装JAR包到本地maven仓库后,但在项目中依旧报错找不到JAR包解决方法

    本博客包含的内容: ①手动安装jar包到本地仓库: ②解决Missing artifact org.source.fastdfs:fastdfs:jar问题 .personSunflowerP { b ...

  4. maven 手动安装jar包

    1.问题 maven有时候在pom文件引入jar包会报错,所以可以通过手动导入jar包的方式导入. 2.解决: 通过maven命令导入jar包, mvn install:install-file -D ...

  5. 使用maven命令安装jar包到本地仓库

    第三方jar包在开发工具中引入后编译没问题, 启动调试包括打包时会提示找不到jar包的错误.需要上传到maven仓库中,并在pom文件内引入. maven命令: 安装指定文件到本地仓库命令:mvn i ...

  6. maven指令安装jar包到本地仓库

    在项目配置过程中,偶尔会遇到jar包下载不来的情况,而同事又有相应的jar包,那么就可以通过maven安装指令直接将jar包安装到自己的本地仓库了. 安装指令: mvn install:install ...

  7. Maven命令安装jar包到本地仓库

    https://blog.csdn.net/moxiong3212/article/details/78767480 当需要的jar包在中央仓库找不到或者是想把自己生成的jar包放到的Maven仓库中 ...

  8. 使用Maven命令安装jar包到repo中

    项目中可能会碰到很多jar包,使用maven update不能更新,或者jar包是拷贝过来,不能编译的情况.此时就需要手动使用命令行安装. 例如Demo项目中提示缺少四个jar包,但是在repo中已经 ...

  9. 使用Maven命令安装jar包到仓库中

    项目中可能会碰到很多jar包,使用maven update不能更新,或者jar包是拷贝过来,不能编译的情况.此时就需要手动使用命令行安装. 例如Demo项目中提示缺少四个jar包,但是在repo中已经 ...

  10. maven手动安装jar包到本地仓库,以ojdbc6为例

    在做mybatis generator的中文注释实现时,感觉每次都要在配置文件中指定ojdbc6的位置太麻烦了,别人用也不方便,没有的还得自己去下,所以就想直接把ojdbc6打包到项目里,这样拿到就可 ...

随机推荐

  1. vue中 el [$el] 的理解

    <template> <div class="a"> <div class="basic" ref="ba"& ...

  2. W3C网页标准

    W3C标准是一些列标准的集合!在各个企业的基础上做一定的整合,形成一套标准集,便于推广和使用! 根据网页主要由三部分组成:结构(Structure).表现(Presentation)和行为(Behav ...

  3. 【快学springboot】在springboot中写单元测试

    前言 很多公司都有写单元测试的硬性要求,在提交代码的时候,如果单测通不过或者说单元测试各种覆盖率不达标,会被拒绝合并代码.写单元测试,也是保证代码质量的一种方式. junit单元测试 相信绝大多数的J ...

  4. 图论介绍(Graph Theory)

    1 图论概述 1.1 发展历史 第一阶段: 1736:欧拉发表首篇关于图论的文章,研究了哥尼斯堡七桥问题,被称为图论之父 1750:提出了拓扑学的第一个定理,多面体欧拉公式:V-E+F=2 第二阶段( ...

  5. 标准模板库中的链表(list)

    //C++数据结构与算法(第4版) Adam Drozdek 著  徐丹  吴伟敏<<清华大学出版社>> 头文件:include<list> list() 创建一个 ...

  6. 第1节 kafka消息队列:10、flume与kafka的整合使用

    11.flume与kafka的整合 实现flume监控某个目录下面的所有文件,然后将文件收集发送到kafka消息系统中 第一步:flume下载地址 http://archive.cloudera.co ...

  7. Unnatural

    1. 纪录片:非自然选择 1.1 CRISPR-Cas9的出现 1.2 故事1:先天性基因缺陷而失明的小孩 1.3 故事2:基因变异的蚊子 1.4 基因技术应用的现状 1.5 担忧 2. CRISPR ...

  8. Python django 安装 mysqlclient 失败

    使用命令安装失败: C:\Program Files (x86)\Python\Python37-\Scripts>pip3..exe install mysqlclient Collectin ...

  9. H.264 SODB RBSP EBSP的区别

    SODB(String of Data Bits,数据比特串): 最原始,未经过处理的编码数据 RBSP(Raw Byte Sequence Payload,原始字节序列载荷): 在SODB的后面填加 ...

  10. Windows篇:文件对比软件->"DiffMerge"

    文件对比软件->"DiffMerge" DiffMerge是什么? 如果没有DiffMerge! 想想一下,有两篇10000字的文章,找不同,眼睛都要看花吧.有了DiffMe ...