Search code examples
maveneclipse-rcptycho

How to customize or omit the Built-By manifest header with Tycho?


When using Tycho to build an Eclipse RCP application based on plug-ins, Tycho adds a Built-By header with the value of the logged-in user id in the manifest of every plug-in.

How to configure Tycho to either not add this header, or to set a customized value?


Solution

  • I haven't found a way to omit the Built-By header, but you can change its value:

    <build>
      <plugins>
        <plugin>
          <groupId>org.eclipse.tycho</groupId>
          <artifactId>tycho-packaging-plugin</artifactId>
          <version>${tycho-version}</version> 
          <configuration>
            <archive>
              <manifestEntries>
                <Built-By>Anonymous</Built-By>
              </manifestEntries>
            </archive>
      </configuration>
    </plugin>
    

    The resulting manifest contains this header:

    Built-By: Anonymous
    

    If you specify an empty manifest entry (using <Built-By></Built-By>), an empty header is added to the resulting manifest file.

    Built-By: