You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ki...@apache.org on 2021/12/15 10:01:35 UTC
[commons-csv] 01/03: CSV-292: Add Automatic-Module-Name to JAR file
This is an automated email from the ASF dual-hosted git repository.
kinow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git
commit 32d59ce9b4a0bcb824ba36e6fdd2df2052e8e6ff
Author: Rob Vesse <rv...@dotnetrdf.org>
AuthorDate: Tue Oct 26 08:56:11 2021 +0100
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
---
pom.xml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/pom.xml b/pom.xml
index 208837b..c59462d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -285,6 +285,24 @@
</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>
<configuration>
<excludes>