confluentinc / kafka-rest

Confluent REST Proxy for Kafka
https://docs.confluent.io/current/kafka-rest/docs/index.html
Other
45 stars 646 forks source link

Issue while building Kafka-rest #395

Open sunilkrdeep opened 6 years ago

sunilkrdeep commented 6 years ago

Hi Team,

While trying to build kafka-rest, common, rest-utils , its throwing error as below. Kindly help to provide solution.

========== root@daas:/opt/sso-data/kafka-rest# root@daas:/opt/sso-data/kafka-rest# root@daas:/opt/sso-data/kafka-rest# root@daas:/opt/sso-data/kafka-rest# git checkout -b tags/v4.0.0-rc3 Switched to a new branch 'tags/v4.0.0-rc3' root@daas:/opt/sso-data/kafka-rest# root@daas:/opt/sso-data/kafka-rest# root@daas:/opt/sso-data/kafka-rest# mvn clean install [INFO] Scanning for projects... [WARNING] Could not transfer metadata io.confluent:rest-utils-parent:4.1.0-SNAPSHOT/maven-metadata.xml from/to confluent (${confluent.maven.repo}): Cannot access ${confluent.maven.repo} with type default using the available connector factories: BasicRepositoryConnectorFactory [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for io.confluent:kafka-rest-parent:[unknown-version]: Could not transfer artifact io.confluent:rest-utils-parent:pom:4.1.0-SNAPSHOT from/to confluent (${confluent.maven.repo}): Cannot access ${confluent.maven.repo} with type default using the available connector factories: BasicRepositoryConnectorFactory and 'parent.relativePath' points at wrong local POM @ line 7, column 13 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project io.confluent:kafka-rest-parent:[unknown-version] (/opt/sso-data/kafka-rest/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for io.confluent:kafka-rest-parent:[unknown-version]: Could not transfer artifact io.confluent:rest-utils-parent:pom:4.1.0-SNAPSHOT from/to confluent (${confluent.maven.repo}): Cannot access ${confluent.maven.repo} with type default using the available connector factories: BasicRepositoryConnectorFactory and 'parent.relativePath' points at wrong local POM @ line 7, column 13: Cannot access ${confluent.maven.repo} using the registered transporter factories: WagonTransporterFactory: Unsupported transport protocol -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

Thanks, Sunil

elarib commented 6 years ago

@sunilkrdeep You should build some dependencies (Kafka, RestUtil & Schema registry) Please see https://github.com/confluentinc/kafka-rest/wiki/FAQ#when-i-try-to-compile-i-get-an-error-about-a-missing-snapshot-dependency

jeongsoolee09 commented 3 years ago

I am suffering from this very issue, although I have:

However, running mvn clean install on this repository's directory, I keep getting this error.

I am on macOS Big Sur 11.1, with Java 8, Maven 3.6.3, and Gradle 6.7.1.

jeongsoolee09 commented 3 years ago

My bad, succeeded in building this project after rebuilding each four.