Files Failed to Run and are Missing

Hi Sir/ Mam,
We are testing the MOSIP modules but in every module we are facing an issue.
In pre-registration backend development there are many dependencies missing and we are facing build failure error.
In Registration for the reg client setup the zip folder is missing from the github repositories.
Facing mojo extension error in automation demo services tests in ID authentication.

@Ganta_Vinay_Kumar Are you cloning the repo? Do you have a MOSIP Sandbox running as most of the Mosip modules will need dependency service?

@gsasikumar yes sir we are cloning the repo and we are running the modules through the command prompt. For backend development we are using the Eclipse.

Hi @Ganta_Vinay_Kumar,

Can you please detail the issue you are facing? This will help us guide you better.

  1. which version of the platform are you using?
  2. which dependencies are missing in preregistration? As some of the dependencies are loaded runtime.
  3. Zip folder is not comitted to github, instead we publish docker images. One has to run the docker image to build the reg-client zip.

Kindly share the screenshots/logs/recording. And also post each issue separate so its easy to solve them individually.

FYR : Home - MOSIP Docs 1.2.0

Hi Mam,
I have uploaded the error image that I am facing for pre-registration module.
Although the goals are specified in the pom.xml file
Error shows up as: No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. → e[1m[Help 1]e[m
[e[1;31mERRORe[m]

Hi @Ganta_Vinay_Kumar

When you clone any repo, kindly run maven command from the parent pom.
in your case, there is a parent pom under pre-registration repo.

Command to compile and build the pre-reg modules

mvn clean install -Dgpg.skip=true

Hi @Ganta_Vinay_Kumar

Could you please go through the Pre-registration Developers guide where we have documented the setup.

Pre-registration Developers Guide - MOSIP Docs 1.2.0

Hi Mam,
I have followed the steps in pre-registration but I’m facing issue in Add MOSIP Pre-registration specific JARs from Maven central:
Please let me know which files I must download from central maven for the same module.

@Ganta_Vinay_Kumar if you are using 1.2.0.1 branch then use 1.2.0.1-B2 if available otherwise 1.2.0.1-B1

@Anusha_sunkadh Hi Mam, even after using 1.2.0.1-B1 version, I am still facing build failure issue. The screenshot of the same is attached below.

And also while running the maven build command a window pops up for specifying the goals. What is the specification to be entered in the same field?

Hi

For pre-registration repository can you please rebase to latest “release-1.2.0.1” branch and try the build after following all steps in Pre-registration Developers Guide - MOSIP Docs 1.2.0

~ Mayura

Hi mam, after downloading the 1.2.0.1-B1 I am able to run the pre-registration and pre-registration-core , but after that I am getting the build failure for the remaining files to execute.

Actually this build issue is coming recently so few changes were made in “release-1.2.0.1” branch. So instead of taking the tag “v1.2.0.1-B1” code, can you please take from “release-1.2.0.1” branch?

You can also check the PR that was merged in “release-1.2.0.1” branch, and make same changes in your already cloned code locally.

@mayuradesh Hi Mam,
I have cloned the same release version that you have mentioned but I am not able to understand which versions of below jar files should be downloaded for this release 1.2.0.1

Mentioned in Mosip Docs

MOSIP Pre-registration specific JARs: The version will depend on which Pre Registration branch you have cloned. If it is “release-1.2.0.1” then you can download 1.2.0.1.B1 or 1.2.0.1.B2 version of below jars whichever is available.

1 Like

@mayuradesh Mam,
I have already tried with 1.2.0.1.B1 for which I had posted screenshot with Build Failure Error. But in the recent comment you had advised us to use the release-1.2.0.1. for which version the jar files are not present in the central repository.

As mentioned use “release-1.2.0.1” branch for PreReg code.
For the other dependencies download 1.2.0.1.B1 or 1.2.0.1.B2 version of the jars whichever is available.

@mayuradesh HI Mam,
As advised, I have used 1.2.0.1.B1 version for running the project but facing the same build failure issue. Kindly help us resolve this issue.


[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.6:build-info (default) on project pre-registration-application-service: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:3.0.6:build-info failed: Unable to load the mojo ‘build-info’ in the plugin ‘org.springframework.boot:spring-boot-maven-plugin:3.0.6’ due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: org/springframework/boot/maven/BuildInfoMojo has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.springframework.boot:spring-boot-maven-plugin:3.0.6
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/cdac/.m2/repository/org/springframework/boot/spring-boot-maven-plugin/3.0.6/spring-boot-maven-plugin-3.0.6.jar
[ERROR] urls[1] = file:/C:/Users/cdac/.m2/repository/org/springframework/spring-context/6.0.8/spring-context-6.0.8.jar
[ERROR] urls[2] = file:/C:/Users/cdac/.m2/repository/org/springframework/spring-aop/6.0.8/spring-aop-6.0.8.jar
[ERROR] urls[3] = file:/C:/Users/cdac/.m2/repository/org/springframework/spring-beans/6.0.8/spring-beans-6.0.8.jar
[ERROR] urls[4] = file:/C:/Users/cdac/.m2/repository/org/springframework/spring-core/6.0.8/spring-core-6.0.8.jar
[ERROR] urls[5] = file:/C:/Users/cdac/.m2/repository/org/springframework/spring-jcl/6.0.8/spring-jcl-6.0.8.jar
[ERROR] urls[6] = file:/C:/Users/cdac/.m2/repository/org/springframework/spring-expression/6.0.8/spring-expression-6.0.8.jar
[ERROR] urls[7] = file:/C:/Users/cdac/.m2/repository/org/springframework/boot/spring-boot-buildpack-platform/3.0.6/spring-boot-buildpack-platform-3.0.6.jar
[ERROR] urls[8] = file:/C:/Users/cdac/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.14.2/jackson-databind-2.14.2.jar
[ERROR] urls[9] = file:/C:/Users/cdac/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.14.2/jackson-annotations-2.14.2.jar
[ERROR] urls[10] = file:/C:/Users/cdac/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.14.2/jackson-core-2.14.2.jar
[ERROR] urls[11] = file:/C:/Users/cdac/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.14.2/jackson-module-parameter-names-2.14.2.jar
[ERROR] urls[12] = file:/C:/Users/cdac/.m2/repository/net/java/dev/jna/jna-platform/5.7.0/jna-platform-5.7.0.jar
[ERROR] urls[13] = file:/C:/Users/cdac/.m2/repository/net/java/dev/jna/jna/5.7.0/jna-5.7.0.jar
[ERROR] urls[14] = file:/C:/Users/cdac/.m2/repository/org/apache/commons/commons-compress/1.21/commons-compress-1.21.jar
[ERROR] urls[15] = file:/C:/Users/cdac/.m2/repository/org/apache/httpcomponents/httpclient/4.5.14/httpclient-4.5.14.jar
[ERROR] urls[16] = file:/C:/Users/cdac/.m2/repository/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar
[ERROR] urls[17] = file:/C:/Users/cdac/.m2/repository/commons-codec/commons-codec/1.11/commons-codec-1.11.jar
[ERROR] urls[18] = file:/C:/Users/cdac/.m2/repository/org/tomlj/tomlj/1.0.0/tomlj-1.0.0.jar
[ERROR] urls[19] = file:/C:/Users/cdac/.m2/repository/org/antlr/antlr4-runtime/4.7.2/antlr4-runtime-4.7.2.jar
[ERROR] urls[20] = file:/C:/Users/cdac/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar
[ERROR] urls[21] = file:/C:/Users/cdac/.m2/repository/org/springframework/boot/spring-boot-loader-tools/3.0.6/spring-boot-loader-tools-3.0.6.jar
[ERROR] urls[22] = file:/C:/Users/cdac/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
[ERROR] urls[23] = file:/C:/Users/cdac/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar
[ERROR] urls[24] = file:/C:/Users/cdac/.m2/repository/org/apache/maven/plugins/maven-shade-plugin/3.2.4/maven-shade-plugin-3.2.4.jar
[ERROR] urls[25] = file:/C:/Users/cdac/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[26] = file:/C:/Users/cdac/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
[ERROR] urls[27] = file:/C:/Users/cdac/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[28] = file:/C:/Users/cdac/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[29] = file:/C:/Users/cdac/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[30] = file:/C:/Users/cdac/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[31] = file:/C:/Users/cdac/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[32] = file:/C:/Users/cdac/.m2/repository/org/apache/maven/shared/maven-artifact-transfer/0.12.0/maven-artifact-transfer-0.12.0.jar
[ERROR] urls[33] = file:/C:/Users/cdac/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/3.0.1/maven-common-artifact-filters-3.0.1.jar
[ERROR] urls[34] = file:/C:/Users/cdac/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.1.0/maven-shared-utils-3.1.0.jar
[ERROR] urls[35] = file:/C:/Users/cdac/.m2/repository/org/ow2/asm/asm/8.0/asm-8.0.jar
[ERROR] urls[36] = file:/C:/Users/cdac/.m2/repository/org/ow2/asm/asm-commons/8.0/asm-commons-8.0.jar
[ERROR] urls[37] = file:/C:/Users/cdac/.m2/repository/org/ow2/asm/asm-tree/8.0/asm-tree-8.0.jar
[ERROR] urls[38] = file:/C:/Users/cdac/.m2/repository/org/ow2/asm/asm-analysis/8.0/asm-analysis-8.0.jar
[ERROR] urls[39] = file:/C:/Users/cdac/.m2/repository/org/jdom/jdom2/2.0.6/jdom2-2.0.6.jar
[ERROR] urls[40] = file:/C:/Users/cdac/.m2/repository/org/apache/maven/shared/maven-dependency-tree/3.0.1/maven-dependency-tree-3.0.1.jar
[ERROR] urls[41] = file:/C:/Users/cdac/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
[ERROR] urls[42] = file:/C:/Users/cdac/.m2/repository/commons-io/commons-io/2.6/commons-io-2.6.jar
[ERROR] urls[43] = file:/C:/Users/cdac/.m2/repository/org/vafer/jdependency/2.4.0/jdependency-2.4.0.jar
[ERROR] urls[44] = file:/C:/Users/cdac/.m2/repository/org/ow2/asm/asm-util/8.0/asm-util-8.0.jar
[ERROR] urls[45] = file:/C:/Users/cdac/.m2/repository/com/google/guava/guava/28.2-android/guava-28.2-android.jar
[ERROR] urls[46] = file:/C:/Users/cdac/.m2/repository/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
[ERROR] urls[47] = file:/C:/Users/cdac/.m2/repository/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
[ERROR] urls[48] = file:/C:/Users/cdac/.m2/repository/org/checkerframework/checker-compat-qual/2.5.5/checker-compat-qual-2.5.5.jar
[ERROR] urls[49] = file:/C:/Users/cdac/.m2/repository/com/google/errorprone/error_prone_annotations/2.3.4/error_prone_annotations-2.3.4.jar
[ERROR] urls[50] = file:/C:/Users/cdac/.m2/repository/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar
[ERROR] urls[51] = file:/C:/Users/cdac/.m2/repository/org/apache/commons/commons-lang3/3.7/commons-lang3-3.7.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>io.mosip.preregistration:pre-registration-parent:1.2.0.1-B1, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR]
[ERROR] → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] PluginContainerException - Apache Maven - Apache Software Foundation
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :pre-registration-application-service

Hi

You are sending same error again. Solution given above 2-3 times.
Please read carefully.

  1. Clone or fork from branch release-1.2.0.1 for pre-registration repository .
  2. Follow all steps given in Mosip Docs:
    Pre-registration Developers Guide - MOSIP Docs 1.2.0
  3. To download the jars / other runtime dependencies you can download 1.2.0.1.B1 or 1.2.0.1.B2 version of the jars whichever is available.