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

Depending on several ASM lib versions #235

Closed
artie-shevchenko opened this issue Jul 24, 2020 · 4 comments · Fixed by #239
Closed

Depending on several ASM lib versions #235

artie-shevchenko opened this issue Jul 24, 2020 · 4 comments · Fixed by #239
Assignees

Comments

@artie-shevchenko
Copy link

+-com.google.cloud.sql:postgres-socket-factory:1.0.16
+-com.github.jnr:jnr-unixsocket:0.30
+-com.github.jnr:jnr-ffi:2.1.13
+-org.ow2.asm:asm-commons:7.1
+-org.ow2.asm:asm-tree:7.1

+-com.google.cloud.sql:postgres-socket-factory:1.0.16
+-com.github.jnr:jnr-unixsocket:0.30
+-com.github.jnr:jnr-ffi:2.1.13
+-org.ow2.asm:asm-tree:7.1

+-com.google.cloud.sql:postgres-socket-factory:1.0.16
+-org.ow2.asm:asm-util:8.0.1
+-org.ow2.asm:asm-tree:8.0.1

FYI you can use maven-enforcer-plugin with rule to catch such problems early.

@artie-shevchenko
Copy link
Author

FYI you can use maven-enforcer-plugin with <dependencyConvergence/> rule to catch such problems early.

@artie-shevchenko
Copy link
Author

Actually there are more conflicting versions problems within the postgres-socket-factory:

Dependency convergence error for com.google.http-client:google-http-client-jackson2:1.30.1 paths to dependency are:

  +-com.google.cloud.sql:postgres-socket-factory:1.0.16
    +-com.google.cloud.sql:jdbc-socket-factory-core:1.0.16
      +-com.google.apis:google-api-services-sqladmin:v1beta4-rev20190827-1.30.1
        +-com.google.api-client:google-api-client:1.30.1
          +-com.google.http-client:google-http-client-jackson2:1.30.1
and

  +-com.google.cloud.sql:postgres-socket-factory:1.0.16
    +-com.google.cloud.sql:jdbc-socket-factory-core:1.0.16
      +-com.google.auth:google-auth-library-oauth2-http:0.21.1
        +-com.google.http-client:google-http-client-jackson2:1.36.0
[WARNING] 
Dependency convergence error for org.ow2.asm:asm-analysis:7.1 paths to dependency are:

  +-com.google.cloud.sql:postgres-socket-factory:1.0.16
    +-com.github.jnr:jnr-unixsocket:0.30
      +-com.github.jnr:jnr-ffi:2.1.13
        +-org.ow2.asm:asm-commons:7.1
          +-org.ow2.asm:asm-analysis:7.1
and

  +-com.google.cloud.sql:postgres-socket-factory:1.0.16
    +-com.github.jnr:jnr-unixsocket:0.30
      +-com.github.jnr:jnr-ffi:2.1.13
        +-org.ow2.asm:asm-analysis:7.1
and

  +-com.google.cloud.sql:postgres-socket-factory:1.0.16
    +-org.ow2.asm:asm-util:8.0.1
      +-org.ow2.asm:asm-analysis:8.0.1
[WARNING] 
Dependency convergence error for com.google.http-client:google-http-client:1.30.1 paths to dependency are:

  +-com.google.cloud.sql:postgres-socket-factory:1.0.16
    +-com.google.cloud.sql:jdbc-socket-factory-core:1.0.16
      +-com.google.apis:google-api-services-sqladmin:v1beta4-rev20190827-1.30.1
        +-com.google.api-client:google-api-client:1.30.1
          +-com.google.oauth-client:google-oauth-client:1.30.1
            +-com.google.http-client:google-http-client:1.30.1
and

  +-com.google.cloud.sql:postgres-socket-factory:1.0.16
    +-com.google.cloud.sql:jdbc-socket-factory-core:1.0.16
      +-com.google.auth:google-auth-library-oauth2-http:0.21.1
        +-com.google.http-client:google-http-client:1.36.0
[WARNING] Rule 1: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message:
Failed while enforcing releasability. See above detailed error message.

@artie-shevchenko
Copy link
Author

I think here is a quick fix on user side:

Within your pom.xml:

      <dependency>
        <groupId>com.google.cloud.sql</groupId>
        <artifactId>postgres-socket-factory</artifactId>
        <version>1.0.16</version>
        <exclusions>
          <exclusion>
            <groupId>org.ow2.asm</groupId>
            <artifactId>asm-tree</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.ow2.asm</groupId>
            <artifactId>asm-analysis</artifactId>
          </exclusion>
          <exclusion>
            <groupId>com.google.http-client</groupId>
            <artifactId>google-http-client</artifactId>
          </exclusion>
          <exclusion>
            <groupId>com.google.http-client</groupId>
            <artifactId>google-http-client-jackson2</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>org.ow2.asm</groupId>
        <artifactId>asm-analysis</artifactId>
        <version>8.0.1</version>
      </dependency>
      <dependency>
        <groupId>org.ow2.asm</groupId>
        <artifactId>asm-tree</artifactId>
        <version>8.0.1</version>
      </dependency>
      <dependency>
        <groupId>com.google.http-client</groupId>
        <artifactId>google-http-client-jackson2</artifactId>
        <version>1.36.0</version>
      </dependency>
      <dependency>
        <groupId>com.google.http-client</groupId>
        <artifactId>google-http-client</artifactId>
        <version>1.36.0</version>
      </dependency>

@shubha-rajan
Copy link
Contributor

Thanks for catching this and opening the PR @artieshevchenko. We'll look in to adding the dependencyConvergence rule to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants