Skip to content

Commit 32d59ce

Browse files
rvessekinow
authored andcommitted
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
1 parent c3bba73 commit 32d59ce

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,24 @@
283283
<tarLongFileMode>gnu</tarLongFileMode>
284284
</configuration>
285285
</plugin>
286+
<plugin>
287+
<groupId>org.apache.maven.plugins</groupId>
288+
<artifactId>maven-jar-plugin</artifactId>
289+
<executions>
290+
<execution>
291+
<goals>
292+
<goal>test-jar</goal>
293+
</goals>
294+
</execution>
295+
</executions>
296+
<configuration>
297+
<archive combine.children="append">
298+
<manifestEntries>
299+
<Automatic-Module-Name>${commons.module.name}</Automatic-Module-Name>
300+
</manifestEntries>
301+
</archive>
302+
</configuration>
303+
</plugin>
286304
<plugin>
287305
<groupId>org.apache.maven.plugins</groupId>
288306
<artifactId>maven-surefire-plugin</artifactId>

0 commit comments

Comments
 (0)