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

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17306943#comment-17306943 ] 

Jochen Schalanda commented on FELIX-6304:
-----------------------------------------

{quote}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}}).
{quote}
That's what I would've done in the beginning if the flag had been documented anywhere. ;)

[https://felix.apache.org/components/bundle-plugin/] doesn't mention the reproducible flag anywhere, neither does [https://felix.apache.org/].

> 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)