You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "semistone (via GitHub)" <gi...@apache.org> on 2024/01/24 02:51:01 UTC
[I] Missing shad io.swagger classes in org.apache.pulsar:pulsar-client jar [pulsar]
semistone opened a new issue, #21962:
URL: https://github.com/apache/pulsar/issues/21962
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Motivation
when I work with pulsar client and build by gradle,
We don't allow any compile warning message
but we get many warning
```
/Users/yinchin.chen/.gradle/caches/modules-2/files-2.1/org.apache.pulsar/pulsar-client/3.1.2/1f5e746cd01aae20b2e8fd4bf61c09c41c8f9137/pulsar-client-3.1.2.jar(/org/apache/pulsar/client/impl/conf/ConsumerConfigurationData.class): warning: Cannot find annotation method 'name()' in type 'ApiModelProperty'
/Users/yinchin.chen/.gradle/caches/modules-2/files-2.1/org.apache.pulsar/pulsar-client/3.1.2/1f5e746cd01aae20b2e8fd4bf61c09c41c8f9137/pulsar-client-3.1.2.jar(/org/apache/pulsar/client/impl/conf/ConsumerConfigurationData.class): warning: Cannot find annotation method 'value()' in type 'ApiModelProperty'
error: warnings found and -Werror specified
```
it's because shaded swagger package is that jar file
eg: org.apache.pulsar.shade.io.swagger.annotations.ApiModelProperty;
```
jar tfv pulsar-client-3.1.2.jar |grep sawgger
```
### Solution
pulsar-client/pom.xml
maybe
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<scope>provided</scope> <==== remove this
</dependency>
or
don't shaded swagger
### Alternatives
_No response_
### Anything else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Missing shade io.swagger classes in org.apache.pulsar:pulsar-client jar [pulsar]
Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari closed issue #21962: Missing shade io.swagger classes in org.apache.pulsar:pulsar-client jar
URL: https://github.com/apache/pulsar/issues/21962
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org