Search code examples
javamaven-3maven-bundle-plugin

Maven/Removing timestamps from build


A little unusual question, probably.

I'm building apache-log4j-1.2.17 from sources, and everything works right, but I'd like to modify the process a bit and have no idea how.

Namely, I'd like to remove Bnd-LastModified property from manifest file and timestamp comment from pom.properties file. Is there any configuration that I miss? I could remove them "manually" (shell script), but that just seems wrong.


Solution

  • I have the same problem I just found the answer to the header problem on google. I realise this is a year or so late for you.

    <plugin>
      <groupId>org.apache.felix</groupId>
      <artifactId>maven-bundle-plugin</artifactId>
      <configuration>
        <archive>
        <addMavenDescriptor>false</addMavenDescriptor>
        </archive> 
        <instructions>   
          <_removeheaders>Bnd-LastModified</_removeheaders>