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 '.

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 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?

Hi James,
I have had the exact same error on 64 bit Win7, with different JDKs.

Only solution (not ideal) is to skip the tests. Look at the build.sh script.

#!/bin/sh

# Requires maven to be on the classpath
# Skips test phase

mvn clean install -DskipTests=true
mvn clean install -DskipTests=true -f dhis-web/pom.xm

Best regards,
Jason

···

On Sat, Oct 27, 2012 at 3:09 PM, James Chang <jamesbchang@gmail.com> wrote:

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?

_______________________________________________
Mailing list: DHIS 2 developers in Launchpad
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : DHIS 2 developers in Launchpad
More help : ListHelp - Launchpad Help

Thanks a lot, Jason.

Running with ‘mvn clean install -DskipTests=true’ worked.

I really appreciate your help. Thanks.

···

On Sun, Oct 28, 2012 at 12:41 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Hi James,

I have had the exact same error on 64 bit Win7, with different JDKs.

Only solution (not ideal) is to skip the tests. Look at the build.sh script.

#!/bin/sh

Requires maven to be on the classpath

Skips test phase

mvn clean install -DskipTests=true

mvn clean install -DskipTests=true -f dhis-web/pom.xm

Best regards,

Jason

On Sat, Oct 27, 2012 at 3:09 PM, James Chang jamesbchang@gmail.com wrote:

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 '.

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

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?


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

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

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

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

Hi James,

I have seen this before - data mart tests is failing in certain
circumstances/JVMs. The funny thing is that they pass in most
environments and I am not able to reproduce it. We need to closer on
this.

Lars

···

On Mon, Oct 29, 2012 at 4:55 AM, James Chang <jamesbchang@gmail.com> wrote:

Thanks a lot, Jason.

Running with 'mvn clean install -DskipTests=true' worked.

I really appreciate your help. Thanks.

On Sun, Oct 28, 2012 at 12:41 PM, Jason Pickering > <jason.p.pickering@gmail.com> wrote:

Hi James,
I have had the exact same error on 64 bit Win7, with different JDKs.

Only solution (not ideal) is to skip the tests. Look at the build.sh
script.

#!/bin/sh

# Requires maven to be on the classpath
# Skips test phase

mvn clean install -DskipTests=true
mvn clean install -DskipTests=true -f dhis-web/pom.xm

Best regards,
Jason

On Sat, Oct 27, 2012 at 3:09 PM, James Chang <jamesbchang@gmail.com> >> wrote:
> 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?
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp