Skip to content

[Bug]: The external table jar package build by mvn 3.9.11 is invalid #8

@hnwyllmm

Description

@hnwyllmm

Describe the bug

Observer error message when loading the invalid jar package:

Image

The class org/apache/arrow/adapter/jdbc/JdbcToArrowConfig was not replaced by the source code in this repo.

MVN 3.8.9 works well.

Environment

Image

Fast reproduce steps

build external table jar package with mvn 3.9 and test the package with observer.

Expected behavior

No response

Actual behavior

No response

Additional context

The unpack was executed when build the package:

[INFO] ------------< com.oceanbase.external:external-plugin-jdbc >-------------
[INFO] Building external-plugin-jdbc 1.0.0                                [3/5]
[INFO]   from plugin/jdbc/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- clean:3.2.0:clean (default-clean) @ external-plugin-jdbc ---
[INFO] 
[INFO] --- dependency:3.6.1:unpack (unpack) @ external-plugin-jdbc ---
[INFO] Configured Artifact: org.apache.arrow:arrow-jdbc:?:jar
[INFO] 

The java class org/apache/arrow/adapter/jdbc/JdbcToArrowConfig is defined by ARROW but we add a new method, so we use maven-dependency-plugin plugin to unpack arrow-jdbc and the java class JdbcToArrowConfig will be replaced at last. But it doesn't work with mvn 3.9.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions