true org.apache.maven.plug" /> true org.apache.maven.plug" /> true org.apache.maven.plug"/>

How to override the Built-By property in the manifest?

32 Views Asked by At

I would like to change the manifest entry, "Built-By" to a custom string. I tried:

<plugin>
        <inherited>true</inherited>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.1.1</version>
        <configuration>
          <archive>
            <manifest>
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
              <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
<!--              <builtBy>TESTING</builtBy>-->
<!--              <addBuildEnvironmentEntries>false</addBuildEnvironmentEntries>-->
            </manifest>
            <manifestEntries>
              <Implementation-Version>${project.version}</Implementation-Version>
              <Implementation-Build>${project.version}.${git.commit.id.abbrev}</Implementation-Build>

<!--              <Built-By>TESTING</Built-By>-->
              <BuiltBy>TESTING</BuiltBy>
            </manifestEntries>
          </archive>
          <resources>
            <entityReference>
              <directory>src/main/java</directory>
              <includes>
                <include>**/*properties</include>
              </includes>
            </entityReference>
          </resources>
        </configuration>
      </plugin>

However, none of those "Built-By" properties appear to have any effect. Is it possible to change?

0

There are 0 best solutions below