running dhis2 code from eclipse using tomcat as the app server

Hi guys,

Could some one guide me through on how to run the dhis2 code from eclipse.

i have successfully run the command mvn eclipse:eclipse for the directories /dhis-2 and dhis-web and imported the project into eclipse ide

thanks in advance

···


Regards
David Nyaika
Software Developer(SCJP,SCWCD Certified)

IICS Technologies, Muyenga
Phone:+256706353274
Skype:davie2086

Email: davie2086@gmail.com

Hi

I’m not really sure how that would work (if it even could work). I’m assuming you already know the steps for running it outside of Eclipse?

If not, there is a couple of ways to run dhis2 (when doing dev):

a) If you want to start everything, make sure that you have installed all the dependencies, then run mvn jetty:run-war from the dhis-web-portal directory

b) If you are working on just one module, lets say dhis-web-light, then you can enter that directory and run mvn jetty:run, it sadly won’t do hotloading of classes, but it will read the resources directly, so if you are changing vm/js files, you can just refresh your browser and you can see the changes without having to restart the server

Of course, if you are using one of the several maven plugins to Eclipse, you can also run the command mvn jetty:run/run-war directly from Eclipse, but not sure if that gives you any advantages

···


Morten

On Fri, Feb 22, 2013 at 1:15 PM, Nyaika David davie2086@gmail.com wrote:

Hi guys,

Could some one guide me through on how to run the dhis2 code from eclipse.

i have successfully run the command mvn eclipse:eclipse for the directories /dhis-2 and dhis-web and imported the project into eclipse ide


Regards
David Nyaika
Software Developer(SCJP,SCWCD Certified)

IICS Technologies, Muyenga

Phone:+256706353274
Skype:davie2086

Email: davie2086@gmail.com

thanks in advance


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp