CSV-292: Add Automatic-Module-Name to JAR file

This allows for using Commons CSV in JPMS based projects that want to
declare a requirement on the org.apache.commons.csv module
This commit is contained in:
Rob Vesse 2021-10-26 08:56:11 +01:00 committed by Bruno P. Kinoshita
parent c3bba73dc4
commit 32d59ce9b4
1 changed files with 18 additions and 0 deletions

18
pom.xml
View File

@ -283,6 +283,24 @@
<tarLongFileMode>gnu</tarLongFileMode>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
<configuration>
<archive combine.children="append">
<manifestEntries>
<Automatic-Module-Name>${commons.module.name}</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>