Skip to content

Commit

Permalink
Apply manifest entries to all packages in the jar
Browse files Browse the repository at this point in the history
Remove the name section so that all packages pick up the metadata in the manifest

Signed-off-by: Tim Ward <timothyjward@apache.org>
  • Loading branch information
timothyjward committed Sep 3, 2019
1 parent 2215c9b commit afa6e74
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,26 +173,16 @@
<manifest>
<mainClass>org.bytedeco.javacpp.tools.Builder</mainClass>
</manifest>
<!-- Multi-Release: true goes in the main attributes -->

<manifestEntries>
<Implementation-Title>${project.name}</Implementation-Title>
<Implementation-Vendor>Bytedeco</Implementation-Vendor>
<Implementation-Version>${project.version}</Implementation-Version>
<Specification-Title>${project.name}</Specification-Title>
<Specification-Vendor>Bytedeco</Specification-Vendor>
<Specification-Version>${project.version}</Specification-Version>
<Multi-Release>true</Multi-Release>
</manifestEntries>
<!--
We must use a Manifest Section here so that the
maven-jar-plugin merges the manifest metadata
correctly rather than jumbling things up
-->
<manifestSection>
<name>org/bytedeco/javacpp/</name>
<manifestEntries>
<Implementation-Title>${project.name}</Implementation-Title>
<Implementation-Vendor>Bytedeco</Implementation-Vendor>
<Implementation-Version>${project.version}</Implementation-Version>
<Specification-Title>${project.name}</Specification-Title>
<Specification-Vendor>Bytedeco</Specification-Vendor>
<Specification-Version>${project.version}</Specification-Version>
</manifestEntries>
</manifestSection>
</archive>
</configuration>
</plugin>
Expand Down

0 comments on commit afa6e74

Please sign in to comment.