Skip to content

Commit

Permalink
fix(maven): Include manifest in source JAR process
Browse files Browse the repository at this point in the history
* Updated the `pom.xml` to configure the `maven-source-plugin` to use the default manifest file.
* Added the `<useDefaultManifestFile>` flag and specified the path to the default manifest file (`MANIFEST.MF`) within the `configuration` block of the plugin.

This also fixed an issue in the Maven build process where the manifest file was not being included in the source JAR created by the `maven-source-plugin:jar-no-fork` goal.
  • Loading branch information
mitsuki31 committed Sep 16, 2024
1 parent d0cff29 commit 106d630
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,11 @@
</goals>
</execution>
</executions>
<configuration>
<!-- It is mandatory to include hard-formatted manifest file -->
<useDefaultManifestFile>true</useDefaultManifestFile>
<defaultManifestFile>${paths.classesDir}/MANIFEST.MF</defaultManifestFile>
</configuration>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit 106d630

Please sign in to comment.