gerrit官方编译插件的方法
来源:互联网 发布:毛体书法知乎 编辑:程序博客网 时间:2024/05/16 14:56
Gerrit Code Review - Building plugins
- Maven driven build
- Exception 1:
- Exception 2:
- Buck in tree driven
- Buck standalone driven
From build process perspective there are three types of plugins:
Maven driven
Buck in tree driven
Buck standalone driven
These types can be combined: if both files in plugin’s root directory exist:
BUCK
pom.xml
the plugin can be built with both Buck and Maven.
Maven driven build
If plugin contains pom.xml
file, it can be built with Maven as usually:
mvn clean package
Exceptions from the rule above:
Exception 1:
Plugin’s pom.xml
references snapshot version of plugin API: 2.8-SNAPSHOT
. In this case there are two possibilities:
switch to release API. Change plugin API version in
pom.xml
from2.8-SNAPSHOT
to2.8.1
and repeat step 1 above.build and install
SNAPSHOT
version of plugin API in local Maven repository:
./tools/maven/api.sh install
Exception 2:
Plugin’s pom.xml
references other own or foreign (unpublished) libraries or even other Gerrit plugins. These libraries and/or plugins must be built and installed in local Maven repository. Clone the related projects and issue
mvn install
Repeat step 1. above.
Buck in tree driven
The fact that plugin contains BUCK
file doesn’t mean that building this plugin from the plugin directory works. For now it doesn’t. Buck in tree driven means it can only be built from within Gerrit tree. Clone or link the plugin into gerrit/plugins directory:
cd gerritbuck build plugins/<plugin-name>:<plugin-name>
The output can be normally found in the following directory:
buck-out/gen/plugins/<plugin-name>/<plugin-name>.jar
Some plugins describe their build process in src/main/resources/Documentation/build.md
file. It may worth checking.
Buck standalone driven
Only few plugins support that mode for now:
cd reviewersbuck build plugin
Part of Gerrit Code Review
- gerrit官方编译插件的方法
- gerrit编译插件方法
- 编译Gerrit及其插件的例子
- linux单独编译Gerrit的插件例子cookbook
- Gerrit插件开发之判断用户是否已登录的方法
- openfire插件的编译方法
- android平台下载和编译方法(官方的方法)
- gerrit管理员快速创建项目的方法
- Topcoder 插件官方配置方法
- gerrit配置replication插件
- Gerrit插件开发手记
- openfire单独编译指定插件的方法
- Gerrit插件开发之读取etc下的配置文件
- gerrit 安装方法
- 【FAQ】如何安装gerrit插件?
- gerrit头像avatars/external插件
- Jenkins插件Gerrit Trigger概述
- gerrit内部用户转外部用户的方法
- Mac 上如何取得ddms权限
- 【luogu1402】酒店之王(网络流)
- Spark流计算(三)
- Servlet服务器搭建过程中一些经验 Tomcat+Mysql数据库+http传输
- Codeforces 369C DFS
- gerrit官方编译插件的方法
- RBPF SALM
- JDBC(java连接数据库1)
- 二维数组、字符串、循环的处理
- MyBatis一级缓存和二级缓存
- 使用Sinopia搭建私有npm仓库
- [23]动态加载脚本和样式
- c语言中头文件的包含中“”和<>符号的区别
- Graph SLAM