geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1875150 - /geronimo/genesis/trunk/genesis-default-flava/genesis-java8-flava/pom.xml
Date Fri, 13 Mar 2020 11:34:28 GMT
Author: struberg
Date: Fri Mar 13 11:34:27 2020
New Revision: 1875150

URL: http://svn.apache.org/viewvc?rev=1875150&view=rev
Log:
generate Automatic-Module-Name 

By default it is the artifactId.
Can be tweaked by setting jpms.module.name as property.

Modified:
    geronimo/genesis/trunk/genesis-default-flava/genesis-java8-flava/pom.xml

Modified: geronimo/genesis/trunk/genesis-default-flava/genesis-java8-flava/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/genesis/trunk/genesis-default-flava/genesis-java8-flava/pom.xml?rev=1875150&r1=1875149&r2=1875150&view=diff
==============================================================================
--- geronimo/genesis/trunk/genesis-default-flava/genesis-java8-flava/pom.xml (original)
+++ geronimo/genesis/trunk/genesis-default-flava/genesis-java8-flava/pom.xml Fri Mar 13 11:34:27
2020
@@ -33,7 +33,11 @@
     <artifactId>genesis-java8-flava</artifactId>
     <name>Genesis Flava :: Java 8</name>
     <packaging>pom</packaging>
-    
+
+    <properties>
+        <jpms.module.name>${project.artifactId}</jpms.module.name>
+    </properties>
+
     <build>
         <plugins>
             <plugin>
@@ -72,6 +76,20 @@
                     <source>1.8</source>
                 </configuration>
             </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <version>3.2.0</version>
+                <configuration>
+                    <archive>
+                        <manifestEntries>
+                            <Automatic-Module-Name>${jpms.module.name}</Automatic-Module-Name>
+                        </manifestEntries>
+                    </archive>
+                </configuration>
+            </plugin>
+
         </plugins>
     </build>
     



Mime
View raw message