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

Failed to execute goal on project utility-belt #98

Open
maireadmccabe opened this issue Jan 23, 2018 · 11 comments
Open

Failed to execute goal on project utility-belt #98

maireadmccabe opened this issue Jan 23, 2018 · 11 comments

Comments

@maireadmccabe
Copy link

Cannot build of master, getting the below error
Could not resolve dependencies for project io.confluent:utility-belt:jar:4.1.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.kafka:kafka_2.11:jar:1.1.0-SNAPSHOT, org.apache.kafka:kafka-clients:jar:1.1.0-SNAPSHOT, org.apache.kafka:kafka-clients:jar:test:1.1.0-SNAPSHOT, org.apache.kafka:kafka_2.11:jar:test:1.1.0-SNAPSHOT: Failure to find org.apache.kafka:kafka_2.11:jar:1.1.0-SNAPSHOT in http://packages.confluent.io/maven/ was cached in the local repository, resolution will not be reattempted until the update interval of confluent has elapsed or updates are forced

@ewencp
Copy link
Contributor

ewencp commented Jan 23, 2018

@maireadmccabe This is from a different repo, but the same applies: https://github.com/confluentinc/schema-registry/wiki/FAQ#when-i-try-to-compile-i-get-an-error-about-a-missing-snapshot-dependency You would need to build/install Kafka before building this repository. This is a relatively new requirement for this repo due to some reorganization wrt how we're handling docker images.

@JollyNg
Copy link

JollyNg commented Feb 7, 2018

kafka can be installed successfully. However, rest-utils cannot be build. The errors are as following. Please help!

#> mvn clean install
[INFO] Scanning for projects...
[WARNING] Could not transfer metadata io.confluent:common: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:rest-utils-parent:[unknown-version]: Could not transfer artifact io.confluent:common: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 8, column 13
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project io.confluent:rest-utils-parent:[unknown-version] (/rest-utils-master/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for io.confluent:rest-utils-parent:[unknown-version]: Could not transfer artifact io.confluent:common: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 8, 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

@sreenivasulun
Copy link

sreenivasulun commented Feb 12, 2018

Mee too getting same error as @maireadmccabe . Could anybody help me?

@awartika
Copy link

awartika commented Feb 12, 2018

I tried to install kafka but could not build it. There is no gradle wrapper.

@ewencp
Copy link
Contributor

ewencp commented Feb 23, 2018

@JollyNg @sreenivasulun The dependencies for rest-utils are Kafka, then confluentinc/common, then rest-utils. Build these in that order and you should be good.

@awartika That's probably better addressed in the Kafka community than here, but the omission of the gradle wrapper has to do with binaries in source releases iirc -- the source releases are just snapshots of the repo and are not supposed to include any binary bits, so checking in gradlew causes problems. You can just run gradle first in the Kafka directory to setup the gradle wrapper, then everything else should just work (assuming you have a recent enough version of gradle installed).

@sankarav
Copy link

sankarav commented Feb 27, 2018

Incase you facing the same problem again do the following,

git clone https://github.com/apache/kafka.git
gradle wrapper (assuming you have gradle installed already)
./gradlew installAll

git clone https://github.com/confluentinc/common.git
mvn clean install
git clone https://github.com/confluentinc/rest-utils.git
mvn clean install
git clone https://github.com/confluentinc/schema-registry.git
mvn clean install
git clone https://github.com/confluentinc/kafka-rest.git
mvn clean install

@awartika
Copy link

awartika commented Feb 27, 2018

@sankarav thank you. Yes I am still unable to build this. Which version of gradle is required ?

@JollyNg
Copy link

JollyNg commented Mar 15, 2018

@ewencp I m still failed to install the "common" and "rest-utils". As you advised, the steps should be the same as what @sankara was listed.
However, I cannot install "common" with "mvn clean install" successfully. The error codes are as below.

[ERROR] Failed to execute goal on project utility-belt: Could not resolve dependencies for project io.confluent:utility-belt:jar:4.1.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.kafka:kafka_2.11:jar:1.1.0-SNAPSHOT, org.apache.kafka:kafka-clients:jar:1.1.0-SNAPSHOT, org.apache.kafka:kafka-clients:jar:test:1.1.0-SNAPSHOT, org.apache.kafka:kafka_2.11:jar:test:1.1.0-SNAPSHOT: Failure to find org.apache.kafka:kafka_2.11:jar:1.1.0-SNAPSHOT in http://packages.confluent.io/maven/ was cached in the local repository, resolution will not be reattempted until the update interval of confluent has elapsed or updates are forced

@ewencp
Copy link
Contributor

ewencp commented Mar 20, 2018 via email

@JollyNg
Copy link

JollyNg commented Mar 21, 2018

Thanks @ewencp !
I have installed the components successfully. The version/branch and install sequence are listed below.
kafka-1.1, common-4.1.x, rest-utils-4.1.x, schema-registry-4.1.x and kafka-rest-4.1.x

@tstuber
Copy link

tstuber commented May 8, 2018

@ewencp thanks for the summary, that finally also worked for me. I used the following steps (a bit in more detail) to build it. Actually our company network (proxy and maven repo) was a problem since could either resolve dependencies or run the integration tests. Therefore, I had to skip the tests.

git clone --branch 1.1.0 https://github.com/apache/kafka.git
gradle wrapper
./gradlew installAll

git clone https://github.com/confluentinc/common.git
git checkout origin/4.1.x
mvn clean install -Dmaven.test.skip=true

git clone https://github.com/confluentinc/rest-utils.git
git checkout origin/4.1.x
mvn clean install -Dmaven.test.skip=true

git clone https://github.com/confluentinc/schema-registry.git
git checkout origin/4.1.x
mvn clean install -Dmaven.test.skip=true

git clone https://github.com/confluentinc/kafka-rest.git
git checkout origin/4.1.x
mvn clean install -Dmaven.test.skip=true

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

7 participants