-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Could not find artifact io.confluent:common:pom:4.0.0-SNAPSHOT #537
Comments
I just tested this on a fresh machine with the following commands, and it does work for me out-of-the-box: $ git clone git@github.com:confluentinc/ksql.git && cd ksql/
$ git checkout 4.0.x
$ mvn clean compile install -DskipTests I noticed though that you are apparently behind a proxy / mirror nexus -- from your output above:
Perhaps your company's mirror isn't working properly? The following lines indicate this:
The Confluent snapshot repository does contain the $ curl https://s3-us-west-2.amazonaws.com/confluent-snapshots/io/confluent/common/4.0.0-SNAPSHOT/common-4.0.0-SNAPSHOT.pom returns <!--~
~ Copyright 2017 Confluent Inc.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>common-parent</artifactId>
<groupId>io.confluent</groupId>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>common</artifactId>
<packaging>pom</packaging>
<name>Common</name>
<dependencies>
<dependency>
<groupId>io.confluent</groupId>
<artifactId>common-utils</artifactId>
</dependency>
</dependencies>
</project> I also saw that your maven build complained about the following (the first line in the debug output above):
There is a maven metadata file for 4.0.0-SNAPSHOT in the Confluent snapshot repository but with a slightly different name: It's not
@devsohi: Could you compare my output to what you are seeing locally? Given that the build works locally for me (without a proxy/mirror in-between me and the Confluent snapshot repository) but not for you (with a proxy/mirror), I suspect the culprit is either
|
Hi Michael,
You are right. My company is not allowing snapshot repository. That's why.
Thanks a lot for your time.
Regards
Sohi
…On 18-Dec-2017 2:11 PM, "Michael G. Noll" ***@***.***> wrote:
I just tested this on a fresh machine with the following commands, and it
does work for me out-of-the-box:
$ git clone ***@***.***:confluentinc/ksql.git && cd ksql/
$ git checkout 4.0.x
$ mvn clean compile install -DskipTests
I noticed though that you are apparently behind a proxy / mirror nexus --
from your output above:
[DEBUG] Using mirror nexus (http://artifactory.sohi.com/nexus/content/groups/public) for central (http://central).
[DEBUG] Using mirror nexus (http://artifactory.sohi.com/nexus/content/groups/public) for confluent (http://packages.confluent.io/maven/).
[DEBUG] Using mirror nexus (http://artifactory.sohi.com/nexus/content/groups/public) for confluent-snapshots (https://s3-us-west-2.amazonaws.com/confluent-snapshots/).
Perhaps your company's mirror isn't working properly? The following lines
indicate this:
[DEBUG] Could not find metadata io.confluent:common:4.0.0-SNAPSHOT/maven-metadata.xml in nexus (http://artifactory.sohi.com/nexus/content/groups/public)
Downloading: http://artifactory.sohi.com/nexus/content/groups/public/io/confluent/common/4.0.0-SNAPSHOT/common-4.0.0-SNAPSHOT.pom
[FATAL] Non-resolvable parent POM: Could not find artifact io.confluent:common:pom:4.0.0-SNAPSHOT in nexus (http://artifactory.sohi.com/nexus/content/groups/public) and 'parent.relativePath' points at wrong local POM @ line 7, column 13
The Confluent snapshot repository does contain the
common-4.0.0-SNAPSHOT.pom at the path io/confluent/common/4.0.0-
SNAPSHOT/common-4.0.0-SNAPSHOT.pom:
$ curl https://s3-us-west-2.amazonaws.com/confluent-snapshots/io/confluent/common/4.0.0-SNAPSHOT/common-4.0.0-SNAPSHOT.pom
returns
<!--~ ~ Copyright 2017 Confluent Inc. ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. ~-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>common-parent</artifactId>
<groupId>io.confluent</groupId>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>common</artifactId>
<packaging>pom</packaging>
<name>Common</name>
<dependencies>
<dependency>
<groupId>io.confluent</groupId>
<artifactId>common-utils</artifactId>
</dependency>
</dependencies>
</project>
I also saw that your maven build complained about the following (the first
line in the debug output above):
[DEBUG] Could not find metadata io.confluent:common:4.0.0-SNAPSHOT/maven-metadata.xml in nexus (http://artifactory.sohi.com/nexus/content/groups/public)
There is a maven metadata file for 4.0.0-SNAPSHOT in the Confluent
snapshot repository but with a slightly different name: It's not
maven-metadata.xml but maven-metadata-confluent-nexus-jenkins.xml (see
http://maven.apache.org/ref/3.2.5/maven-repository-metadata/).
$ curl -s https://s3-us-west-2.amazonaws.com/confluent-snapshots/ | xmllint --format - | grep "io/confluent/common/" | grep "maven-metadata" | grep "\.xml</Key>$"
<Key>io/confluent/common/4.0.0-SNAPSHOT/maven-metadata-confluent-nexus-jenkins.xml</Key>
<Key>io/confluent/common/4.1.0-SNAPSHOT/maven-metadata-confluent-nexus-jenkins.xml</Key>
@devsohi <https://github.com/devsohi>: Could you compare my output to
what you are seeing locally? Given that the build works locally for me
(without a proxy/mirror in-between me and the Confluent snapshot
repository) but not for you (with a proxy/mirror), I suspect the culprit is
either your proxy/mirror or, though I think more unlikely, that the
Confluent snapshot repository isn't published in a way that it can be
mirrored properly by Artifactory.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#537 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ad43bnl-8gCQz02WSvfso-JXZUBW3-Mqks5tBiVSgaJpZM4RE_Ci>
.
|
Hi,
Thanks |
Thanks a lot for reporting back, @devsohi ! This will help other users that run into the same Artifactory setup problem. 👍 |
Added #538 to help other users run into the same issue. |
Hi ,
This might be duplicate of #490 But for me its not working .
I am trying to build KSQL Module
Details
Project Details :
Getting following error :
The text was updated successfully, but these errors were encountered: