maven-本地安装jar包
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包的更多相关文章
- maven本地安装jar包同时生成pom文件
maven 本地安装jar包:mvn install:install-file -Dfile=本地路径/ojdbc12.jar -DgroupId=com.oracle -DartifactId=oj ...
- Maven本地安装JAR包组件
http://www.mkyong.com/maven/how-to-add-oracle-jdbc-driver-in-your-maven-local-repository/ mvn instal ...
- Maven 手动安装JAR包到本地maven仓库后,但在项目中依旧报错找不到JAR包解决方法
本博客包含的内容: ①手动安装jar包到本地仓库: ②解决Missing artifact org.source.fastdfs:fastdfs:jar问题 .personSunflowerP { b ...
- maven 手动安装jar包
1.问题 maven有时候在pom文件引入jar包会报错,所以可以通过手动导入jar包的方式导入. 2.解决: 通过maven命令导入jar包, mvn install:install-file -D ...
- 使用maven命令安装jar包到本地仓库
第三方jar包在开发工具中引入后编译没问题, 启动调试包括打包时会提示找不到jar包的错误.需要上传到maven仓库中,并在pom文件内引入. maven命令: 安装指定文件到本地仓库命令:mvn i ...
- maven指令安装jar包到本地仓库
在项目配置过程中,偶尔会遇到jar包下载不来的情况,而同事又有相应的jar包,那么就可以通过maven安装指令直接将jar包安装到自己的本地仓库了. 安装指令: mvn install:install ...
- Maven命令安装jar包到本地仓库
https://blog.csdn.net/moxiong3212/article/details/78767480 当需要的jar包在中央仓库找不到或者是想把自己生成的jar包放到的Maven仓库中 ...
- 使用Maven命令安装jar包到repo中
项目中可能会碰到很多jar包,使用maven update不能更新,或者jar包是拷贝过来,不能编译的情况.此时就需要手动使用命令行安装. 例如Demo项目中提示缺少四个jar包,但是在repo中已经 ...
- 使用Maven命令安装jar包到仓库中
项目中可能会碰到很多jar包,使用maven update不能更新,或者jar包是拷贝过来,不能编译的情况.此时就需要手动使用命令行安装. 例如Demo项目中提示缺少四个jar包,但是在repo中已经 ...
- maven手动安装jar包到本地仓库,以ojdbc6为例
在做mybatis generator的中文注释实现时,感觉每次都要在配置文件中指定ojdbc6的位置太麻烦了,别人用也不方便,没有的还得自己去下,所以就想直接把ojdbc6打包到项目里,这样拿到就可 ...
随机推荐
- Jsp和Servlet关系
为什么会出现Jsp? 其实对于服务器来说它只认识Servlet,我们完全可以在Servlet用resp.getWriter().write("");画出网页的界面,但是仅仅一个很简 ...
- JS简单回弹原理
/* *JS简单回弹原理 */ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "ht ...
- 零基础学完Python的7大就业方向,哪个赚钱多?
“ 我想学 Python,但是学完 Python 后都能干啥 ?” “ 现在学 Python,哪个方向最简单?哪个方向最吃香 ?” “ …… ” 相信不少 Python 的初学者,都会遇到上面的这些问 ...
- 获取navigationController中的控制器
@implementation UIViewController (UIViewControllerExt) - (void)popViewController:(NSString *)control ...
- JS 删除对象中指定的值
1,通过delete删除 2,通过filter filter需要在循环的时候判断一下是true还是false,是true才会返回这个元素: let arr1 = [1,2,3]; let arr2 = ...
- JS 一键复制插件应用 和 原生实现
一.目前来说复制功能 clipboard.js基本可以兼容所有浏览器,可以任意复制文本,官方地址 https://clipboardjs.com/ 1.进入官方网站下载 然后引入 <script ...
- RabbitMq学习笔记——配置
1.RabbitMq server官网下载地址:https://www.rabbitmq.com 2.Rabbit MQ 是建立在强大的Erlang OTP平台上,因此安装Rabbit MQ的前提是安 ...
- Ajax--jQuery使用Ajax
1.jQuery对Ajax操作进行了封装,在jQuery最底层的方法是$.ajax(),第二层是 load() , $.get() 和 $.post(),第三层是 $.getScript() 和 $. ...
- JDBC--批量处理
1.当需要成批插入或者更新记录时,可以采用Java的批量更新机制,这一机制允许多条语句一次性提交给数据库批量处理,这样可以提高处理速度. 2.JDBC的批量处理语句包括两个方法: --1)addBat ...
- ng之邮箱校验
$scope.sendMail = function () { // console.log($scope.inputValue.inputEmail); //校验邮箱格式是否正确 if (!$sco ...