I would not suggest skipping unit tests. Its ok to get it to compile, but when developing they are crucial to run them to make sure you're not breaking anything else in openmrs.
I looked at the few failing tests in jdk7+ but didn't see why they would be failing. It'd be great if you could figure those out! :-) Ben On Tue, Mar 20, 2012 at 2:11 PM, ishara premadasa <[email protected]>wrote: > Hi all, > I am a final year Computer Science and Engineering undergraduate student > from University of Moratuwa. I expect to participate in GSoC 2012 with > contributing to OpenMRS therefore as my initial step i checked out the > latest source and built it with maven. I was first using jdk 1.7.0 but i > encountered a build failure with that. After going through few mail > archives i found the following thread which helped me to reslove the > failure from using jdk 1.7.0_03. > > > http://openmrs-mailing-list-archives.1560443.n2.nabble.com/openmrs-trunk-build-error-td7324260.html > > As mentioned in the thread i built the source code without tests, but then > i got the following error in building 'web' module. > Downloading: > http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/api/openmrs-api/1.10.0-SNAPSHOT/openmrs-api-1.10.0-SNAPSHOT-tests.jar > [INFO] Unable to find resource > 'org.openmrs.api:openmrs-api:test-jar:tests:1.10.0-SNAPSHOT' in repository > openmrs-repo ( > http://mavenrepo.openmrs.org/nexus/content/repositories/public) > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Failed to resolve artifact. > > Missing: > ---------- > 1) org.openmrs.api:openmrs-api:test-jar:tests:1.10.0-SNAPSHOT > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.openmrs.api > -DartifactId=openmrs-api -Dversion=1.10.0-SNAPSHOT -Dclassifier=tests > -Dpackaging=test-jar -Dfile=/path/to/file > > Alternatively, if you host your own repository you can deploy the file > there: > mvn deploy:deploy-file -DgroupId=org.openmrs.api > -DartifactId=openmrs-api -Dversion=1.10.0-SNAPSHOT -Dclassifier=tests > -Dpackaging=test-jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] > > Path to dependency: > 1) org.openmrs.web:openmrs-web:jar:1.10.0-SNAPSHOT > 2) org.openmrs.api:openmrs-api:test-jar:tests:1.10.0-SNAPSHOT > > I believe this was due to skipping the tests therefore i commented out the > 'tests' dependancy from pom.xml file in the 'web' module. > > <!-- Test-jar for sharing api test resources in web tests --> > <!-- <dependency> > <groupId>org.openmrs.api</groupId> > <artifactId>openmrs-api</artifactId> > <version>${project.version}</version> > <type>test-jar</type> > <scope>test</scope> > </dependency> --> > > However i was able to build the project successfully after the above step. > Can you please tell me whether this is the correct thing to do in avoiding > this error? Also will it be enough building the trunk without tests to > carry out my development works? > > I noticed that TRUNK-3142 > <https://tickets.openmrs.org/browse/TRUNK-3142>address these test failures > and would like to contribute to fix them too. > -- > *Best Regards.* > > *Ishara Premadasa,* > Final Year Undergraduate, > Dept. of Computer Science & Engineering, > University of Moratuwa > Sri Lanka. > http://isharapremadasa.blogspot.com > > > > ------------------------------ > Click here to > unsubscribe<[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]

