Hi,

there is a configuration for including/excluding provided scope
dependencies -
https://maven.apache.org/plugins/maven-shade-plugin/shade-mojo.html#keepDependenciesWithProvidedScope
.
It is not apparent what should be the default behavior from the
documentation though.

Pavel

On Thu, 9 Feb 2023 at 07:52, Adam Cervenka (ZA)
<Adam.Cervenka@absa.africa.invalid> wrote:

> Hello,
>
> I would like to report a bug.
>
> I declared a dependency as provided, but the shade plugin still includes
> its transitive dependencies in the uber-jar.
>
> To demonstrate the issue, I created following repository:
> https://github.com/cerveada/shade-plugin-issue
>
> Using the poms and instructions in the repo it should be easy to replicate
> the issue.
>
> Thanks,
> Adam Cervenka
>
> Absa Bank Limited is a subsidiary of Absa Group Limited and is an
> Authorised Financial Services Provider and Registered Credit Provider,
> registration number: NCRCP7.
>
> Absa Bank Limited provides services to Absa Group Limited and its
> subsidiaries.
>
> Absa is committed to complying with applicable data privacy laws and to
> safeguarding the privacy and security of the personal information it
> collects and processes, in respect of all current and prospective clients.
> To understand more about how we collect, store, and process your personal
> information, please view our privacy statement at absa.co.za
>
> This e-mail and any attachments are confidential and intended solely for
> the addressee and may also be privileged or exempt from disclosure under
> applicable law. If you are not the addressee, or have received this e-mail
> in error, please notify the sender immediately, delete it from your system
> and do not copy, disclose or otherwise act upon any part of this e-mail or
> its attachments. Internet communications are not guaranteed to be secure or
> virus-free. We do not accept responsibility for any loss arising from
> unauthorised access to, or interference with, any Internet communications
> by any third party, or from the transmission of any viruses. We may monitor
> replies to this e-mail for operational or business reasons. Any opinion or
> other information in this e-mail or its attachments that does not relate to
> our business is personal to the sender and we do not endorse it.
>

Reply via email to