[ 
https://issues.apache.org/jira/browse/FELIX-6304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17307387#comment-17307387
 ] 

BJ Hargrave commented on FELIX-6304:
------------------------------------

It would be better if maven-bundle-plugin looked to see if the project property 
`project.build.outputTimestamp` was set (non-null) and if so, then 
maven-bundle-plugin should set `-reproducible: true` on the underlying Bnd 
Builder object. Then you don't require users to configure a specific Bnd 
instruction but instead use the normal maven way to configure for reproducible 
builds which is to set the `project.build.outputTimestamp` project property.

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

Reply via email to