Hi, I am new to openMRS and while going through the documentation, I got an error. I get the following error when I try to create a reference application project as per the documentation here. (https://wiki.openmrs.org/display/docs/OpenMRS+SDK). I am using the default configurations.
Error:
SIbos-MacBook-Pro:Java dondrzzy$ mvn openmrs-sdk:create-project
[INFO] Scanning for projects...
[WARNING] The metadata /Users/dondrzzy/.m2/repository/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata-openmrs-repo.xml is inva
lid: end tag name </head> must be the same as start tag <meta> from line 302 (position: TEXT seen ...="viewport" content="width=device-width,ini
tial-scale=1" >\n</head>... @303:8)
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[WARNING] The metadata /Users/dondrzzy/.m2/repository/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata-openmrs-repo.xml is inva
lid: end tag name </head> must be the same as start tag <meta> from line 302 (position: TEXT seen ...="viewport" content="width=device-width,initial-scale=1" >\n</head>... @303:8)
[INFO]
[INFO] --- openmrs-sdk-maven-plugin:3.13.1:create-project (default-cli) @ standalone-pom ---
^[[A
What kind of project would you like to create?:
1) Platform module
2) Reference Application module
3) Open Web App
Which one do you choose? [1/2/3]: 2
You must specify 1 or 2 or 3.
What kind of project would you like to create?:
1) Platform module
2) Reference Application module
3) Open Web App
Which one do you choose? [1/2/3]: 2
Module id uniquely identifies your module in the OpenMRS world.
It is advised to consult your module id on https://talk.openmrs.org
to eliminate possible collisions.
Module id must consists of lowercase letters, must start from
a letter, can contain alphanumerics and dots, e.g. webservices.rest,
metadatasharing, reporting, htmlformentry.
Please specify module id (default: 'basicexample'):
Module name is a user friendly name displayed to the user
instead of the module id.
By convention it is a module id with spaces between words.
Please specify module name (default: 'Basicexample'):
Describe your module in a few sentences (default: 'no description'):
GroupId, artifactId and version combined together identify
your module in the maven repository.
By convention OpenMRS modules use 'org.openmrs.module' as a groupId
(must follow convention for naming java packages) and the module id
as an artifactId. The version should follow maven versioning convention,
which in short is: major.minor.maintenance(-SNAPSHOT).
Please specify groupId (default: 'org.openmrs.module'):
Please specify initial version (default: '1.0.0-SNAPSHOT'):
What is the lowest version of the Reference Application (-Drefapp) you want to support? (default: '2.4'):
[INFO] Archetype: openmrs-sdk-archetype-module-refapp
[INFO] Generating project in Batch mode
[INFO] Archetype defined by properties
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.209 s
[INFO] Finished at: 2018-07-30T14:38:02+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.13.1:create-project (default-cli) on project standalone-pom: The defined artifact is not an archetype -> [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/MojoFailureException
I switched from Java 8 to Java 7 and still got the same error. However I can successfully create a platform project. Why does this issue occure when i try option 2 (reference application). Kindly assist me.