-
Notifications
You must be signed in to change notification settings - Fork 242
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
Comments
@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. |
kafka can be installed successfully. However, rest-utils cannot be build. The errors are as following. Please help! #> mvn clean install |
Mee too getting same error as @maireadmccabe . Could anybody help me? |
I tried to install kafka but could not build it. There is no gradle wrapper. |
@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 |
Incase you facing the same problem again do the following,
|
@sankarav thank you. Yes I am still unable to build this. Which version of gradle is required ? |
@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. [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 |
The missing artifact is a SNAPSHOT artifact from Kafka-- the sequence of
builds/installations is Kafka, common, rest-utils. You would need to start
by building Kafka from the 1.1 branch and run a `./gradlew install`. Note
that you specifically need the *1.1* branch/version of Kafka. You can't
just grab trunk.
I don't have a specific timeframe yet, but we're planning to work on making
a public snapshot repository of Kafka and Confluent Platform artifacts
available publicly and integration them into these builds so you won't get
stuck on issues like this in the future -- the needed dependencies would
just be pulled from the SNAPSHOT repository automatically, based on configs
included in the Maven build.
…-Ewen
On Wed, Mar 14, 2018 at 10:46 PM, JollyNg ***@***.***> wrote:
@ewencp <https://github.com/ewencp> I m still failed to install the
"common" and "rest-utils". As you advised, the steps should be the same as
what @sankara <https://github.com/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
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#98 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC5BoeQknrZQMxzSUa7kfYuydoRv-tzks5tegAfgaJpZM4Rpv6w>
.
|
Thanks @ewencp ! |
@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.
|
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
The text was updated successfully, but these errors were encountered: