Need repository for dependency com.dianping.cat:cat-client:jar:2.0.0 not found in central
Hello, I'm trying to follow the steps stated here to resolve the dependency error noted in the issue (https://github.com/dianping/cat/issues/1183), when I encounter another dependency not found when running mvn -s settings.xml clean install -DskipTests.
Downloading: http://unidal.org/nexus/content/repositories/releases/com/dianping/cat/cat-client/2.0.0/cat-client-2.0.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Framework BOM ..................................... SUCCESS [ 1.044 s]
[INFO] Framework ......................................... SUCCESS [ 0.291 s]
[INFO] Foundation Service ................................ SUCCESS [ 3.049 s]
[INFO] Eunit Test Framework .............................. SUCCESS [ 7.156 s]
[INFO] Type Converter .................................... SUCCESS [ 0.185 s]
[INFO] Java Fragment Script Engine ....................... SUCCESS [ 0.121 s]
[INFO] DAL JDBC .......................................... FAILURE [ 2.255 s]
[INFO] Test Framework .................................... SKIPPED
[INFO] Web Framework ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.274 s
[INFO] Finished at: 2021-11-18T21:42:14+00:00
[INFO] Final Memory: 42M/2317M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project dal-jdbc: Could not resolve dependencies for project org.unidal.framework:dal-jdbc:jar:4.0.0: Could not find artifact com.dianping.cat:cat-client:jar:2.0.0 in central (https://repo1.maven.org/maven2) -> [Help 1]
Can you please provide an alternative repository for the dependency com.dianping.cat:cat-client:jar:2.0.0?
Hello, If you are compiling cat, I suggest you do not use cat-client-2.0.0,for some reasons, the jars of earlier versions are not published to public repositories.
However, for the cat main project, it's pom depends on some unidal jars: https://github.com/dianping/cat/blob/d8033c988b825f35fc06c20660f4aed927e43465/pom.xml#L46-L69 For those jars, you can get it by following steps:
- download jars
git clone https://github.com/dianping/cat.git --depth 1 --branch mvn-repo
note that org\unidal\maven\plugins\codegen-maven-plugin\2.0.9\ contains some 2.0.8(a little mistake), just delete them.
- import these jars to
local maven repository
- copy whole folder
orgto<LocalRepository>for example:%USERPROFILE%\.m2\repository
It will solve all "Could not find artifact org.unidal.framework" problems, then you will finally compile successfully.