Sounds like something which has to be added to maven-artifact-transfer[1]
[1] https://maven.apache.org/shared/maven-artifact-transfer/
On Sat, 07 Oct 2017 22:29:26 +0200, Andreas Sewe
<[email protected]> wrote:
Hi,
I am writing a Maven plugin that needs a *Wagon* TransferListener
(org.apache.maven.wagon.events.TransferListener). To ensure a consistent
user experience, this Wagon TransferListener should behave exactly like
the (org.eclipse|org.sonatype).aether.transfer.TransferListener which
Maven presumably uses for its other downloads.
The question is thus how to obtain such an instance?
I wasn't able to simply get a Wagon TransferListener injected
(@Component). And while I can get an Aether RepositorySystemSession with
its associated Aether TransferListener injected, I couldn't find a
*public* Aether->Wagon adapter (the one in
maven-resolver-transport-wagon is not public API). And writing this
adapter myself feels kind of silly, as I am pretty sure this kind of
compatibility layer already exists somewhere.
Can you please help me figure out where?
Best wishes,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]