[java-idp-plugin-totp] branch main updated: GEN-266 - Seal as many jars as practical via Maven manifest customization

Phil Smart philip.smart at jisc.ac.uk
Tue Apr 27 13:45:20 UTC 2021


This is an automated email from the git hooks/post-receive script.

philsmart pushed a commit to branch main
in repository java-idp-plugin-totp.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-totp.git;a=commit;h=8a7a819b9408cea1f5a3a76026a6bd65e1e4ab6d

The following commit(s) were added to refs/heads/main by this push:
       new  8a7a819   GEN-266 - Seal as many jars as practical via Maven manifest customization
8a7a819 is described below

commit 8a7a819b9408cea1f5a3a76026a6bd65e1e4ab6d
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Tue Apr 27 14:45:19 2021 +0100

    GEN-266 - Seal as many jars as practical via Maven manifest
    customization
    
        - Seal all jars
        - Move some common manifest settings to parent
    
    https://issues.shibboleth.net/jira/browse/GEN-266
---
 pom.xml           | 18 ++++++++++++++++++
 totp-impl/pom.xml |  3 ---
 2 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index afe2d84..472c50b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -87,5 +87,23 @@
         <module>totp-impl</module>
         <module>totp-dist</module>
     </modules>
+    
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <configuration>
+                    <archive>
+                        <index>true</index>
+                        <manifestEntries>
+                            <Automatic-Module-Name>${automatic.module.name}</Automatic-Module-Name>
+                            <Sealed>true</Sealed>
+                        </manifestEntries>
+                    </archive>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
 
 </project>
diff --git a/totp-impl/pom.xml b/totp-impl/pom.xml
index aab9cb8..c097baf 100644
--- a/totp-impl/pom.xml
+++ b/totp-impl/pom.xml
@@ -203,9 +203,6 @@
                 <artifactId>maven-jar-plugin</artifactId>
                 <configuration>
                     <archive>
-                        <manifestEntries>
-                            <Automatic-Module-Name>${automatic.module.name}</Automatic-Module-Name>
-                        </manifestEntries>
                         <manifestSections>
                             <manifestSection>
                                 <name>net/shibboleth/idp/plugin/authn/totp/</name>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list