Thank you for the guidance earlier today. Here is an update on my progress and the current blocker:
The command I used : mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:6.7.0:setup -DserverId=gsocFinal -Ddistro=referenceapplication -Dversion=2.13.0 -DdbUri=jdbc:mysql://localhost:3307/openmrs -DdbUser=root -DdbPassword=“” -DdbSql=null -X
Environment: I moved the project to a local path (C:\Gsoc-2026\) to avoid OneDrive syncing issues.
Database: MySQL (XAMPP) is confirmed running on Port 3307 and I am using that in my dbUri.
Cleanup: I have wiped the .m2 and the user-level openmrs stats folders to clear the registry.
Current Error: Even after a clean reset, running the SDK setup results in a BUILD FAILURE with java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 1.
Debug Info: Running with -X shows the project is being ‘banned’ from the build due to previous failures.
**Imp-**I deleted the “no-dot” openmrs folder (clearing stats).
But the .openmrs folder stayed behind.
I used this command also on CMD to delete"Remove-Item -Path “$HOME\.openmrs” -Recurse -Force” and also check first manually in c:/users/ but it’s not there
The Index -1 error is still there because the registry file (openmrs-sdk.xml) inside that hidden folder is still broken and I can’t find it manually as well as by command.
Since I have cleared the local configuration files, is there a specific SDK command or flag I should use to bypass this ‘Index -1’ registry conflict?
Also tell how to delete that config folder .openmrs - the brain of sdk ?
The important file i deleted also in that the statsSetupCalls = 2 , which is cause of faliure.
I think by finding that config folder .openmrs and deleting it will solve this problem.please help for this specific issue.
I am ready to try a fresh server ID tomorrow.