This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git


The following commit(s) were added to refs/heads/main by this push:
     new e6b163e16b Resolve shade warnings and warning that sharing is only 
supported for boot loader classes
e6b163e16b is described below

commit e6b163e16b2c4ca05e5efcb9e5e5cc35cc87907e
Author: Øyvind Gjesdal <[email protected]>
AuthorDate: Wed Feb 12 21:39:07 2025 +0100

    Resolve shade warnings and warning that sharing is only supported for boot 
loader classes
    
    Removes warnings for:
    Overlapping files when using maven shade plugin
    OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader 
classes because bootstrap classpath has been appended
---
 jena-benchmarks/jena-benchmarks-shadedJena510/pom.xml | 3 ++-
 jena-core/pom.xml                                     | 2 +-
 jena-extras/jena-querybuilder/pom.xml                 | 2 +-
 jena-fuseki2/jena-fuseki-core/pom.xml                 | 2 +-
 jena-fuseki2/jena-fuseki-fulljar/pom.xml              | 8 ++++++++
 jena-fuseki2/jena-fuseki-geosparql/pom.xml            | 1 +
 jena-fuseki2/jena-fuseki-server/pom.xml               | 1 +
 jena-permissions/pom.xml                              | 2 +-
 8 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/jena-benchmarks/jena-benchmarks-shadedJena510/pom.xml 
b/jena-benchmarks/jena-benchmarks-shadedJena510/pom.xml
index 7196b4c58f..837f6e52bb 100644
--- a/jena-benchmarks/jena-benchmarks-shadedJena510/pom.xml
+++ b/jena-benchmarks/jena-benchmarks-shadedJena510/pom.xml
@@ -114,6 +114,7 @@
                                         
<exclude>META-INF/DEPENDENCIES</exclude>
                                         <exclude>META-INF/MANIFEST.MF</exclude>
                                         <exclude>**/module-info.class</exclude>
+                                        
<exclude>META-INF/LICENSE-notice.md</exclude>
                                     </excludes>
                                 </filter>
                             </filters>
@@ -124,4 +125,4 @@
         </plugins>
     </build>
 
-</project>
\ No newline at end of file
+</project>
diff --git a/jena-core/pom.xml b/jena-core/pom.xml
index c41dfb03d2..ba500e178b 100644
--- a/jena-core/pom.xml
+++ b/jena-core/pom.xml
@@ -153,7 +153,7 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
         <configuration>
-          <argLine>-javaagent:${org.mockito:mockito-core:jar}</argLine>
+          <argLine>-javaagent:${org.mockito:mockito-core:jar} 
-Xshare:off</argLine>
           <includes>
             <include>org/apache/jena/test/TestPackage_core.java</include>
             <include>**/*_CS.java</include>
diff --git a/jena-extras/jena-querybuilder/pom.xml 
b/jena-extras/jena-querybuilder/pom.xml
index 609eadea3c..b0a81885bb 100644
--- a/jena-extras/jena-querybuilder/pom.xml
+++ b/jena-extras/jena-querybuilder/pom.xml
@@ -93,7 +93,7 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
         <configuration>
-          <argLine>@{argLine} 
-javaagent:${org.mockito:mockito-core:jar}</argLine>
+          <argLine>@{argLine} -javaagent:${org.mockito:mockito-core:jar} 
-Xshare:off</argLine>
         </configuration>
       </plugin>
       <plugin>
diff --git a/jena-fuseki2/jena-fuseki-core/pom.xml 
b/jena-fuseki2/jena-fuseki-core/pom.xml
index 42c8b3cfd5..895f441d4b 100644
--- a/jena-fuseki2/jena-fuseki-core/pom.xml
+++ b/jena-fuseki2/jena-fuseki-core/pom.xml
@@ -172,7 +172,7 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
         <configuration>
-          <argLine>@{argLine} 
-javaagent:${org.mockito:mockito-core:jar}</argLine>
+          <argLine>@{argLine} -javaagent:${org.mockito:mockito-core:jar} 
-Xshare:off</argLine>
           <includes>
             <include>**/TS_*.java</include>
           </includes>
diff --git a/jena-fuseki2/jena-fuseki-fulljar/pom.xml 
b/jena-fuseki2/jena-fuseki-fulljar/pom.xml
index 08d1b9ad39..74110a5b69 100644
--- a/jena-fuseki2/jena-fuseki-fulljar/pom.xml
+++ b/jena-fuseki2/jena-fuseki-fulljar/pom.xml
@@ -116,8 +116,16 @@
                 <exclude>META-INF/DEPENDENCIES</exclude>
                 <exclude>META-INF/MANIFEST.MF</exclude>
                 <exclude>**/module-info.class</exclude>
+                <exclude>META-INF/versions/9/OSGI-INF/MANIFEST.MF</exclude>
               </excludes>
             </filter>
+            <filter>
+              <artifact>org.omnifaces:omnifaces</artifact>
+              <excludes>
+                <exclude>META-INF/beans.xml</exclude>
+                <exclude>META-INF/faces-config.xml</exclude>
+             </excludes>
+           </filter>
           </filters>
         </configuration>
         <executions>
diff --git a/jena-fuseki2/jena-fuseki-geosparql/pom.xml 
b/jena-fuseki2/jena-fuseki-geosparql/pom.xml
index 42c8a7b550..d1f653a532 100644
--- a/jena-fuseki2/jena-fuseki-geosparql/pom.xml
+++ b/jena-fuseki2/jena-fuseki-geosparql/pom.xml
@@ -142,6 +142,7 @@
                   <exclude>META-INF/DEPENDENCIES</exclude>
                   <exclude>META-INF/MANIFEST.MF</exclude>
                   <exclude>**/module-info.class</exclude>
+                  <exclude>META-INF/versions/9/OSGI-INF/MANIFEST.MF</exclude>
                 </excludes>
               </filter>
             </filters>
diff --git a/jena-fuseki2/jena-fuseki-server/pom.xml 
b/jena-fuseki2/jena-fuseki-server/pom.xml
index ea4ab7d1d0..764afddbc7 100644
--- a/jena-fuseki2/jena-fuseki-server/pom.xml
+++ b/jena-fuseki2/jena-fuseki-server/pom.xml
@@ -130,6 +130,7 @@
                 <exclude>META-INF/DEPENDENCIES</exclude>
                 <exclude>META-INF/MANIFEST.MF</exclude>
                 <exclude>**/module-info.class</exclude>
+                <exclude>META-INF/versions/9/OSGI-INF/MANIFEST.MF</exclude>
               </excludes>
             </filter>
           </filters>
diff --git a/jena-permissions/pom.xml b/jena-permissions/pom.xml
index 7ec882c7f6..193b82ffb8 100644
--- a/jena-permissions/pom.xml
+++ b/jena-permissions/pom.xml
@@ -156,7 +156,7 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
         <configuration>
-          <argLine>@{argLine} 
-javaagent:${org.mockito:mockito-core:jar}</argLine>
+          <argLine>@{argLine} -javaagent:${org.mockito:mockito-core:jar} 
-Xshare:off</argLine>
         </configuration>
       </plugin>
       <plugin>

Reply via email to