← Back to team overview

dhis2-devs team mailing list archive

Maven build error on DataMart

 

Hi,

I am trying to get the Dhis2 development environment setup, but having
problem making a successful project build using Maven.
Could someone give me some help on this?
I am not suppose to do this on Windows 7 64bit?

I am using Windows 7 OS 64bit, Bazaar 2.5.1-1, JDK
1.7.0_09, apache-maven-2.2.1

Followed 'http://dhis2.org/development' 'Quick start' to download Dhis2
source code via 'bzr branch lp:dhis2' without doing the login via 'bzr
lp-login <username>'.

However, when doing the 'mvn install' on '/dhis-2', it keeps on giving me
an error on datamart test part.


==================================
Running org.hisp.dhis.datamart.DataMartServiceOrgUnitTestTests run: 5,
Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.437 sec <<< FA
ILURE!
Results :

Failed tests:
testIndicatorDataMart(org.hisp.dhis.datamart.DataMartServiceOrgU
nitTest): expected:<482.6> but was:<480.6>

Tests run: 26, Failures: 1, Errors: 0, Skipped: 7

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
==================================


It doesn't require database setup before doing this, does it?

I have also tried downloading Dhis 2.9, and tried with JDK 1.6 and tried
with apache-maven-3.0.4-bin.
On those tries, I got a bit different DataMart related error and once on
DHIS System Support build compile error.

==================================
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
\DHIS2\2.9\dhis-2\dhis-support\dhis-support-system\src\main\java\org\his
p\dhis\system\util\ReflectionUtils.java:[254,31] type parameters of <T>T
cannot
be determined; no unique maximal instance exists for type variable T with
upper
bounds T,java.lang.Object
==================================


Does someone know the exact version of JDK, Dhis, Maven, Bazaar that would
work on Windows 7 64bit?

Follow ups