Question about Importing the Core into Eclipse

0 views
Skip to first unread message

Jason Boccuti

unread,
Jun 6, 2014, 3:31:38 PM6/6/14
to d...@openmrs.org
Hello,

I recently forked the openmrs-core on Github in order to begin working on introductory tickets.  However, I have run into a few issues with the Eclipse project.

After importing OpenMRS-Core as an existing Maven Project into Eclipse, I've noticed an odd file structure that creates sets of duplicate files.  When first importing the Core into Eclipse, 7 project folders are created: openmrs-api, openmrs-core, openmrs-release-test, openmrs-test, openmrs-tools, openmrs-web, and openmrs-webapp.  However, openmrs-core has 7 folders in it that represent the same structures.

Inline image 1

For example, openmrs-core/web/src/main/java/org/openmrs/hl7/web/controller brings you to the same 4 Java files as openmrs-web/src/main/java/org/openmrs/hl7/web/controller:

Inline image 4

You can also reach the same 4 java files by going to the src/main/java folder in the layer below openmrs-web:

Inline image 5

After doing some research on all the file paths and testing whether changes in the file in one file path were represented in the other paths, I was able to conclude that the files are the same.  In the OpenMRS University: Contributing Code video on YouTube, Rafał Korytkowski finds and opens his files via the third example above.  This appears to be the easiest/most efficient way, but I wanted to make sure that is correct.  If that is the case, is there a reason to have openmrs-core open as a project in Eclipse?  Or can I just keep the 6 other openmrs-_____ project folders open?

Thanks in advance to anyone who may be able to help,
Jason Boccuti

Michael Downey

unread,
Jun 6, 2014, 3:39:17 PM6/6/14
to OpenMRS Developer List
Hi there! You might also want to consider posting your question to OpenMRS Questions, our Q&A site. Head to the OpenMRS Wiki for details: http://wiki.openmrs.org/questions

Cheers,
Michael



--
OpenMRS Developers: http://go.openmrs.org/dev
Post: d...@openmrs.org | Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/



--
Michael Downey
OpenMRS Community Manager

Boccuti, Jason

unread,
Jun 6, 2014, 3:44:07 PM6/6/14
to d...@openmrs.org
Will do.

Thanks!
Jason
Reply all
Reply to author
Forward
0 new messages