From 5afadd827d4811cfb96d8ef9db60192dda272251 Mon Sep 17 00:00:00 2001
From: Solomon Ayalew <solxget@amazon.com>
Date: Wed, 4 Oct 2023 15:00:06 -0700
Subject: [PATCH] added command line arg to the right place

(cherry picked from commit 102ebe2a8b2ec9548afb37527c7a30dc24e7d81b)
---
 notification-core/pom.xml        | 11 +++++++++++
 pom.xml                          | 11 -----------
 provider/notification-gc/pom.xml | 11 +++++++++++
 3 files changed, 22 insertions(+), 11 deletions(-)

diff --git a/notification-core/pom.xml b/notification-core/pom.xml
index 95e15e930..81502bc48 100644
--- a/notification-core/pom.xml
+++ b/notification-core/pom.xml
@@ -309,6 +309,17 @@
                     </execution>
                 </executions>
             </plugin>
+     		<plugin>
+                 <groupId>org.apache.maven.plugins</groupId>
+                 <artifactId>maven-surefire-plugin</artifactId>
+                 <version>3.0.0</version>
+                 <configuration>
+                     <argLine>
+                         @{argLine} --add-opens java.base/java.util=ALL-UNNAMED
+                         --add-opens java.base/java.lang=ALL-UNNAMED
+                     </argLine>
+                 </configuration>
+             </plugin>
         </plugins>
     </build>
     <reporting>
diff --git a/pom.xml b/pom.xml
index ef0726230..744cfcc9f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -216,17 +216,6 @@
 					</generateGitPropertiesFilename>
 				</configuration>
 			</plugin>
-         	<plugin>
-                 <groupId>org.apache.maven.plugins</groupId>
-                 <artifactId>maven-surefire-plugin</artifactId>
-                 <version>3.0.0</version>
-                 <configuration>
-                     <argLine>
-                         @{argLine} --add-opens java.base/java.util=ALL-UNNAMED
-                         --add-opens java.base/java.lang=ALL-UNNAMED
-                     </argLine>
-                 </configuration>
-             </plugin>
 		</plugins>
 	</build>
 </project>
diff --git a/provider/notification-gc/pom.xml b/provider/notification-gc/pom.xml
index 151689021..6afaf0dda 100644
--- a/provider/notification-gc/pom.xml
+++ b/provider/notification-gc/pom.xml
@@ -172,6 +172,17 @@
 					</execution>
 				</executions>
 			</plugin>
+         	<plugin>
+                 <groupId>org.apache.maven.plugins</groupId>
+                 <artifactId>maven-surefire-plugin</artifactId>
+                 <version>3.0.0</version>
+                 <configuration>
+                     <argLine>
+                         @{argLine} --add-opens java.base/java.util=ALL-UNNAMED
+                         --add-opens java.base/java.lang=ALL-UNNAMED
+                     </argLine>
+                 </configuration>
+             </plugin>
         </plugins>
     </build>
 </project>
-- 
GitLab