I feel most of the problems that developers have been facing due to maven come from the bad Maven plugin (m2 eclipse) for eclipse. I would recommend using a different IDE that has better out-of-the-box support for Maven :-) ...
Hopefully things will change soon given that m2ec has become a core project starting from 3.7, but people should also look at IAM plugin if that suits someone better --- Regards, Saptarshi PURKAYASTHA My Tech Blog: http://sunnytalkstech.blogspot.com You Live by CHOICE, Not by CHANCE On 7 September 2011 17:31, Omar Ahmed <[email protected]> wrote: > As a developer who does not have vast Java experience I found OpenMRS much > easier to work with and build modules when it was based on Ant. > I have faced the issue Dave pointed out several times in the past as well > with Maven haven't still found a silver bullet answer to that (Admittedly, I > didn't know about the JavaNature then). While I appreciate the positives > managing dependencies, etc that come with Maven, if the development > environment could be made as simple as adding a build file in Eclipse, > selecting targets and hitting go, it would come come as a substantial gain > for the start up developers on OpenMRS. > Omar > > On Thu, Sep 1, 2011 at 11:34 PM, Glen McCallum <[email protected]> wrote: > >> I don't think all the issues are openmrs correctable. >> >> I had a difficult time getting maven up and going on my mac (suranga >> helped me). In the end the eclipse plugins didn't work correctly - I always >> got strange build errors. >> >> But maven worked great on the command line … perhaps the problem was >> nothing to do with the maven setup of openmrs. >> >> Glen >> >> >> On 2011-09-01, at 10:48 AM, Burke Mamlin wrote: >> >> +1000 >> >> Getting our development environment humming – including sorting out the >> best way to configure Maven so that things just work – is effort that will >> pay off a thousand-fold. Perhaps we could have someone spike on the issues >> & potential solutions around our development setup (Eclipse/Maven/etc) from >> the perspective of a developer that just wants to concentrate on coding? >> >> It doesn't help that our development environment is a moving target – >> installation instructions are changing substantively… at least recently. >> >> -Burke >> >> On Thu, Sep 1, 2011 at 12:52 PM, Dave Thomas <[email protected]> wrote: >> >>> I ran into all kinds of crazy stuff including everything resolving >>> correctly besides java.lang.enum. And package problems, but everything is >>> fine now - its all about the classpaths. >>> >>> why don't our mavenized projects include the classpaths and java >>> natures? it seems like the marginal productivity gains to be had from using >>> maven are going to be lost messing around with eclipse. And the stuff I did >>> yesterday for a junior programmer looking up error messages at less than >>> 5k/sec for a whom english is a second language is going to be a very real >>> barrier to openmrs coding... >>> >>> I'm all for easy unit tests, but I'm not going to get those hours back >>> either... >>> On Sep 1, 2011 6:15 PM, "Mark Goodrich" <[email protected]> wrote: >>> > Thanks Wyclif... this seemed to work for me. I just need to make sure >>> I'm working on the sync or sync-api projects, not the sync-parent project. >>> > >>> > @Dave-did this fix the problem for you? >>> > >>> > Mark >>> > >>> > From: [email protected] [mailto:[email protected]] On Behalf Of Wyclif >>> Luyima >>> > Sent: Wednesday, August 31, 2011 2:45 PM >>> > To: [email protected] >>> > Subject: Re: [OPENMRS-DEV] eclipse and maven >>> > >>> > Hi Dave, have you tried this; >>> > >>> > right click on project -> maven -> update project configuration >>> > >>> > That should add JavaNature to your natures tag in the .project file. >>> > >>> > If the above doesn't work, add this >>> <nature>org.eclipse.jdt.core.javanature</nature> to the natures tag in the >>> .project file >>> > >>> > Wyclif >>> > On Wed, Aug 31, 2011 at 1:56 PM, Dave Thomas <[email protected] >>> <mailto:[email protected]>> wrote: >>> > Hi. I just checked out the new mavenized sync module, and i got it to >>> > compile fine. But, now i can't write code in the project. When I >>> > type in a java class, for example, 'Context.', rather than getting a >>> > suggestion for methods in the openmrs Context object, i get an eclipse >>> > error -- >>> > >>> > This compilation unit is not on the build path of a java project >>> > >>> > Does anyone know how to get the eclipse editor to use the dependencies >>> > as a classpath essentially, so i can get back to writing code? >>> > >>> > thanks, dave >>> > >>> > _________________________________________ >>> > >>> > To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to >>> [email protected]<mailto:[email protected]> with >>> "SIGNOFF openmrs-devel-l" in the body (not the subject) of your e-mail. >>> > >>> > [mailto:[email protected]<mailto:[email protected] >>> >?body=SIGNOFF%20openmrs-devel-l] >>> > >>> > ________________________________ >>> > Click here to >>> > unsubscribe<mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l> >>> from OpenMRS Developers' mailing list >>> >>> > >>> > _________________________________________ >>> > >>> > To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to >>> [email protected] with "SIGNOFF openmrs-devel-l" in the body >>> (not the subject) of your e-mail. >>> > >>> > [mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l] >>> ------------------------------ >>> Click here to >>> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from >>> OpenMRS Developers' mailing list >>> >> >> ------------------------------ >> Click here to >> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from >> OpenMRS Developers' mailing list >> >> >> ------------------------------ >> Click here to >> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from >> OpenMRS Developers' mailing list >> > > > > -- > > ______________________________________________________________ > Omar Ahmed > Engineer, > > Interactive Research and Development (IRD) > Suite 508, Ibrahim Trade Tower > Main Shahrah-e-Faisal > T: +92(21) 34327697 > W: www.irdresearch.org > _________________________________________ To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to [email protected] with "SIGNOFF openmrs-devel-l" in the body (not the subject) of your e-mail. [mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

