The ASSEMBLY plugin forwards its own <encoding> to the Plexus Archiver internally. That way you can create ZIPs with CP850. :-)
The DEPENDENCY plugin intenrally uses the Plexus ZipUnarchiver. The Plexus ZipUnarchiver is a special form of the AbstractUnarchiver, which has a method setEncoding(String) (http://plexus.codehaus.org/plexus-components/plexus-archiver/apidocs/org/codehaus/plexus/archiver/zip/AbstractZipUnArchiver.html#setEncoding(java.lang.String) ). But the dependency plugin has no <encoding> to forwards to the Plexus ZipArchiver to make use it this. :-( -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Kristian Rosenvold Gesendet: Montag, 16. März 2015 20:25 An: Maven Users List Betreff: Re: How to configure maven-dependency-plugin's encoding used for unpack? I don't really see that the dependency plugin has any support for encoding in pack or unpack. Where did you see that ? Kristian 2015-03-16 15:04 GMT+01:00 Markus Karg <[email protected]>: > Kristian, > > can you please reopen the item then? I mean, it simply is not fixed, > because UTF-8 ZIPs are not a solution: Windows cannot correctly > display them, so people on the Windows world will virtually every create > CP850-ZIPs! > > Do you know about any plans to support this, or what is the intended > future of this issue? > > Thanks > -Markus > > -----Ursprüngliche Nachricht----- > Von: [email protected] > [mailto:[email protected]] > Im Auftrag von Kristian Rosenvold > Gesendet: Montag, 16. März 2015 13:46 > An: Maven Users List > Betreff: Re: How to configure maven-dependency-plugin's encoding used > for unpack? > > I did not actually look at the implementation on the dependency > plugin, but it is actually technically impossible to supply the > encoding parameter to > *unzip* via the <archiverConfig> tag. So until this is fixed, UTF-8 > zip archives are the only ones that will work (with plexus unzip archiver). > > Kristian > > > 2015-03-16 13:05 GMT+01:00 Adrien Rivard <[email protected]>: > > > If I'm reading the documentation correctly, > > <archiverConfig><encoding> only apply to filter resources, not to zip them. > > > > In any case I would try using utf-8. > > > > > > On Mon, Mar 16, 2015 at 12:34 PM, Kristian Rosenvold < > > [email protected]> wrote: > > > > > I dont believe there is support for specifying encoding to unzip. > > > At > > least > > > assembly only provides config to zip. Call it a bug, call it a > > > feature :( > > > > > > Kristian > > > > > > > > > 2015-03-16 12:12 GMT+01:00 Markus Karg <[email protected]>: > > > > > > > To preserve German umlauts in file names within a ZIP, we are > using... > > > > > > > > <archiverConfig> > > > > <encoding>CP850</encoding> > > > > </archiverConfig> > > > > > > > > ...in the maven-assembly-plugin configuration, which is working well. > > :) > > > > > > > > Next we want to use maven-dependency-plugin to unpack that ZIP. > > > > > > > > How can we configure maven-dependency-plugin:unpack so it will > > > > apply > > > CP850 > > > > when unpacking that ZIP? > > > > > > > > Thanks! > > > > -Markus > > > > > > > > > > > > > > > -- > > Adrien Rivard > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
