apache / distributedlog

Apache DistributedLog
Apache License 2.0
185 stars 74 forks source link

Missing dependency: bookkeeper-server 4.3.7-TWTTR-OSS #243

Closed benalexau closed 6 years ago

benalexau commented 6 years ago

I added http://maven.twttr.com/ to the local Nexus server and then attempted to build from source 832fb4eac37439ecbb1eb910ba3f7b8a502ba40f using mvn install -DskipTests.

Compiled JARs.

Failed with:

[ERROR] Failed to execute goal on project backward-compat-test-0.4: Could not resolve dependencies for project org.apache.distributedlog.tests:backward-compat-test-0.4:jar:0.6.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.bookkeeper:bookkeeper-server:jar:4.3.7-TWTTR-OSS, org.apache.bookkeeper.stats:bookkeeper-stats-api:jar:4.3.7-TWTTR-OSS: Failure to find org.apache.bookkeeper:bookkeeper-server:jar:4.3.7-TWTTR-OSS

Workaround is to edit test/pom.xml and disable modules jmh-0.4 and backward-compat-0.4.

The Admin Guide BookKeeper page states:

The version of BookKeeper that DistributedLog depends on is not the official opensource version. It is twitter's production version 4.3.4-TWTTR, which is available in https://github.com/twitter/bookkeeper.

However the error message shows 4.3.7-TWTTR-OSS is being used. Also mvn dependency:tree shows 4.7.0-SNAPSHOT is the typical version.

Is 4.3.7-TWTTR-OSS available in a public Maven repository somewhere (or could a Twitter person perhaps add it to http://maven.twttr.com/)?

sijie commented 6 years ago

@benalexau we have moved to the official bookkeeper release. I think the admin guide page is out of date. I don't think it should use 4.3.7-TWTTR-OSS. Let me check why you will get this error.

sijie commented 6 years ago

Ah I see what is the problem here: backward-compat-0.4 is using distributedlog 0.4-incubating for backward compat tests. distributedlog 0.4-incubating is using 4.3.7-TWTTR-OSS, which this version in twitter's github repo. (see the pom file in 0.4-incubating: https://github.com/apache/distributedlog/blob/release-0.4.0-incubating/pom.xml#L256) you need to add this to your local nexus server, i guess.

benalexau commented 6 years ago

Thanks @sijie. I added https://raw.githubusercontent.com/twitter/bookkeeper/mvn-repo/4.3.7-TWTTR-OSS/ as a repository to the local Nexus and it resolved fine.

sijie commented 6 years ago

Glad to hear it works!