When Integration Studio 8.2.0 is updated to the latest, new projects are created with a structure where there is a new build-artifacts module created inside the Config module. It seems we are unable to run mvn clean install because it is trying to run the unit tests. Following error is thrown.
[INFO] ---------< org.ramith:reward-management-api-miConfigs_module >----------
[INFO] Building reward-management-api-miConfigs_module 1.0.0 [3/4]
[INFO] from reward-management-api-miConfigs/build-artifacts/pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ reward-management-api-miConfigs_module ---
[INFO]
[INFO] --- synapse-unit-test:5.2.41:synapse-unit-test (synapse-unit-test) @ reward-management-api-miConfigs_module ---
[INFO] ------------------------------------------------------------------------
[INFO] U N I T - T E S T S
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for reward-management-api-mi 1.0.0:
[INFO]
[INFO] reward-management-api-mi ........................... SUCCESS [ 0.096 s]
[INFO] reward-management-api-miConfigs .................... SUCCESS [ 0.048 s]
[INFO] reward-management-api-miConfigs_module ............. FAILURE [ 0.001 s]
[INFO] reward-management-api-miCompositeExporter .......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.604 s
[INFO] Finished at: 2023-09-20T15:02:45+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.wso2.maven:synapse-unit-test-maven-plugin:5.2.41:synapse-unit-test (synapse-unit-test) on project reward-management-api-miConfigs_module: Exception occurred while running test cases: Cannot read the array length because "<local6>" is null -> [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] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :reward-management-api-miConfigs_module
When Integration Studio 8.2.0 is updated to the latest, new projects are created with a structure where there is a new
build-artifacts
module created inside the Config module. It seems we are unable to runmvn clean install
because it is trying to run the unit tests. Following error is thrown.