From c4bc07460212d4a78afb39a8d0685c1bc9b9d8b9 Mon Sep 17 00:00:00 2001 From: kameshsr Date: Mon, 22 Dec 2025 12:20:43 +0530 Subject: [PATCH 1/7] MOSIP-44120 Corrected surefire and jacoco plugin Signed-off-by: kameshsr --- commons-packet/commons-packet-manager/pom.xml | 42 ++++++++++++------- commons-packet/commons-packet-service/pom.xml | 34 +++++++++++++-- commons-packet/pom.xml | 26 +++++++++--- 3 files changed, 79 insertions(+), 23 deletions(-) diff --git a/commons-packet/commons-packet-manager/pom.xml b/commons-packet/commons-packet-manager/pom.xml index 2a8921ef70..109ad66d28 100644 --- a/commons-packet/commons-packet-manager/pom.xml +++ b/commons-packet/commons-packet-manager/pom.xml @@ -163,18 +163,23 @@ - - org.apache.maven.plugins - maven-surefire-plugin - ${maven.surefire.plugin.version} - - false - false - - --add-opens java.xml/jdk.xml.internal=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --enable-preview - - - + + org.apache.maven.plugins + maven-surefire-plugin + ${maven.surefire.plugin.version} + + false + false + + ${jacocoArgLine} + --add-opens java.xml/jdk.xml.internal=ALL-UNNAMED + --add-opens java.base/java.lang=ALL-UNNAMED + --add-opens java.base/java.util=ALL-UNNAMED + --add-opens java.base/java.io=ALL-UNNAMED + --enable-preview + + + org.apache.maven.plugins maven-compiler-plugin @@ -264,21 +269,30 @@ jacoco-maven-plugin ${jacoco.maven.plugin.version} + + + prepare-agent prepare-agent + + jacocoArgLine + + + report - prepare-package + verify report + - + pl.project13.maven git-commit-id-plugin ${git.commit.plugin.version} diff --git a/commons-packet/commons-packet-service/pom.xml b/commons-packet/commons-packet-service/pom.xml index 5af34ccfd2..2b1aa7eb0a 100644 --- a/commons-packet/commons-packet-service/pom.xml +++ b/commons-packet/commons-packet-service/pom.xml @@ -25,7 +25,8 @@ 1.5 0.7.0 3.0.1 - + 2.22.0 + 1.2.1-SNAPSHOT 2.10.0 @@ -257,27 +258,52 @@ - + + org.apache.maven.plugins + maven-surefire-plugin + ${maven.surefire.plugin.version} + + false + false + + ${jacocoArgLine} + --add-opens java.xml/jdk.xml.internal=ALL-UNNAMED + --add-opens java.base/java.lang=ALL-UNNAMED + --add-opens java.base/java.util=ALL-UNNAMED + --add-opens java.base/java.io=ALL-UNNAMED + --enable-preview + + + org.jacoco jacoco-maven-plugin ${jacoco.maven.plugin.version} + + + prepare-agent prepare-agent + + jacocoArgLine + + + report - prepare-package + verify report + - + scm:git:git://github.com/mosip/packet-manager.git diff --git a/commons-packet/pom.xml b/commons-packet/pom.xml index 9db0f7c2f5..ee052edad0 100644 --- a/commons-packet/pom.xml +++ b/commons-packet/pom.xml @@ -34,6 +34,7 @@ 3.0.1 **/constant/**,**/config/**,**/httpfilter/**,**/cache/**,**/dto/**,**/entity/**,**/model/**,**/exception/**,**/repository/**,**/security/**,**/*Config.java,**/*BootApplication.java,**/*VertxApplication.java,**/cbeffutil/**,**/*Utils.java,**/*Validator.java,**/*Helper.java,**/verticle/**,**/VidWriter.java/**,**/masterdata/utils/**,**/spi/**,**/core/http/**,"**/LocationServiceImpl.java","**/RegistrationCenterMachineServiceImpl.java","**/RegistrationCenterServiceImpl.java","**/pridgenerator/**","**/idgenerator/prid","**/proxy/**","**/cryptosignature/**" **/dto/**,**/entity/**,**/config/** + 0.8.11 @@ -64,32 +65,47 @@ maven-surefire-plugin ${maven.surefire.plugin.version} - ${skipTests} + false false - ${argLine} ${jacoco.agent.argLine} --add-opens java.xml/jdk.xml.internal=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --illegal-access=permit + ${jacocoArgLine} + --add-opens java.xml/jdk.xml.internal=ALL-UNNAMED + --add-opens java.base/java.lang=ALL-UNNAMED + --add-opens java.base/java.util=ALL-UNNAMED + --add-opens java.base/java.io=ALL-UNNAMED + --enable-preview org.jacoco jacoco-maven-plugin - ${maven.jacoco.version} + ${jacoco.maven.plugin.version} + + + prepare-agent prepare-agent + + jacocoArgLine + + + report - prepare-package + verify - report-aggregate + report + + org.apache.maven.plugins maven-jar-plugin From 26e975f5db3ee8014f4a3213f488f2d6671570f9 Mon Sep 17 00:00:00 2001 From: kameshsr Date: Mon, 5 Jan 2026 12:17:04 +0530 Subject: [PATCH 2/7] MOSIP-44120 corrected plugin Signed-off-by: kameshsr --- commons-packet/pom.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commons-packet/pom.xml b/commons-packet/pom.xml index ee052edad0..ae67d62e80 100644 --- a/commons-packet/pom.xml +++ b/commons-packet/pom.xml @@ -34,7 +34,6 @@ 3.0.1 **/constant/**,**/config/**,**/httpfilter/**,**/cache/**,**/dto/**,**/entity/**,**/model/**,**/exception/**,**/repository/**,**/security/**,**/*Config.java,**/*BootApplication.java,**/*VertxApplication.java,**/cbeffutil/**,**/*Utils.java,**/*Validator.java,**/*Helper.java,**/verticle/**,**/VidWriter.java/**,**/masterdata/utils/**,**/spi/**,**/core/http/**,"**/LocationServiceImpl.java","**/RegistrationCenterMachineServiceImpl.java","**/RegistrationCenterServiceImpl.java","**/pridgenerator/**","**/idgenerator/prid","**/proxy/**","**/cryptosignature/**" **/dto/**,**/entity/**,**/config/** - 0.8.11 @@ -80,7 +79,7 @@ org.jacoco jacoco-maven-plugin - ${jacoco.maven.plugin.version} + ${maven.jacoco.version} From 940103003533deca312a388e397b40942c2d9af6 Mon Sep 17 00:00:00 2001 From: kameshsr Date: Mon, 5 Jan 2026 14:01:54 +0530 Subject: [PATCH 3/7] MOSIP-44120 Added jacoco properties Signed-off-by: kameshsr --- commons-packet/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/commons-packet/pom.xml b/commons-packet/pom.xml index ae67d62e80..955a96ae75 100644 --- a/commons-packet/pom.xml +++ b/commons-packet/pom.xml @@ -34,6 +34,7 @@ 3.0.1 **/constant/**,**/config/**,**/httpfilter/**,**/cache/**,**/dto/**,**/entity/**,**/model/**,**/exception/**,**/repository/**,**/security/**,**/*Config.java,**/*BootApplication.java,**/*VertxApplication.java,**/cbeffutil/**,**/*Utils.java,**/*Validator.java,**/*Helper.java,**/verticle/**,**/VidWriter.java/**,**/masterdata/utils/**,**/spi/**,**/core/http/**,"**/LocationServiceImpl.java","**/RegistrationCenterMachineServiceImpl.java","**/RegistrationCenterServiceImpl.java","**/pridgenerator/**","**/idgenerator/prid","**/proxy/**","**/cryptosignature/**" **/dto/**,**/entity/**,**/config/** + From bc2673c673477b56c8e3ca04978e4850d408584a Mon Sep 17 00:00:00 2001 From: kameshsr Date: Mon, 5 Jan 2026 14:11:25 +0530 Subject: [PATCH 4/7] MOSIP-44120 Added jacoco properties Signed-off-by: kameshsr --- commons-packet/pom.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commons-packet/pom.xml b/commons-packet/pom.xml index 955a96ae75..3b3aa5ad68 100644 --- a/commons-packet/pom.xml +++ b/commons-packet/pom.xml @@ -147,6 +147,9 @@ ${maven.compiler.source} ${maven.compiler.target} + + --enable-preview + From d7c7d99a278414ad96cdb5ca0bac9f006a6863ce Mon Sep 17 00:00:00 2001 From: kameshsr Date: Mon, 5 Jan 2026 14:17:03 +0530 Subject: [PATCH 5/7] MOSIP-44120 Added jacoco properties Signed-off-by: kameshsr --- commons-packet/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons-packet/pom.xml b/commons-packet/pom.xml index 3b3aa5ad68..ed6dfa168b 100644 --- a/commons-packet/pom.xml +++ b/commons-packet/pom.xml @@ -65,7 +65,7 @@ maven-surefire-plugin ${maven.surefire.plugin.version} - false + ${skipTests} false ${jacocoArgLine} From 70b84cb713b1a32a05d8ceaf663cf4ecf44f65f0 Mon Sep 17 00:00:00 2001 From: kameshsr Date: Mon, 5 Jan 2026 14:22:59 +0530 Subject: [PATCH 6/7] MOSIP-44120 Removed hardcoced skip value from maven surefire plugin Signed-off-by: kameshsr --- commons-packet/pom.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/commons-packet/pom.xml b/commons-packet/pom.xml index ed6dfa168b..f6327a88ff 100644 --- a/commons-packet/pom.xml +++ b/commons-packet/pom.xml @@ -66,7 +66,6 @@ ${maven.surefire.plugin.version} ${skipTests} - false ${jacocoArgLine} --add-opens java.xml/jdk.xml.internal=ALL-UNNAMED From 9a24b921f97fb43c688124cd191f7d24dc7aee64 Mon Sep 17 00:00:00 2001 From: kameshsr Date: Tue, 6 Jan 2026 11:14:50 +0530 Subject: [PATCH 7/7] MOSIP-44120 corrected plugin Signed-off-by: kameshsr --- commons-packet/commons-packet-service/pom.xml | 305 ++++++++---------- commons-packet/pom.xml | 164 +++++----- 2 files changed, 211 insertions(+), 258 deletions(-) diff --git a/commons-packet/commons-packet-service/pom.xml b/commons-packet/commons-packet-service/pom.xml index 2b1aa7eb0a..0181ac70b6 100644 --- a/commons-packet/commons-packet-service/pom.xml +++ b/commons-packet/commons-packet-service/pom.xml @@ -24,13 +24,10 @@ 2.2.1 1.5 0.7.0 - 3.0.1 - 2.22.0 - + 3.0.1 1.2.1-SNAPSHOT 2.10.0 - 1.2.1-SNAPSHOT 1.2.1-SNAPSHOT 1.2.1-SNAPSHOT @@ -160,171 +157,145 @@ - maven-deploy-plugin - ${maven.deploy.plugin.version} - - - default-deploy - deploy - - deploy - - - - - - org.sonatype.central - central-publishing-maven-plugin - ${central.publishing.maven.plugin.version} - true - - ossrh - false - - - - org.apache.maven.plugins - maven-source-plugin - true - ${maven.source.plugin.version} - - - attach-sources - - jar-no-fork - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - ${maven.javadoc.version} - - - attach-javadocs - - jar - - - - - none - - - - org.apache.maven.plugins - maven-gpg-plugin - ${maven.gpg.plugin.version} - - - sign-artifacts - verify - - sign - - - - --pinentry-mode - loopback - - - - - - - pl.project13.maven - git-commit-id-plugin - ${git.commit.plugin.version} - - - get-the-git-infos - - revision - - validate - - - - true - ${project.build.outputDirectory}/service-git.properties - - ^git.build.(time|version)$ - ^git.commit.id.(abbrev|full)$ - - full - ${project.basedir}/.git - - - - - org.apache.maven.plugins - maven-surefire-plugin - ${maven.surefire.plugin.version} - - false - false - - ${jacocoArgLine} - --add-opens java.xml/jdk.xml.internal=ALL-UNNAMED - --add-opens java.base/java.lang=ALL-UNNAMED - --add-opens java.base/java.util=ALL-UNNAMED - --add-opens java.base/java.io=ALL-UNNAMED - --enable-preview - - - - - org.jacoco - jacoco-maven-plugin - ${jacoco.maven.plugin.version} - - - - - prepare-agent - - prepare-agent - + maven-deploy-plugin + ${maven.deploy.plugin.version} + + + default-deploy + deploy + + deploy + + + + + + org.sonatype.central + central-publishing-maven-plugin + ${central.publishing.maven.plugin.version} + true - jacocoArgLine + ossrh + false - - - - - report - verify - - report - - - - - - - - - scm:git:git://github.com/mosip/packet-manager.git - scm:git:ssh://github.com:mosip/packet-manager.git - https://github.com/mosip/commons - HEAD - - - - MPL 2.0 - https://www.mozilla.org/en-US/MPL/2.0/ - - - - - Mosip - mosip.emailnotifier@gmail.com - io.mosip - https://github.com/mosip/commons - - + + + org.apache.maven.plugins + maven-source-plugin + true + ${maven.source.plugin.version} + + + attach-sources + + jar-no-fork + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + ${maven.javadoc.version} + + + attach-javadocs + + jar + + + + + none + + + + org.apache.maven.plugins + maven-gpg-plugin + ${maven.gpg.plugin.version} + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + pl.project13.maven + git-commit-id-plugin + ${git.commit.plugin.version} + + + get-the-git-infos + + revision + + validate + + + + true + ${project.build.outputDirectory}/service-git.properties + + ^git.build.(time|version)$ + ^git.commit.id.(abbrev|full)$ + + full + ${project.basedir}/.git + + + + + org.jacoco + jacoco-maven-plugin + ${jacoco.maven.plugin.version} + + + + prepare-agent + + + + report + prepare-package + + report + + + + + + + + scm:git:git://github.com/mosip/packet-manager.git + scm:git:ssh://github.com:mosip/packet-manager.git + https://github.com/mosip/commons + HEAD + + + + MPL 2.0 + https://www.mozilla.org/en-US/MPL/2.0/ + + + + + Mosip + mosip.emailnotifier@gmail.com + io.mosip + https://github.com/mosip/commons + + openapi-doc-generate-profile diff --git a/commons-packet/pom.xml b/commons-packet/pom.xml index f6327a88ff..556ff4d4e9 100644 --- a/commons-packet/pom.xml +++ b/commons-packet/pom.xml @@ -34,7 +34,6 @@ 3.0.1 **/constant/**,**/config/**,**/httpfilter/**,**/cache/**,**/dto/**,**/entity/**,**/model/**,**/exception/**,**/repository/**,**/security/**,**/*Config.java,**/*BootApplication.java,**/*VertxApplication.java,**/cbeffutil/**,**/*Utils.java,**/*Validator.java,**/*Helper.java,**/verticle/**,**/VidWriter.java/**,**/masterdata/utils/**,**/spi/**,**/core/http/**,"**/LocationServiceImpl.java","**/RegistrationCenterMachineServiceImpl.java","**/RegistrationCenterServiceImpl.java","**/pridgenerator/**","**/idgenerator/prid","**/proxy/**","**/cryptosignature/**" **/dto/**,**/entity/**,**/config/** - @@ -52,103 +51,86 @@ https://central.sonatype.com/api/v1/publisher - - - - - org.springframework.boot - spring-boot-maven-plugin - 3.2.3 - - - org.apache.maven.plugins - maven-surefire-plugin - ${maven.surefire.plugin.version} - - ${skipTests} - - ${jacocoArgLine} - --add-opens java.xml/jdk.xml.internal=ALL-UNNAMED - --add-opens java.base/java.lang=ALL-UNNAMED - --add-opens java.base/java.util=ALL-UNNAMED - --add-opens java.base/java.io=ALL-UNNAMED - --enable-preview - - - - - org.jacoco - jacoco-maven-plugin - ${maven.jacoco.version} - + - - - prepare-agent - - prepare-agent - - - jacocoArgLine - - - - - - report - verify - - report - - - - - - - - org.apache.maven.plugins - maven-jar-plugin - ${maven.jar.plugin.version} - - - - true - true - - - ${project.name} - ${project.version} - - - - - - org.apache.maven.plugins - maven-war-plugin - ${maven.war.plugin.version} - - - - true - true - - - ${project.name} - ${project.version} - - - - - + + + org.springframework.boot + spring-boot-maven-plugin + 3.2.3 + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven.surefire.plugin.version} + + ${skipTests} + false + + ${argLine} ${jacoco.agent.argLine} --add-opens java.xml/jdk.xml.internal=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --illegal-access=permit + + + + + org.jacoco + jacoco-maven-plugin + ${maven.jacoco.version} + + + + prepare-agent + + + + report + prepare-package + + report-aggregate + + + + + + org.apache.maven.plugins + maven-jar-plugin + ${maven.jar.plugin.version} + + + + true + true + + + ${project.name} + ${project.version} + + + + + + org.apache.maven.plugins + maven-war-plugin + ${maven.war.plugin.version} + + + + true + true + + + ${project.name} + ${project.version} + + + + + org.apache.maven.plugins maven-compiler-plugin ${maven.compiler.version} ${maven.compiler.source} ${maven.compiler.target} - - --enable-preview -