Skip to content

Commit accb799

Browse files
author
Rob Vesse
committed
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 a34ceda commit accb799

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
@@ -187,6 +187,24 @@
187187
</descriptors>
188188
<tarLongFileMode>gnu</tarLongFileMode>
189189
</configuration>
190+
</plugin>
191+
<plugin>
192+
<groupId>org.apache.maven.plugins</groupId>
193+
<artifactId>maven-jar-plugin</artifactId>
194+
<executions>
195+
<execution>
196+
<goals>
197+
<goal>test-jar</goal>
198+
</goals>
199+
</execution>
200+
</executions>
201+
<configuration>
202+
<archive combine.children="append">
203+
<manifestEntries>
204+
<Automatic-Module-Name>${commons.module.name}</Automatic-Module-Name>
205+
</manifestEntries>
206+
</archive>
207+
</configuration>
190208
</plugin>
191209
<plugin>
192210
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)