Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
abstract-thinking opened this issue Oct 6, 2021 · 5 comments
Closed

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

abstract-thinking opened this issue Oct 6, 2021 · 5 comments

Comments

@abstract-thinking
Copy link

abstract-thinking commented Oct 6, 2021

Hi,

I checked out

  • common
  • rest-utils
  • schema-registry

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
Copy link
Contributor

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

@abstract-thinking
Copy link
Author

abstract-thinking commented Oct 8, 2021

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
Copy link
Contributor

OneCricketeer commented Oct 8, 2021

ccs and ce are from the Confluent Platform fork of Kafka

Similar thread here confluentinc/common#300

@abstract-thinking
Copy link
Author

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
Copy link
Contributor

james-johnston-thumbtack commented Jan 17, 2024

See #2368 (comment) for how I was able to build this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants