kafka-rest:怎么愉快的build?
愉快的build该项目吧
git clone https://github.com/confluentinc/kafka-rest
mvn clean install -Dmaven.test.skip=true
出先如下类似错误:
[ERROR] Failed to execute goal on project kafka-rest: Could not resolve dependencies for project io.confluent:kafka-rest:jar:3.1.-SNAPSHOT: The following artifacts could not be resolved: io.confluent:rest-utils:jar:3.1.-SNAPSHOT, org.apache.kafka:kafka_2.:jar:0.10.1.0-SNAPSHOT, io.confluent:kafka-avro-serializer:jar:3.1.-SNAPSHOT, io.confluent:kafka-json-serializer:jar:3.1.-SNAPSHOT, io.confluent:rest-utils-test:jar:3.1.-SNAPSHOT, org.apache.kafka:kafka_2.:jar:test:0.10.1.0-SNAPSHOT, org.apache.kafka:kafka-clients:jar:test:0.10.1.0-SNAPSHOT, io.confluent:kafka-schema-registry:jar:3.1.-SNAPSHOT: Could not find artifact io.confluent:rest-utils:jar:3.1.-SNAPSHOT in confluent (http://packages.confluent.io/maven/) -> [Help 1]
翻了一下该项目wiki:
https://github.com/confluentinc/kafka-rest/wiki/FAQ 描述如下:
When I try to compile I get an error about a missing SNAPSHOT dependency.
The error looks something like this:
[ERROR] Failed to execute goal on project kafka-rest: Could not resolve dependencies for project io.confluent:kafka-rest:jar:3.1.0-SNAPSHOT: The following artifacts could not be resolved: io.confluent:rest-utils:jar:3.1.0-SNAPSHOT, org.apache.kafka:kafka_2.11:jar:0.10.1.0-SNAPSHOT, io.confluent:kafka-avro-serializer:jar:3.1.0-SNAPSHOT, io.confluent:kafka-json-serializer:jar:3.1.0-SNAPSHOT, io.confluent:rest-utils-test:jar:3.1.0-SNAPSHOT, org.apache.kafka:kafka_2.11:jar:test:0.10.1.0-SNAPSHOT, org.apache.kafka:kafka-clients:jar:test:0.10.1.0-SNAPSHOT, io.confluent:kafka-schema-registry:jar:3.1.0-SNAPSHOT: Could not find artifact io.confluent:rest-utils:jar:3.1.0-SNAPSHOT in confluent (http://packages.confluent.io/maven/) -> [Help 1]
During development of new versions of the REST Proxy we sometimes use a SNAPSHOT versions of dependencies in order to build and test against new features. If you want to build a development version, you may need to build and install these dependencies to your local Maven repository in order to build the connector:
- Kafka - clone https://github.com/apache/kafka/ and build with
./gradlew installAll
- rest-utils - clone https://github.com/confluentinc/rest-utils and build with
mvn clean install
- schema-registry - clone https://github.com/confluentinc/schema-registry and build with
mvn clean install
按照上述说法,一通搞,还是不行
翻了一下该项目Issues 描述如下:
https://github.com/confluentinc/common/issues/98
@ewencp thanks for the summary, that finally also worked for me. I used the following steps (a bit in more detail) to build it.
Actually our company network (proxy and maven repo) was a problem since could either resolve dependencies or run the integration tests. Therefore, I had to skip the tests. git clone --branch 1.1. https://github.com/apache/kafka.git
gradle wrapper
./gradlew installAll git clone https://github.com/confluentinc/common.git
git checkout origin/4.1.x
mvn clean install -Dmaven.test.skip=true git clone https://github.com/confluentinc/rest-utils.git
git checkout origin/4.1.x
mvn clean install -Dmaven.test.skip=true git clone https://github.com/confluentinc/schema-registry.git
git checkout origin/4.1.x
mvn clean install -Dmaven.test.skip=true git clone https://github.com/confluentinc/kafka-rest.git
git checkout origin/4.1.x
mvn clean install -Dmaven.test.skip=true
按照上述顺序,终于愉快的build了。。。
当然,如果没打算基于源码最改动,可以按照该项目Readme建议的,直接使用prebuilt版本
Installation
You can download prebuilt versions of the Kafka REST Proxy as part of the Confluent Platform.
You can read our full installation instructions and the complete documentation
To install from source, follow the instructions in the Development section below.
kafka-rest:怎么愉快的build?的更多相关文章
- kafka-rest:A Comprehensive, Open Source REST Proxy for Kafka
Ewen Cheslack-Postava March 25, 2015 时间有点久,但讲的还是很清楚的 As part of Confluent Platform 1.0 released ab ...
- Java连接kafka
1.maven依赖: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://ww ...
- 056 Java搭建kafka环境
1.使用Java项目搭建 2.新目录 3.添加项目支持 4.添加mavem与scala 5.修改pom <?xml version="1.0" encoding=" ...
- 搭建kafka源码开发环境时使用"gradle idea"命令构建源码失败
我的环境: JDK: 1.8.0_131 Gradle: Gradle 3.1 Kafka源码包: kafka-0.10.0.1-src.tgz Zookeeper安装包: zookeeper-3.4 ...
- Openshift部署Zookeeper和Kafka
部署Zookeeper github网址 https://github.com/ericnie2015/zookeeper-k8s-openshift 1.在openshift目录中,首先构建imag ...
- kfka学习笔记一:使用Python操作Kafka
1.准备工作 使用python操作kafka目前比较常用的库是kafka-python库,但是在安装这个库的时候需要依赖setuptools库和six库,下面就要分别来下载这几个库 https://p ...
- 使用sbt构建spark 程序
今日在学习scala和spark相关的知识.之前在eclipse下编写了wordcount程序.但是关于导出jar包这块还是很困惑.于是学习sbt构建scala. 关于sbt的介绍网上有很多的资料,这 ...
- Flink - FlinkKafkaConsumer08
先看 AbstractFetcher 这个可以理解就是,consumer中具体去kafka读数据的线程,一个fetcher可以同时读多个partitions的数据来看看 /** * Base cl ...
- 大数据系列之kafka-java实现
Java源码GitBub地址: https://github.com/fzmeng/kafka-demo 关于kafka安装步骤可见文章 http://www.cnblogs.com/cnmeng ...
随机推荐
- asp.net core 系列 22 EF(连接字符串,连接复原,DbContext)
一.连接字符串 在上二篇中,ASP.NET Core 应用程序连接字符串是写死在ConfigureServices代码中,下面介绍通过配置来实现.连接字符串可以存储在 appsettings.json ...
- 【安卓本卓】Android系统源码篇之(一)源码获取、源码目录结构及源码阅读工具简介
前言 古人常说,“熟读唐诗三百首,不会作诗也会吟”,说明了大量阅读诗歌名篇对学习作诗有非常大的帮助.做开发也一样,Android源码是全世界最优秀的Android工程师编写的代码,也是A ...
- 【朝花夕拾】Android性能篇之(五)Android虚拟机
前言 Android虚拟机的使用,使得android应用和Linux内核分离,这样做使得android系统更稳定可靠,比如程序中即使包含恶意代码,也不会直接影响系统文件:也提高了跨平台兼容性.在And ...
- Unity实现c#热更新方案探究(二)
转载请标明出处:http://www.cnblogs.com/zblade/ 一.IOS对DLL热更新的禁止 紧接上文,继续对C#热更新的研究.上文中,已经说了如何基于appDomain来实现对DLL ...
- 【Java资源免费分享,网盘自己拿】
JavaSE: Java马士兵:链接:https://pan.baidu.com/s/1jJRvxGi密码:v3xb Java毕向东:链接:https://pan.baidu.com/s/1ggzHk ...
- Android Nine-patch(.9.png)小结
最近在项目开发过程中,因为界面布局美化的需要开始接触到.9.png,无论是Goolge官方文档还是网上其他资料, 都给出了很多关于.9.png的基本介绍,.9.png基础文章推荐以下几篇: Googl ...
- MariaDB Galera Cluster 部署 + keepalived实现高可用
MariaDB Galera Cluster 部署 MariaDB作为Mysql的一个分支,在开源项目中已经广泛使用,例如大热的openstack,所以,为了保证服务的高可用性,同时提高系统的负载能力 ...
- 20190325-HTML框架、audio标签、vedio标签、source标签、HTML表单
目录 1.HTML框架 frameset:框架标记 frame:框架内文件 iframe:内嵌框架 2.audio标签 src:URL(可以用source标签替代) autoplay:自动播放 pre ...
- jsp基础语言-jsp异常
JSP异常 jsp页面执行时会出现两种异常,实际是javax.servlet.jsp包中的两类异常JsError和JspException. 1.JsError 在jsp文件转换成servlet文件时 ...
- vue 新版本 webpack 代理 跨域设置
旧版本中:dev-server.js 这段去掉 var apiRoutes = express.Router() //getList apiRoutes.get('/getDiscList', fun ...