Netflix conductor 学习笔记一:安装
作者:互联网
环境说明
操作系统: mac os
开发环境: Idea 2020.3
JDK version: 1.8
源代码下载
- 下载地址, 推荐使用gitee.com 下载,速度会快很多
https://gitee.com/netflix/conductor.git
修改配置文件
1 . 修改build.gradle
2. 将下载资源库的位置设置为阿里云镜像,否则会编译失败,找不到jar之类的错误
# 修改buildscript 配置
buildscript {
repositories {
mavenCentral()
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
}
...
}
#修改allprojects 配置,并且注释 exclusiveContent
allprojects {
apply plugin: 'idea'
apply plugin: 'jacoco'
apply plugin: 'eclipse'
repositories {
mavenCentral()
// oss-candidate for -rc.* verions:
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
/**
* This repository locates artifacts that don't exist in maven central but we had to backup from jcenter
* The exclusiveContent
*/
/* exclusiveContent {
forRepository {
maven {
url "https://artifactory-oss.prod.netflix.net/artifactory/required-jcenter-modules-backup"
}
}
filter {
includeGroupByRegex "com\\.github\\.vmg.*"
}
}*/
}
}
- 源码build
#执行命令,忽略单元测试类
./gradlew build -x test
#如果是windows 环境应该直接使用(windows环境尚未验证)
gradlew.bat build -x test
- 生成jar包路径查看
- 使用jar命令启动
java -jar conductor-server-2.32.0-SNAPSHOT-all.jar
- 在浏览器输入
http://localhost:8080/
- 运行查看界面
官方文档说明
参考资料
https://netflix.github.io/conductor/architecture/
接下来会持续一段时间做Netflix conductor更深一步的研究,希望有兴趣的同学们一起交流
标签:http,conductor,Netflix,url,jar,笔记,maven,com 来源: https://blog.csdn.net/fokman/article/details/115818256