Hi Chris,

bnd-LastModified comes from bndlib used by the maven-bundle-plugin (not
the plugin itself). It's also part of the OSGi spec, purely there for
convenience.

Did you try <_removeheaders>Bnd-LastModified</_removeheaders> in plugin
configuration (in the <instructions/> section) ?

Regards
JB

On 03/11/2019 22:11, Christofer Dutz wrote:
> Hi all,
> 
> I’m currently trying out the new versions oft he maven plugins to allow 
> reproducible builds for the Apache PLC4X project.
> The latest updated did help quite a lot, but we recentrly added the 
> maven-bundle-plugin to our build to produce OSGi informationin the 
> MANIFEST.MF using the „manifest“ goal.
> 
> Unfortunately this is currently breaking our reproducible builds efforts as 
> the: Bnd-LastModified entry is breaking this.
> 
> Would it be possible to use the value of the „project.build.outputTimestamp“ 
> property?
> 
>     
> <project.build.outputTimestamp>2019-11-01T010:30:00Z</project.build.outputTimestamp>
> 
> So if this property is provided, this value is used for the 
> „Bnd-LastModified“ entry and if it’s not, the normal timestamp is used?
> 
> If you think that’s a valid path, I would be happy to whip up a PR.
> If there are other ways to achieve this, I would be happy to adjust our build 
> accordingly.
> 
> Chris
> 

-- 
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to