I hope to use OpenMRS as a case study for my students to work on and
learn from in a Software Engineering course I will teach starting in
February. So that I’m able to guide them in this endeavor, I’ve been
trying to install a working version of OpenMRS myself. So far, I’ve
successfully built version 2 by downloading the source code at
https://github.com/openmrs/openmrs-core. When I start the OpenMRS
system using the “mvn jetty:run” command, the page I see at
localhost:8080/openmrs indicates that “If you are seeing this page, it
means that the OpenMRS Platform is running successfully, but no user
interface module is installed.”
I’ve followed the information link provided on that start-up page to
https://wiki.openmrs.org/display/docs/User+Interface+Modules. There
it tells me that I will need to build and install the Legacy UI
module. I’ve consequently done that by building the source code
available at https://github.com/openmrs/openmrs-module-legacyui.git.
After I build the Legacy UI, I’ve copied the resulting jar
(legacyui-1.0-SNAPSHOT.jar) and omod (legacyui-1.0-SNAPSHOT.omod)
files to
since that is what the instructions at
https://wiki.openmrs.org/display/docs/User+Interface+Modules indicate
I should do. However, when I re-start the server, I’m still seeing
that "no user interface module is installed’. Have I put the Legacy
UI jar and omod files in the wrong directory under openmrs-core?
I think I’m getting close to successfully building something that I
could give my students to work from, but I need to get past this
problem. Any guidance would be appreciated.
Thanks,
Tom Naps
Professor, Computer Science
University of Wisconsin Oshkosh
@tomnaps on the instructions page, do we need to make this clearer?
2) Install the module
After the download completes,
copy the .omod file (legacyui-{versionNumber}.omod) into the modules
directory of your OpenMRS app data folder (e.g.
${HOME}./OpenMRS/modules).’
For the rest, on this platform running page, should we include the modules folder for the running platform instance?
Yes, this would be helpful because after building Version 2 from the github repository, there is no ${HOME}./OpenMRS/modules directory. Instead there is an openmrs-core directory. So should the modules directory referred to in the instructions be located directly under the openmrs-core directory? I’ve tried creating the modules folder directly under ${HOME}./openmrs-core and also under ${HOME}./openmrs-core/webapp/target/openmrs and using those as the location for the omod file, but neither of those locations for the modules folder succeeds in getting the application to recognize the legacy UI module after I restart the jetty server.
I have tried to configure. But I got an error for Jetty installation according to this link (http://run-jetty-run.googlecode.com/svn/trunk/updatesite) with eclipse. It shows me that there are no projects to download.
I need some help to move forward!
i believe there is a maven plugin for eclipse to configure jetty. in case you still aren’t able to install it, you can use intellij. It dosen’t require any external plugins
When I am trying to install the User Interface Modules for Developers, It’s failed to success. mvn clean install command show me these invalid target release error.
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to D:\GSoC\OpenMrs\Project\openmrs-ui\openmrs-mod ule-legacyui\api\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Legacy UI Module … SUCCESS [01:05 min]
[INFO] Legacy UI Module API … FAILURE [01:43 min]
[INFO] Legacy UI Module OMOD … SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:59 min
[INFO] Finished at: 2017-03-23T15:30:31+05:30
[INFO] Final Memory: 19M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3. 1:compile (default-compile) on project legacyui-api: Fatal error compiling: inva lid target release: 1.8 → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
Check if you are in the correct directory when running mvn clean install. In case their are build error pull in the latest changes, or use the latest stable release
Thank you @jtatia for the tips.
Anyway the problem is about to Java jdk version. I have installed both versions in my pc and forget to change the JAVA HOME variable from 1.7 to 1.8.
After the changes it’s going successfully.
When I am configuring IntelliJ IDEA for Open MRS, I got an error. So I would like to create a issue, but Issure page is not allowed to create issues using Open MRS ID, then I created a new case and send that to Open MRS.
Is it correct way?
have you created a help desk case for access to JIRA ?? in case you don’t have access to issues please create a help desk case requesting for access. You can then create an issue