You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2021/03/23 09:09:00 UTC

[jira] [Resolved] (FELIX-6304) bundle:bundle generates non-reproducible JAR archives (timestamps)

     [ https://issues.apache.org/jira/browse/FELIX-6304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved FELIX-6304.
-----------------------------------------
    Resolution: Won't Fix

That's not directly a maven-bundle-plugin issue, but more bnd instructions used. Using bnd {{-reproducible}} flag (or {{_reproducible}} in the {{maven-bundle-plugin}}).

> bundle:bundle generates non-reproducible JAR archives (timestamps)
> ------------------------------------------------------------------
>
>                 Key: FELIX-6304
>                 URL: https://issues.apache.org/jira/browse/FELIX-6304
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-5.1.1
>            Reporter: Jochen Schalanda
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>              Labels: reproducible-builds
>
> The JAR archives built by maven-bundle-plugin are not reproducible (as in reproducible builds) because the timestamps of their entries are variable and are using the current system time.
> The maven-jar-plugin supports using a fixed timestamp via the [outputTimestamp|https://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html#outputTimestamp] setting (default: {{${project.build.outputTimestamp}}}) while the maven-bundle-plugin doesn't expose a similar setting.
> Support for reproducible builds in the maven-jar-plugin was added with this commit: [https://github.com/apache/maven-jar-plugin/commit/64c5e6530b4712cd95501fffb2de6bb1a202cd89]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)