Creating a new project refering to the developer's manual

Application Name: Replace this text with one of: Platform, Reference Application, Bahmni, (Other – Please specify) Version Number: Replace this text with the version number of the above application your question is about.

Question: Hello, I am trying to create a module referring to the developer’s manual. When I type

mvn clean install

it throws an error.

> 
> 
> C:\Users\HP\openmrs-core\myfirstmodule>mvn clean install
> [INFO] Scanning for projects...
> Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/maven/parents/maven-parent-openmrs-module/1.1.0/maven-parent-openmrs-module-1.1.0.pom
> Downloading from archetype: https://mavenrepo.openmrs.org/public/org/openmrs/maven/parents/maven-parent-openmrs-module/1.1.0/maven-parent-openmrs-module-1.1.0.pom
> Downloading from openmrs-repo-thirdparty: https://mavenrepo.openmrs.org/thirdparty/org/openmrs/maven/parents/maven-parent-openmrs-module/1.1.0/maven-parent-openmrs-module-1.1.0.pom
> Downloading from central: https://repo1.maven.org/maven2/org/openmrs/maven/parents/maven-parent-openmrs-module/1.1.0/maven-parent-openmrs-module-1.1.0.pom
> [ERROR] [ERROR] Some problems were encountered while processing the POMs:
> [WARNING] 'parent.relativePath' of POM org.openmrs.module:myfirstmodule:1.0.0-SNAPSHOT (C:\Users\HP\openmrs-core\myfirstmodule\pom.xml) points at org.openmrs:openmrs instead of org.openmrs.maven.parents:maven-parent-openmrs-module, please verify your project structure @ line 5, column 13
> [FATAL] Non-resolvable parent POM for org.openmrs.module:myfirstmodule:1.0.0-SNAPSHOT: Could not transfer artifact org.openmrs.maven.parents:maven-parent-openmrs-module:pom:1.1.0 from/to openmrs-repo (https://mavenrepo.openmrs.org/public): transfer failed for https://mavenrepo.openmrs.org/public/org/openmrs/maven/parents/maven-parent-openmrs-module/1.1.0/maven-parent-openmrs-module-1.1.0.pom and 'parent.relativePath' points at wrong local POM @ line 5, column 13
>  @
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> [ERROR]   The project org.openmrs.module:myfirstmodule:1.0.0-SNAPSHOT (C:\Users\HP\openmrs-core\myfirstmodule\pom.xml) has 1 error
> [ERROR]     Non-resolvable parent POM for org.openmrs.module:myfirstmodule:1.0.0-SNAPSHOT: Could not transfer artifact org.openmrs.maven.parents:maven-parent-openmrs-module:pom:1.1.0 from/to openmrs-repo (https://mavenrepo.openmrs.org/public): transfer failed for https://mavenrepo.openmrs.org/public/org/openmrs/maven/parents/maven-parent-openmrs-module/1.1.0/maven-parent-openmrs-module-1.1.0.pom and 'parent.relativePath' points at wrong local POM @ line 5, column 13: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -> [Help 2]
> [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/ProjectBuildingException
> [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

What can I do to correct the error?

Are you using the SDK ?

yes

And the standalone

Could you move myfirstmodule folder to HP such that it has the path HP/myfirstmodule

Then retry the command again.