Checking if port 8080 is in use… [free]
[INFO] OpenMRS module detected, installing before run…
[INFO] Configured Artifact: org.openmrs.module:basicexample-omod:1.0.0-SNAPSHOT:jar
[INFO] Copying basicexample-1.0.0-SNAPSHOT.omod to /home/krishnanspace/openmrs/server/modules/basicexample-1.0.0-SNAPSHOT.omod
[info] Module ‘basicexample’ was updated to version ‘1.0.0-SNAPSHOT’
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Basicexample … FAILURE [ 4.101 s]
[INFO] Basicexample API … SUCCESS [ 13.165 s]
[INFO] Basicexample OMOD … SUCCESS [ 8.595 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.780 s
[INFO] Finished at: 2017-12-12T10:50:48+05:30
[INFO] Final Memory: 53M/366M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.12.1:run (default-cli) on project basicexample: Execution default-cli of goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.12.1:run failed.: NullPointerException -> [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/PluginExecutionException
Whenever I am executing this command I get the above error.Dont know what caused it.Also what is the command to shutdown the tomcat server?Like openmrs-sdk-run will start the tomcat server,but in the documentation,there is no mention of shutting the server.
Since today morning we are having the same issue. We tried mvn versions 3.3.9, 3.5.0, 3.5.2 and openmrs-sdk 3.12.1.
Here is full log: https://pastebin.com/gXnTdVyj
I have been getting this for the past two days. I thought I some how corrupted my installation so I deleted the maven repository for the sdk and reinstalled it using the command from the website but I still get this error.
[ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.13.6:run (default-cli) on project openmrs-webapp: Execution default-cli of goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.13.6:run failed: There is no server with server id: true. Please create it first using openmrs-sdk:setup.
In your command, mvn openmrs-sdk:run -DserverId = server1 can you remove the spaces and ensure that the name is exactly as expected? Alternatively, do not specify a server such that you get a list to choose from.