You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "md_5 (Jira)" <ji...@apache.org> on 2020/04/17 04:13:00 UTC
[jira] [Commented] (MSHARED-511) Using structures to keep insertion
order for MANIFEST.MF
[ https://issues.apache.org/jira/browse/MSHARED-511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17085419#comment-17085419 ]
md_5 commented on MSHARED-511:
------------------------------
This isn't really fixed as in JDK 8 the underlying java.util.jar.Attributes class is not ordered, and in all current versions the underlying java.util.jar.Manifest 'Name:' entries are unordered.
The plexus archiver component needs to do some post serialization sorting, or serialize the manifest itself without relying on the JDK.
> Using structures to keep insertion order for MANIFEST.MF
> --------------------------------------------------------
>
> Key: MSHARED-511
> URL: https://issues.apache.org/jira/browse/MSHARED-511
> Project: Maven Shared Components
> Issue Type: Improvement
> Components: maven-archiver
> Affects Versions: maven-archiver-3.0.1
> Reporter: Karl Heinz Marbaise
> Assignee: Karl Heinz Marbaise
> Priority: Minor
> Fix For: maven-archiver-3.0.1
>
>
> Currently in maven-archiver things like HashMap and ArrayList are used which are not insertion order aware. Replaced with LinkedHashMap and LinkedList to keep insertion order.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)