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

camel-quarkus-elasticsearch-rest build fails with "Dependency convergence error" #899

Closed
zhfeng opened this issue Mar 18, 2020 · 7 comments

Comments

@zhfeng
Copy link
Contributor

zhfeng commented Mar 18, 2020

I just rebuild the camel-quarkus and met the following failure.

[INFO] -----< org.apache.camel.quarkus:camel-quarkus-elasticsearch-rest >------
[INFO] Building Camel Quarkus :: Elastichsearch Rest :: Runtime 1.1.0-SNAPSHOT [1/94]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ camel-quarkus-elasticsearch-rest ---
[INFO] 
[INFO] --- directory-maven-plugin:0.3.1:highest-basedir (directories) @ camel-quarkus-elasticsearch-rest ---
[INFO] Highest basedir set to: /home/zhfeng/work/zhfeng/camel-quarkus
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ camel-quarkus-elasticsearch-rest ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (camel-quarkus-enforcer-rules) @ camel-quarkus-elasticsearch-rest ---
[WARNING] 
Dependency convergence error for commons-logging:commons-logging:1.2 paths to dependency are:
+-org.apache.camel.quarkus:camel-quarkus-elasticsearch-rest:1.1.0-SNAPSHOT
  +-org.apache.camel:camel-elasticsearch-rest:3.1.0
    +-org.elasticsearch.client:elasticsearch-rest-high-level-client:7.3.2
      +-org.elasticsearch.client:elasticsearch-rest-client:7.6.0
        +-org.apache.httpcomponents:httpasyncclient:4.1.4
          +-commons-logging:commons-logging:1.2
and
+-org.apache.camel.quarkus:camel-quarkus-elasticsearch-rest:1.1.0-SNAPSHOT
  +-org.apache.camel:camel-elasticsearch-rest:3.1.0
    +-org.elasticsearch.client:elasticsearch-rest-high-level-client:7.3.2
      +-org.elasticsearch.client:elasticsearch-rest-client:7.6.0
        +-commons-logging:commons-logging:1.1.3
and
+-org.apache.camel.quarkus:camel-quarkus-elasticsearch-rest:1.1.0-SNAPSHOT
  +-org.apache.camel:camel-elasticsearch-rest:3.1.0
    +-org.elasticsearch.client:elasticsearch-rest-client-sniffer:7.6.0
      +-org.apache.httpcomponents:httpclient:4.5.11
        +-commons-logging:commons-logging:1.2
and
+-org.apache.camel.quarkus:camel-quarkus-elasticsearch-rest:1.1.0-SNAPSHOT
  +-org.apache.camel:camel-elasticsearch-rest:3.1.0
    +-org.elasticsearch.client:elasticsearch-rest-client-sniffer:7.6.0
      +-commons-logging:commons-logging:1.1.3

[WARNING] Rule 0: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message:
Failed while enforcing releasability the error(s) are [
Dependency convergence error for commons-logging:commons-logging:1.2 paths to dependency are:
+-org.apache.camel.quarkus:camel-quarkus-elasticsearch-rest:1.1.0-SNAPSHOT
  +-org.apache.camel:camel-elasticsearch-rest:3.1.0
    +-org.elasticsearch.client:elasticsearch-rest-high-level-client:7.3.2
      +-org.elasticsearch.client:elasticsearch-rest-client:7.6.0
        +-org.apache.httpcomponents:httpasyncclient:4.1.4
          +-commons-logging:commons-logging:1.2
and
+-org.apache.camel.quarkus:camel-quarkus-elasticsearch-rest:1.1.0-SNAPSHOT
  +-org.apache.camel:camel-elasticsearch-rest:3.1.0
    +-org.elasticsearch.client:elasticsearch-rest-high-level-client:7.3.2
      +-org.elasticsearch.client:elasticsearch-rest-client:7.6.0
        +-commons-logging:commons-logging:1.1.3
and
+-org.apache.camel.quarkus:camel-quarkus-elasticsearch-rest:1.1.0-SNAPSHOT
  +-org.apache.camel:camel-elasticsearch-rest:3.1.0
    +-org.elasticsearch.client:elasticsearch-rest-client-sniffer:7.6.0
      +-org.apache.httpcomponents:httpclient:4.5.11
        +-commons-logging:commons-logging:1.2
and
+-org.apache.camel.quarkus:camel-quarkus-elasticsearch-rest:1.1.0-SNAPSHOT
  +-org.apache.camel:camel-elasticsearch-rest:3.1.0
    +-org.elasticsearch.client:elasticsearch-rest-client-sniffer:7.6.0
      +-commons-logging:commons-logging:1.1.3
]

@ppalaga
Copy link
Contributor

ppalaga commented Mar 18, 2020

It is passing on the CI and I cannot reproduce too. Have you rebuilt the whole tree?

@zhfeng
Copy link
Contributor Author

zhfeng commented Mar 18, 2020

yeah, I rebuilt the whole tree.

@ppalaga
Copy link
Contributor

ppalaga commented Mar 18, 2020

Could you please post the exact steps to reproduce (incl. the output of mvn --version)?

@zhfeng
Copy link
Contributor Author

zhfeng commented Mar 18, 2020

mvn --version

Apache Maven 3.5.4 (Red Hat 3.5.4-10)
Maven home: /usr/share/maven
Java version: 1.8.0_222, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.fc30.x86_64/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux", version: "5.2.7-200.fc30.x86_64", arch: "amd64", family: "unix"

I just use

mvn clean install -DskipTests

on the top directory of camel-quarkus to rebuild the whole tree.

@lburgazzoli
Copy link
Contributor

As far as I remember quarkus now requires maven 3.6.x

@zhfeng
Copy link
Contributor Author

zhfeng commented Mar 19, 2020

Thanks @lburgazzoli and it works after upgrade maven to 3.6.3

@zhfeng zhfeng closed this as completed Mar 19, 2020
@zhfeng
Copy link
Contributor Author

zhfeng commented Mar 19, 2020

@ppalaga it might be helpful to mention on our contribution guide. It said Maven 3.5.3+ as prerequisites now.

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