[ https://issues.apache.org/jira/browse/MDEP-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15188953#comment-15188953 ]
Markus Karg commented on MDEP-436: ---------------------------------- I did not find the time to add _configurability_ of encoding to maven-dependency-plugin, but worked around using some _static_ encoding meanwhile, which works fine. Maybe some other users have the same need, so here is what I did in short: * Download source code of maven-dependency-plugin 2.10 * Patch the source file AbstractDependencyMojo in the following way: ... UnArchiver unArchiver; try { unArchiver = archiverManager.getUnArchiver( artifact.getType() ); getLog().debug( "Found unArchiver by type: " + unArchiver ); } catch ( NoSuchArchiverException e ) { unArchiver = archiverManager.getUnArchiver( file ); getLog().debug( "Found unArchiver by extension: " + unArchiver ); } // BEGIN OF PATCH if ( unArchiver instanceof AbstractZipUnArchiver ) { ( ( AbstractZipUnArchiver ) unArchiver ).setEncoding( "CP850" ); getLog().warn( "Custom dependency plugin: Always uses encoding 'CP850' for unpacking." ); } // END OF PATCH unArchiver.setUseJvmChmod( useJvmChmod ); ... * In the POM set version to "2.10_CP850_PATCH". * mvn install * In your projects explicitly request version "2.10_CP850_PATCH" Works for me, and relaxes the time until there is configurability. :-) HTH -Markus > German umlauts in outputDirectory and destFileName getting garbled > ------------------------------------------------------------------ > > Key: MDEP-436 > URL: https://issues.apache.org/jira/browse/MDEP-436 > Project: Maven Dependency Plugin > Issue Type: Bug > Components: copy > Affects Versions: 2.8 > Environment: Win7 Pro SP1 64 Bit, JRE 7, MVN 3.0.4 > Reporter: Markus Karg > Assignee: Kristian Rosenvold > Priority: Critical > Fix For: 2.10 > > > I am using German umlauts like Ã, à and à in my POM when configuring the > outputDirectory and destFileName properties of the copy goal. > When the plugin does the actual copy, the directory and file do not contain > that umlauts, but instead a strange symbol (encoding garbage). > It seems the plugin is unable to deal with German umlauts. While Java > definitively IS able to correctly handle it, and while the POM is encoded in > UTF-8, it is definitively a bug of a Maven component. As I do not know which > component fails here, I am reporting it at the failing plugin, as it is the > entry-point for me. -- This message was sent by Atlassian JIRA (v6.3.4#6332)