Hi all,
I have been having a bunch of issues building some modules with Maven
over the last few days, and recently discovered that they were all due
to incompatibilities between Maven2 and Maven3. I'm on Ubuntu 10.04
LTS, which only has Synaptic support for Maven2 at this time, so that's
what I've been using. And to be honest, I never thought about maven
versions at all before. But as a shot in the dark, I downloaded Maven3
and tried building with that and my problems were solved.
I don't know if we have an established standard for OpenMRS development
or not, but wanted to at least raise this issue here in the event that
someone else runs into Maven-related building errors. For google
purposes, some examples of errors I ran into:
/home/mseaton/workspace/openmrs-module-uiframework/api/src/main/java/org/openmrs/ui/framework/page/PageFactory.java:[9,25]
package javax.servlet.http does not exist
This occurs even though the parent POM specifies servlet jar in the
provided scope.
/home/mseaton/workspace/openmrs-module-uiframework/omod/src/main/java/org/openmrs/module/uiframework/PageController.java:[32,46]
package org.springframework.web.bind.annotation does not exist
This occurs even though the parent POM specifies spring-webmvc in the
provided scope.
InitializationErrors on classes in the test package that do not contain
any tests (eg. helper classes).
Hope this helps someone,
Mike
_________________________________________
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]