confluentinc / schema-registry

Confluent Schema Registry for Kafka
https://docs.confluent.io/current/schema-registry/docs/index.html
Other
2.23k stars 1.12k forks source link

How to build schema-registry from scratch with Maven? #2047

Closed abstract-thinking closed 3 years ago

abstract-thinking commented 3 years ago

Hi,

I checked out

as described here.

But now I wonder from the command line I'm not able to get one projcet to run without an error from branch master:

Common:

mvn clean package

[INFO] --- resolver-maven-plugin:0.6.0:resolve-kafka-range (default) @ common-parent ---
[INFO] Resolving range for org.apache.kafka:kafka-clients::[7.1.0-0, 7.1.1-0), excluding snapshots
[WARNING] Could not find any ce-kafka artifacts.
[WARNING] Continuing with build because fail if not found for this version is set to false.
[WARNING] Could not find any ccs-kafka artifacts.

rest-utils or schema-registry:

mvn clean package

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM io.confluent:common:[7.1.0-0, 7.1.1-0) for io.confluent:rest-utils-parent:7.1.0-0: No versions matched the requested parent version range '[7.1.0-0, 7.1.1-0)' and 'parent.relativePath' points at wrong local POM @ line 8, column 13

What can I do?

Thanks, Markus

OneCricketeer commented 3 years ago

When you checked out rest-utils, did you make sure you were on branch 7.1.0 and used mvn clean install?

abstract-thinking commented 3 years ago

I guess yesterday.

~/playground/confluent/rest-utils  master                                                                                                            
╰─ git log --pretty=oneline -n 3   

a4edab252a8bdc135c5abf923729a7ade712300c (HEAD -> master, origin/master, origin/HEAD) Merge branch '7.0.x'
cbc351a36b99024ab99628b0a6b11898aff106a0 (origin/7.0.x) Merge branch '6.2.x' into 7.0.x
b6608a09b5fd0b54c9a0c6dc52d5d13f383674ce (origin/6.2.x) Merge branch '6.1.x' into 6.2.x

It was on master, I can do on branch branch 7.1.0.

I'm not sure which one do you mean

 origin/7.0.x
  origin/7.1.0-ksql.2-359.x
  origin/HEAD -> origin/master

I will pick up origin/7.0.x.

I guess the problem comes from common but I don't know where to get the artifacts:

[INFO] --- resolver-maven-plugin:0.6.0:resolve-kafka-range (default) @ common-parent ---
[INFO] Resolving range for org.apache.kafka:kafka-clients::[7.0.0-0, 7.0.1-0), excluding snapshots
[WARNING] Could not find any ce-kafka artifacts.
[WARNING] Continuing with build because fail if not found for this version is set to false.
[WARNING] Could not find any ccs-kafka artifacts.
OneCricketeer commented 3 years ago

ccs and ce are from the Confluent Platform fork of Kafka

Similar thread here https://github.com/confluentinc/common/issues/300

abstract-thinking commented 3 years ago

Thanks @OneCricketeer,

I'm able to run all four projects now. I still have problem with schema-registry but I believe that I struggle with branches and tags.

ERROR] Failed to execute goal on project kafka-protobuf-serializer: Could not resolve dependencies for project io.confluent:kafka-protobuf-serializer:jar:7.0.0-0: Could not find artifact io.confluent:kafka-schema-registry:jar:tests:7.0.0-0 in confluent (https://packages.confluent.io/maven/)

When I have time and motivated I think I can solve it by my own.

james-johnston-thumbtack commented 10 months ago

See https://github.com/confluentinc/schema-registry/issues/2368#issuecomment-1894804017 for how I was able to build this.