Skip to content

Commit 58b094a

Browse files
Rob Vessekinow
authored andcommitted
CSV-292: Add Automatic-Module-Name to JAR file
Ensure that the resulting Commons CSV JAR file can be used in JPMS based projects
1 parent a4d15bc commit 58b094a

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,23 @@
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>
286303
<plugin>
287304
<groupId>org.apache.maven.plugins</groupId>
288305
<artifactId>maven-surefire-plugin</artifactId>

0 commit comments

Comments
 (0)