Cat安装与使用(美团开源监控) |
您所在的位置:网站首页 › 美团报错 › Cat安装与使用(美团开源监控) |
一、Cat源代码下载和打包
1、在镜像网站下载cat源码和cat需要的依赖包
下载地址:https://hub.fastgit.org/dianping/cat cat源码:下载master分支代码; cat依赖包:下载mvn-repo分支代码;
也可以在我自己的gitee代码仓库下载cat源码和依赖包; cat源码: cat依赖包: 2、在本地打cat的war包 1)首先把下载的cat源码工程更名,改为cat; 2)看手册说明,要看cat项目根目录的README.md文件 README.md说明: 1、根目录下 cat-client 模块以后不再维护,下个大版本更新计划移除。新版Java客户端参考:lib/java;--操作:将cat根目录的pom.xml中cat-client的模块删除(删除cat-client) 2、管理端、服务端、告警服务均使用 cat-home 模块部署即可 3、其他模块: - integration:cat和一些第三方工具集成的内容(此部分一部分是由社区贡献,一部分官方贡献) - lib:CAT 的客户端,包括 Java、C/C++、Python、Node.js、Go - script:CAT 数据库脚本3)在cat工程执行编译命令 编译命令: mvn clean compile 报错1:Could not find artifact org.unidal.framework:foundation-service:jar:2.5.0 [ERROR] Failed to execute goal on project cat-core: Could not resolve dependencies for project com.dianping.cat:cat-core:jar:3.0.0: The following artifacts could not be resolved: org.unidal.framework:foundation-ser vice:jar:2.5.0, org.unidal.framework:web-framework:jar:2.4.0, org.unidal.framework:dal-jdbc:jar:2.4.0: Could not find artifact org.unidal.framework:foundation-service:jar:2.5.0 in alimaven (http://maven.aliyun.com/ nexus/content/groups/public) -> [Help 1]解决:将下载的mvn-repo分支解压,放入到本地的.m2仓库中; 本地mvn-repo分支解压,解压出org目录; 将org目录拷贝到本地的.m2仓库中; |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |