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

[Bug] Maven deployment failed on project pulsar-presto-connector-original #17047

Closed
2 tasks done
BewareMyPower opened this issue Aug 10, 2022 · 12 comments · Fixed by #17659
Closed
2 tasks done

[Bug] Maven deployment failed on project pulsar-presto-connector-original #17047

BewareMyPower opened this issue Aug 10, 2022 · 12 comments · Fixed by #17659
Assignees
Labels
type/bug The PR fixed a bug or issue reported a bug

Comments

@BewareMyPower
Copy link
Contributor

Search before asking

  • I searched in the issues and found nothing similar.

Version

Pulsar branch-2.8

$ mvn --version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /Users/xxx/.sdkman/candidates/maven/current
Java version: 11.0.16, vendor: Amazon.com Inc., runtime: /Users/xxx/.sdkman/candidates/java/11.0.16-amzn
Default locale: zh_CN_#Hans, platform encoding: UTF-8
OS name: "mac os x", version: "12.3.1", arch: "x86_64", family: "mac"

Minimal reproduce step

It has succeeded before. But it failed twice in a row when I tried to deploy it again. I have already removed the staging repository. See

image

Follow https://github.com/apache/pulsar/wiki/Release-process#5-stage-artifacts-in-maven (Apache Committer is required)

mvn clean install -DskipTests

export APACHE_USER=$USER
export APACHE_PASSWORD=$MY_PASSWORD
export GPG_TTY=$(tty)
curl -s -o /tmp/mvn-apache-settings.xml https://raw.githubusercontent.com/apache/pulsar/master/src/settings.xml
mvn deploy -DskipTests -Papache-release --settings /tmp/mvn-apache-settings.xml

What did you expect to see?

mvn deploy should succeed.

What did you see instead?

Recently I encounted a problem when I ran the mvn deploy step in
https://github.com/apache/pulsar/wiki/Release-process#5-stage-artifacts-in-maven.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.2.4:shade (default) on project pulsar-presto-connector-original: Error creating shaded jar: duplicate entry: META-INF/services/org.apache.pulsar.shade.org.glassfish.jersey.internal.inject.InjectionManagerFactory -> [Help 1]

[INFO] pulsar-broker-auth-athenz .......................... SUCCESS [ 17.252 s]
[INFO] pulsar-client-auth-athenz .......................... SUCCESS [ 17.002 s]
[INFO] Pulsar SQL :: Parent ............................... SUCCESS [  4.238 s]
[INFO] Pulsar SQL :: Pulsar Presto Connector Packaging .... FAILURE [  6.922 s]
[INFO] Pulsar SQL :: Pulsar Presto Connector .............. SKIPPED
[INFO] Pulsar SQL :: Java Version Trim Agent .............. SKIPPED
[INFO] Pulsar SQL :: Pulsar Presto Distribution ........... SKIPPED

We can see the previous artifacts were deployed successfully.

Anything else?

There were warning logs about the "overlapping resource"

[WARNING] aopalliance-repackaged-2.6.1.jar, hk2-api-2.6.1.jar, hk2-locator-2.6.1.jar, hk2-utils-2.6.1.jar, jakarta.inject-2.6.1.jar, javax.annotation-api-1.3.2.jar, javax.ws.rs-api-2.1.jar, jersey-client-2.34.jar, jersey-common-2.34.jar, jersey-entity-filtering-2.34.jar, jersey-hk2-2.34.jar, jersey-media-json-jackson-2.34.jar, jersey-media-multipart-2.34.jar, jetty-io-9.4.48.v20220622.jar, jetty-security-9.4.27.v20200227.jar, jetty-server-9.4.48.v20220622.jar, jetty-servlet-9.4.48.v20220622.jar, jetty-util-9.4.48.v20220622.jar, jetty-util-ajax-9.4.48.v20220622.jar, managed-ledger.jar, osgi-resource-locator-1.0.3.jar, pulsar-client-admin-original.jar, pulsar-client-original.jar, pulsar-metadata.jar, pulsar-presto-connector-original.jar define 1 overlapping resource: 
[WARNING]   - META-INF/MANIFEST.MF
[WARNING] managed-ledger.jar, pulsar-client-admin-original.jar, pulsar-client-original.jar, pulsar-metadata.jar, pulsar-presto-connector-original.jar define 2 overlapping resources: 
[WARNING]   - META-INF/DEPENDENCIES
[WARNING]   - META-INF/NOTICE
[WARNING] jetty-io-9.4.48.v20220622.jar, jetty-security-9.4.27.v20200227.jar, jetty-server-9.4.48.v20220622.jar, jetty-servlet-9.4.48.v20220622.jar, jetty-util-9.4.48.v20220622.jar, jetty-util-ajax-9.4.48.v20220622.jar, managed-ledger.jar, pulsar-client-admin-original.jar, pulsar-client-original.jar, pulsar-metadata.jar, pulsar-presto-connector-original.jar define 1 overlapping resource: 
[WARNING]   - META-INF/LICENSE
[WARNING] pulsar-client-admin-original.jar, pulsar-presto-connector-original.jar define 233 overlapping classes and resources: 
[WARNING]   - META-INF/maven/org.apache.pulsar/pulsar-client-admin-original/pom.properties
[WARNING]   - META-INF/maven/org.apache.pulsar/pulsar-client-admin-original/pom.xml
[WARNING]   - org.apache.pulsar.client.admin.internal.BaseResource
[WARNING]   - org.apache.pulsar.client.admin.internal.BaseResource$1
[WARNING]   - org.apache.pulsar.client.admin.internal.BaseResource$2
[WARNING]   - org.apache.pulsar.client.admin.internal.BaseResource$3
[WARNING]   - org.apache.pulsar.client.admin.internal.BookiesImpl
[WARNING]   - org.apache.pulsar.client.admin.internal.BookiesImpl$1
[WARNING]   - org.apache.pulsar.client.admin.internal.BookiesImpl$2
[WARNING]   - org.apache.pulsar.client.admin.internal.BookiesImpl$3
[WARNING]   - 223 more...
[WARNING] pulsar-client-original.jar, pulsar-presto-connector-original.jar define 276 overlapping classes and resources: 
[WARNING]   - META-INF/maven/org.apache.pulsar/pulsar-client-original/pom.properties
[WARNING]   - META-INF/maven/org.apache.pulsar/pulsar-client-original/pom.xml
[WARNING]   - findbugsExclude.xml
[WARNING]   - org.apache.pulsar.client.impl.AbstractBatchMessageContainer
[WARNING]   - org.apache.pulsar.client.impl.AcknowledgmentsGroupingTracker
[WARNING]   - org.apache.pulsar.client.impl.AuthenticationUtil
[WARNING]   - org.apache.pulsar.client.impl.AuthenticationUtil$1
[WARNING]   - org.apache.pulsar.client.impl.Backoff
[WARNING]   - org.apache.pulsar.client.impl.BackoffBuilder
[WARNING]   - org.apache.pulsar.client.impl.BatchMessageAcker
[WARNING]   - 266 more...
[WARNING] aopalliance-repackaged-2.6.1.jar, hk2-api-2.6.1.jar, hk2-locator-2.6.1.jar, hk2-utils-2.6.1.jar, jakarta.inject-2.6.1.jar, jersey-client-2.34.jar, jersey-common-2.34.jar, jersey-entity-filtering-2.34.jar, jersey-hk2-2.34.jar, jersey-media-json-jackson-2.34.jar, jersey-media-multipart-2.34.jar, pulsar-presto-connector-original.jar define 2 overlapping resources: 
[WARNING]   - META-INF/LICENSE.md
[WARNING]   - META-INF/NOTICE.md
[WARNING] jersey-client-2.34.jar, pulsar-presto-connector-original.jar define 2 overlapping resources: 
[WARNING]   - META-INF/maven/org.glassfish.jersey.core/jersey-client/pom.properties
[WARNING]   - META-INF/maven/org.glassfish.jersey.core/jersey-client/pom.xml
[WARNING] jersey-common-2.34.jar, jersey-media-json-jackson-2.34.jar, pulsar-presto-connector-original.jar define 1 overlapping resource: 
[WARNING]   - META-INF/NOTICE.markdown
[WARNING] jersey-common-2.34.jar, pulsar-presto-connector-original.jar define 12 overlapping classes and resources: 
[WARNING]   - META-INF.versions.11.org.glassfish.jersey.internal.jsr166.JerseyFlowSubscriber
[WARNING]   - META-INF.versions.11.org.glassfish.jersey.internal.jsr166.JerseyFlowSubscriber$1
[WARNING]   - META-INF.versions.11.org.glassfish.jersey.internal.jsr166.SubmissionPublisher
[WARNING]   - META-INF.versions.11.org.glassfish.jersey.internal.jsr166.SubmissionPublisher$1
[WARNING]   - META-INF.versions.11.org.glassfish.jersey.internal.jsr166.SubmissionPublisher$2
[WARNING]   - META-INF.versions.11.org.glassfish.jersey.internal.jsr166.SubmissionPublisher$3
[WARNING]   - META-INF.versions.11.org.glassfish.jersey.internal.jsr166.SubmissionPublisher$4
[WARNING]   - META-INF.versions.11.org.glassfish.jersey.internal.jsr166.SubmissionPublisher$5
[WARNING]   - META-INF.versions.11.org.glassfish.jersey.internal.jsr166.SubmissionPublisher$6
[WARNING]   - META-INF.versions.11.org.glassfish.jersey.internal.jsr166.SubmissionPublisherFactory
[WARNING]   - 2 more...
[WARNING] osgi-resource-locator-1.0.3.jar, pulsar-presto-connector-original.jar define 2 overlapping resources: 
[WARNING]   - META-INF/maven/org.glassfish.hk2/osgi-resource-locator/pom.properties
[WARNING]   - META-INF/maven/org.glassfish.hk2/osgi-resource-locator/pom.xml
[WARNING] jakarta.inject-2.6.1.jar, pulsar-presto-connector-original.jar define 8 overlapping classes and resources: 
[WARNING]   - META-INF/maven/org.glassfish.hk2.external/jakarta.inject/pom.properties
[WARNING]   - META-INF/maven/org.glassfish.hk2.external/jakarta.inject/pom.xml
[WARNING]   - javax.inject.Inject
[WARNING]   - javax.inject.Named
[WARNING]   - javax.inject.Provider
[WARNING]   - javax.inject.Qualifier
[WARNING]   - javax.inject.Scope
[WARNING]   - javax.inject.Singleton
[WARNING] jersey-media-json-jackson-2.34.jar, pulsar-presto-connector-original.jar define 2 overlapping resources: 
[WARNING]   - META-INF/maven/org.glassfish.jersey.media/jersey-media-json-jackson/pom.properties
[WARNING]   - META-INF/maven/org.glassfish.jersey.media/jersey-media-json-jackson/pom.xml
[WARNING] jersey-entity-filtering-2.34.jar, pulsar-presto-connector-original.jar define 2 overlapping resources: 
[WARNING]   - META-INF/maven/org.glassfish.jersey.ext/jersey-entity-filtering/pom.properties
[WARNING]   - META-INF/maven/org.glassfish.jersey.ext/jersey-entity-filtering/pom.xml
[WARNING] jersey-media-multipart-2.34.jar, pulsar-presto-connector-original.jar define 2 overlapping resources: 
[WARNING]   - META-INF/maven/org.glassfish.jersey.media/jersey-media-multipart/pom.properties
[WARNING]   - META-INF/maven/org.glassfish.jersey.media/jersey-media-multipart/pom.xml
[WARNING] jersey-hk2-2.34.jar, pulsar-presto-connector-original.jar define 2 overlapping resources: 
[WARNING]   - META-INF/maven/org.glassfish.jersey.inject/jersey-hk2/pom.properties
[WARNING]   - META-INF/maven/org.glassfish.jersey.inject/jersey-hk2/pom.xml
[WARNING] hk2-locator-2.6.1.jar, pulsar-presto-connector-original.jar define 101 overlapping classes and resources: 
[WARNING]   - META-INF/maven/org.glassfish.hk2/hk2-locator/pom.properties
[WARNING]   - META-INF/maven/org.glassfish.hk2/hk2-locator/pom.xml
[WARNING]   - org.jvnet.hk2.external.generator.ServiceLocatorGeneratorImpl
[WARNING]   - org.jvnet.hk2.external.runtime.Hk2LocatorUtilities
[WARNING]   - org.jvnet.hk2.external.runtime.Hk2LocatorUtilities$1
[WARNING]   - org.jvnet.hk2.external.runtime.ServiceLocatorRuntimeBean
[WARNING]   - org.jvnet.hk2.internal.AnnotatedElementAnnotationInfo
[WARNING]   - org.jvnet.hk2.internal.AutoActiveDescriptor
[WARNING]   - org.jvnet.hk2.internal.CacheKey
[WARNING]   - org.jvnet.hk2.internal.CacheKey$1
[WARNING]   - 91 more...
[WARNING] aopalliance-repackaged-2.6.1.jar, pulsar-presto-connector-original.jar define 28 overlapping classes and resources: 
[WARNING]   - META-INF/maven/org.glassfish.hk2.external/aopalliance-repackaged/pom.properties
[WARNING]   - META-INF/maven/org.glassfish.hk2.external/aopalliance-repackaged/pom.xml
[WARNING]   - org.aopalliance.aop.Advice
[WARNING]   - org.aopalliance.aop.AspectException
[WARNING]   - org.aopalliance.instrument.Instrumentation
[WARNING]   - org.aopalliance.instrument.InstrumentationError
[WARNING]   - org.aopalliance.instrument.Instrumentor
[WARNING]   - org.aopalliance.instrument.UndoNotSupportedException
[WARNING]   - org.aopalliance.intercept.ConstructorInterceptor
[WARNING]   - org.aopalliance.intercept.ConstructorInvocation
[WARNING]   - 18 more...
[WARNING] hk2-api-2.6.1.jar, pulsar-presto-connector-original.jar define 7 overlapping classes and resources: 
[WARNING]   - META-INF/maven/org.glassfish.hk2/hk2-api/pom.properties
[WARNING]   - META-INF/maven/org.glassfish.hk2/hk2-api/pom.xml
[WARNING]   - org.jvnet.hk2.annotations.Contract
[WARNING]   - org.jvnet.hk2.annotations.ContractsProvided
[WARNING]   - org.jvnet.hk2.annotations.InhabitantAnnotation
[WARNING]   - org.jvnet.hk2.annotations.Optional
[WARNING]   - org.jvnet.hk2.annotations.Service
[WARNING] hk2-utils-2.6.1.jar, pulsar-presto-connector-original.jar define 4 overlapping classes and resources: 
[WARNING]   - META-INF/maven/org.glassfish.hk2/hk2-utils/pom.properties
[WARNING]   - META-INF/maven/org.glassfish.hk2/hk2-utils/pom.xml
[WARNING]   - org.jvnet.hk2.component.MultiMap
[WARNING]   - org.jvnet.hk2.component.MultiMap$1
[WARNING] managed-ledger.jar, pulsar-presto-connector-original.jar define 299 overlapping classes and resources: 
[WARNING]   - META-INF/maven/org.apache.pulsar/managed-ledger/pom.properties
[WARNING]   - META-INF/maven/org.apache.pulsar/managed-ledger/pom.xml
[WARNING]   - MLDataFormats.proto
[WARNING]   - org.apache.bookkeeper.mledger.AsyncCallbacks
[WARNING]   - org.apache.bookkeeper.mledger.AsyncCallbacks$AddEntryCallback
[WARNING]   - org.apache.bookkeeper.mledger.AsyncCallbacks$ClearBacklogCallback
[WARNING]   - org.apache.bookkeeper.mledger.AsyncCallbacks$CloseCallback
[WARNING]   - org.apache.bookkeeper.mledger.AsyncCallbacks$DeleteCallback
[WARNING]   - org.apache.bookkeeper.mledger.AsyncCallbacks$DeleteCursorCallback
[WARNING]   - org.apache.bookkeeper.mledger.AsyncCallbacks$DeleteLedgerCallback
[WARNING]   - 289 more...
[WARNING] pulsar-metadata.jar, pulsar-presto-connector-original.jar define 54 overlapping classes and resources: 
[WARNING]   - META-INF/maven/org.apache.pulsar/pulsar-metadata/pom.properties
[WARNING]   - META-INF/maven/org.apache.pulsar/pulsar-metadata/pom.xml
[WARNING]   - org.apache.pulsar.metadata.api.CacheGetResult
[WARNING]   - org.apache.pulsar.metadata.api.GetResult
[WARNING]   - org.apache.pulsar.metadata.api.MetadataCache
[WARNING]   - org.apache.pulsar.metadata.api.MetadataSerde
[WARNING]   - org.apache.pulsar.metadata.api.MetadataStore
[WARNING]   - org.apache.pulsar.metadata.api.MetadataStoreConfig
[WARNING]   - org.apache.pulsar.metadata.api.MetadataStoreConfig$MetadataStoreConfigBuilder
[WARNING]   - org.apache.pulsar.metadata.api.MetadataStoreException
[WARNING]   - 44 more...
[WARNING] javax.annotation-api-1.3.2.jar, pulsar-presto-connector-original.jar define 3 overlapping resources: 
[WARNING]   - META-INF/LICENSE.txt
[WARNING]   - META-INF/maven/javax.annotation/javax.annotation-api/pom.properties
[WARNING]   - META-INF/maven/javax.annotation/javax.annotation-api/pom.xml
[WARNING] jetty-io-9.4.48.v20220622.jar, jetty-security-9.4.27.v20200227.jar, jetty-server-9.4.48.v20220622.jar, jetty-servlet-9.4.48.v20220622.jar, jetty-util-9.4.48.v20220622.jar, jetty-util-ajax-9.4.48.v20220622.jar, pulsar-presto-connector-original.jar define 2 overlapping resources: 
[WARNING]   - META-INF/NOTICE.txt
[WARNING]   - about.html
[WARNING] jetty-security-9.4.27.v20200227.jar, pulsar-presto-connector-original.jar define 2 overlapping resources: 
[WARNING]   - META-INF/maven/org.eclipse.jetty/jetty-security/pom.properties
[WARNING]   - META-INF/maven/org.eclipse.jetty/jetty-security/pom.xml
[WARNING] javax.ws.rs-api-2.1.jar, pulsar-presto-connector-original.jar define 2 overlapping resources: 
[WARNING]   - META-INF/maven/javax.ws.rs/javax.ws.rs-api/pom.properties
[WARNING]   - META-INF/maven/javax.ws.rs/javax.ws.rs-api/pom.xml
[WARNING] jetty-server-9.4.48.v20220622.jar, pulsar-presto-connector-original.jar define 3 overlapping resources: 
[WARNING]   - META-INF/maven/org.eclipse.jetty/jetty-server/pom.properties
[WARNING]   - META-INF/maven/org.eclipse.jetty/jetty-server/pom.xml
[WARNING]   - jetty-dir.css
[WARNING] jetty-servlet-9.4.48.v20220622.jar, pulsar-presto-connector-original.jar define 2 overlapping resources: 
[WARNING]   - META-INF/maven/org.eclipse.jetty/jetty-servlet/pom.properties
[WARNING]   - META-INF/maven/org.eclipse.jetty/jetty-servlet/pom.xml
[WARNING] jetty-util-ajax-9.4.48.v20220622.jar, pulsar-presto-connector-original.jar define 2 overlapping resources: 
[WARNING]   - META-INF/maven/org.eclipse.jetty/jetty-util-ajax/pom.properties
[WARNING]   - META-INF/maven/org.eclipse.jetty/jetty-util-ajax/pom.xml
[WARNING] jetty-util-9.4.48.v20220622.jar, pulsar-presto-connector-original.jar define 2 overlapping resources: 
[WARNING]   - META-INF/maven/org.eclipse.jetty/jetty-util/pom.properties
[WARNING]   - META-INF/maven/org.eclipse.jetty/jetty-util/pom.xml
[WARNING] jetty-io-9.4.48.v20220622.jar, pulsar-presto-connector-original.jar define 2 overlapping resources: 
[WARNING]   - META-INF/maven/org.eclipse.jetty/jetty-io/pom.properties
[WARNING]   - META-INF/maven/org.eclipse.jetty/jetty-io/pom.xml
[WARNING] maven-shade-plugin has detected that some class files are
[WARNING] present in two or more JARs. When this happens, only one
[WARNING] single version of the class is copied to the uber jar.
[WARNING] Usually this is not harmful and you can skip these warnings,
[WARNING] otherwise try to manually exclude artifacts based on
[WARNING] mvn dependency:tree -Ddetail=true and the above output.
[WARNING] See http://maven.apache.org/plugins/maven-shade-plugin/

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@BewareMyPower BewareMyPower added the type/bug The PR fixed a bug or issue reported a bug label Aug 10, 2022
@mattisonchao
Copy link
Member

if you want to deploy again, you need to clean some generated resources first.

@BewareMyPower
Copy link
Contributor Author

BewareMyPower commented Aug 10, 2022 via email

@BewareMyPower
Copy link
Contributor Author

I removed the whole project and it still failed.

@BewareMyPower
Copy link
Contributor Author

Run mvn clean deploy solves this issue, I've updated it in here. But it still looks like a bug for Pulsar, so keep this issue open.

@tisonkun
Copy link
Member

@BewareMyPower Yes. Although not in deploy stage, I notice that compile generates this issue and fixed if running clean first.

@tisonkun
Copy link
Member

You may report this issue to MSHADE JIRA also. Maven is weak in incremental compilation, though.

@BewareMyPower
Copy link
Contributor Author

I notice that compile generates this issue and fixed if running clean first.

Yes, I also noticed it but I cannot reproduce it at the moment.

@tisonkun
Copy link
Member

This issue can be relevant elastic/apm-agent-java#961

@tisonkun
Copy link
Member

Reported at upstream: https://issues.apache.org/jira/browse/MSHADE-425

It seems a maven shade plugin LTA. Or we may investigate to exclude some dependencies to workaround.

@tisonkun
Copy link
Member

tisonkun commented Sep 3, 2022

I think I found the root cause. After the first run, we have both:

[DEBUG] Transforming META-INF/services/org.apache.pulsar.shade.org.glassfish.jersey.internal.inject.InjectionManagerFactory using org.apache.maven.plugins.shade.resource.ServicesResourceTransformer
[DEBUG] Transforming META-INF/services/org.glassfish.jersey.internal.inject.InjectionManagerFactory using org.apache.maven.plugins.shade.resource.ServicesResourceTransformer

... in the path. And perhaps due to ServicesResourceTransformer first treat them as different files, but after relocated, they are under the same name, so when shaded into the final jar file, it failed on:

Caused by: java.util.zip.ZipException: duplicate entry: META-INF/services/org.apache.pulsar.shade.org.glassfish.jersey.internal.inject.InjectionManagerFactory
    at java.util.zip.ZipOutputStream.putNextEntry (ZipOutputStream.java:241)
    at java.util.jar.JarOutputStream.putNextEntry (JarOutputStream.java:115)
    at org.apache.maven.plugins.shade.resource.ServicesResourceTransformer.modifyOutputStream (ServicesResourceTransformer.java:125)
    at org.apache.maven.plugins.shade.DefaultShader.shade (DefaultShader.java:155)
    at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute (ShadeMojo.java:500)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)

CONFIRMED with customized logs:

[WARNING] processResource: resource: META-INF/services/org.apache.pulsar.shade.org.glassfish.jersey.internal.inject.InjectionManagerFactory, out: [org.apache.pulsar.shade.org.glassfish.jersey.inject.hk2.Hk2InjectionManagerFactory]
[WARNING] processResource: resource: META-INF/services/org.apache.pulsar.shade.org.glassfish.hk2.extension.ServiceLocatorGenerator, out: [org.jvnet.hk2.external.generator.ServiceLocatorGeneratorImpl]
[WARNING] processResource: resource: META-INF/services/io.trino.spi.Plugin, out: [org.apache.pulsar.sql.presto.PulsarPlugin]
[WARNING] processResource: resource: META-INF/services/org.apache.pulsar.shade.org.glassfish.jersey.internal.spi.AutoDiscoverable, out: [org.apache.pulsar.shade.org.glassfish.jersey.logging.LoggingFeatureAutoDiscoverable, org.apache.pulsar.shade.org.glassfish.jersey.internal.config.ExternalPropertiesAutoDiscoverable, org.apache.pulsar.shade.org.glassfish.jersey.jackson.internal.JacksonAutoDiscoverable]
[WARNING] processResource: resource: META-INF/services/org.glassfish.jersey.internal.spi.AutoDiscoverable, out: [org.apache.pulsar.shade.org.glassfish.jersey.logging.LoggingFeatureAutoDiscoverable, org.apache.pulsar.shade.org.glassfish.jersey.internal.config.ExternalPropertiesAutoDiscoverable]
[WARNING] processResource: resource: META-INF/services/org.glassfish.jersey.internal.spi.AutoDiscoverable, out: [org.apache.pulsar.shade.org.glassfish.jersey.logging.LoggingFeatureAutoDiscoverable, org.apache.pulsar.shade.org.glassfish.jersey.internal.config.ExternalPropertiesAutoDiscoverable, org.apache.pulsar.shade.org.glassfish.jersey.jackson.internal.JacksonAutoDiscoverable]
[WARNING] processResource: resource: META-INF/services/org.glassfish.jersey.internal.inject.InjectionManagerFactory, out: [org.apache.pulsar.shade.org.glassfish.jersey.inject.hk2.Hk2InjectionManagerFactory]
[WARNING] processResource: resource: META-INF/services/org.glassfish.hk2.extension.ServiceLocatorGenerator, out: [org.jvnet.hk2.external.generator.ServiceLocatorGeneratorImpl]

This should be an upstream issue to resolve. As long as we hold the dependency and relocation logic, it's always there. We may try to get rid of the dependency of jersey-hk2-2.34.jar and hope there're no more bad cases.

@tisonkun
Copy link
Member

tisonkun commented Sep 3, 2022

Here apache/maven-shade-plugin#150 is the fix for upstream. I've verified locally. Please react an emoji to prioritize it :)

@tisonkun
Copy link
Member

@BewareMyPower upstream fix is pending to release. You can assign this issue to me and I will do the upgrade after it's done.

tisonkun added a commit to tisonkun/pulsar that referenced this issue Sep 15, 2022
This closes apache#17047.

Upstream patch is apache/maven-shade-plugin#150.

Bump maven-shade-plugin version to 3.4.0 for the upstream fix.

Signed-off-by: tison <wander4096@gmail.com>
merlimat pushed a commit that referenced this issue Sep 15, 2022
This closes #17047.

Upstream patch is apache/maven-shade-plugin#150.

Bump maven-shade-plugin version to 3.4.0 for the upstream fix.

Signed-off-by: tison <wander4096@gmail.com>

Signed-off-by: tison <wander4096@gmail.com>
Jason918 pushed a commit that referenced this issue Sep 26, 2022
This closes #17047.

Upstream patch is apache/maven-shade-plugin#150.

Bump maven-shade-plugin version to 3.4.0 for the upstream fix.

Signed-off-by: tison <wander4096@gmail.com>

Signed-off-by: tison <wander4096@gmail.com>
(cherry picked from commit 2865007)
nicoloboschi pushed a commit to datastax/pulsar that referenced this issue Sep 28, 2022
This closes apache#17047.

Upstream patch is apache/maven-shade-plugin#150.

Bump maven-shade-plugin version to 3.4.0 for the upstream fix.

Signed-off-by: tison <wander4096@gmail.com>

Signed-off-by: tison <wander4096@gmail.com>
(cherry picked from commit 2865007)
(cherry picked from commit f53c9d5)
congbobo184 added a commit that referenced this issue Nov 8, 2022
This closes #17047.

Upstream patch is apache/maven-shade-plugin#150.

Bump maven-shade-plugin version to 3.4.0 for the upstream fix.
congbobo184 pushed a commit that referenced this issue Nov 30, 2022
This closes #17047.

Upstream patch is apache/maven-shade-plugin#150.

Bump maven-shade-plugin version to 3.4.0 for the upstream fix.

Signed-off-by: tison <wander4096@gmail.com>

Signed-off-by: tison <wander4096@gmail.com>
(cherry picked from commit 2865007)
nodece pushed a commit that referenced this issue Jun 7, 2023
This closes #17047.

Upstream patch is apache/maven-shade-plugin#150.

Bump maven-shade-plugin version to 3.4.0 for the upstream fix.

Signed-off-by: tison <wander4096@gmail.com>

Signed-off-by: tison <wander4096@gmail.com>
(cherry picked from commit 2865007)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants