← Back to team overview

dhis2-users team mailing list archive

[Dhis2] getting maven build errors

 

Hi,

I have downloaded the source code but i am getting build errors when i run
the command " mvn install " on terminal in dhis-2 directory.

I have attached the build log file. Kindly help me solve the issue.

Regards,
Haider Iqba
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] DHIS 2
[INFO] DHIS API
[INFO] DHIS Support Parent Project
[INFO] DHIS External Support
[INFO] DHIS Hibernate Support
[INFO] DHIS Test Support
[INFO] DHIS Support Commons
[INFO] DHIS System Support
[INFO] DHIS JDBC Service
[INFO] DHIS Services Parent Project
[INFO] DHIS Core API Implementations
[INFO] DHIS Administration Service
[INFO] DHIS DXF 2 Data Exchange
[INFO] DHIS Mobile Service
[INFO] DHIS Analytics
[INFO] DHIS Event Reporting Service
[INFO] DHIS Reporting Service
[INFO] DHIS Import-Export Service
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building DHIS 2 2.21-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ dhis ---
[INFO] Installing C:\Users\Haider\Desktop\dhis2\dhis-2\pom.xml to C:\Users\Haider\.m2\repository\org\hisp\dhis\dhis\2.21-SNAPSHOT\dhis-2.21-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building DHIS API 2.21-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: http://repo1.maven.org/maven2/org/smslib/smslib/3.5.2/smslib-3.5.2.pom
[INFO] Downloading: http://download.osgeo.org/webdav/geotools/org/smslib/smslib/3.5.2/smslib-3.5.2.pom
[INFO] Downloading: http://smslib.org/maven2/v3/org/smslib/smslib/3.5.2/smslib-3.5.2.pom
[INFO] Downloaded: http://smslib.org/maven2/v3/org/smslib/smslib/3.5.2/smslib-3.5.2.pom (3 KB at 1.3 KB/sec)
[INFO] Downloading: http://repo1.maven.org/maven2/org/smslib/smslib/3.5.2/smslib-3.5.2.jar
[INFO] Downloading: http://download.osgeo.org/webdav/geotools/org/smslib/smslib/3.5.2/smslib-3.5.2.jar
[INFO] Downloading: http://smslib.org/maven2/v3/org/smslib/smslib/3.5.2/smslib-3.5.2.jar
[INFO] Downloaded: http://smslib.org/maven2/v3/org/smslib/smslib/3.5.2/smslib-3.5.2.jar (348 KB at 102.4 KB/sec)
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ dhis-api ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ dhis-api ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ dhis-api ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ dhis-api ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ dhis-api ---
[INFO] Surefire report directory: C:\Users\Haider\Desktop\dhis2\dhis-2\dhis-api\target\surefire-reports
[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.hisp.dhis.appmanager.AppTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.378 sec - in org.hisp.dhis.appmanager.AppTest
Running org.hisp.dhis.calendar.DateTimeUnitPeriodTypeParserTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.561 sec - in org.hisp.dhis.calendar.DateTimeUnitPeriodTypeParserTest
Running org.hisp.dhis.calendar.DateTimeUnitTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec - in org.hisp.dhis.calendar.DateTimeUnitTest
Running org.hisp.dhis.calendar.impl.EthiopianCalendarTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.267 sec - in org.hisp.dhis.calendar.impl.EthiopianCalendarTest
Running org.hisp.dhis.calendar.impl.NepaliCalendarTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.094 sec - in org.hisp.dhis.calendar.impl.NepaliCalendarTest
Running org.hisp.dhis.common.AccessStringHelperTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec - in org.hisp.dhis.common.AccessStringHelperTest
Running org.hisp.dhis.common.BaseAnalyticalObjectTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.593 sec - in org.hisp.dhis.common.BaseAnalyticalObjectTest
Running org.hisp.dhis.common.CodeGeneratorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.109 sec - in org.hisp.dhis.common.CodeGeneratorTest
Running org.hisp.dhis.common.CombinationGeneratorTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec - in org.hisp.dhis.common.CombinationGeneratorTest
Running org.hisp.dhis.common.DimensionalObjectTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.hisp.dhis.common.DimensionalObjectTest
Running org.hisp.dhis.common.DimensionalObjectUtilsTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.hisp.dhis.common.DimensionalObjectUtilsTest
Running org.hisp.dhis.dashboard.DashboardTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec - in org.hisp.dhis.dashboard.DashboardTest
Running org.hisp.dhis.dataelement.CategoryComboMapTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.hisp.dhis.dataelement.CategoryComboMapTest
Running org.hisp.dhis.dataelement.DataElementCategoryComboTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.hisp.dhis.dataelement.DataElementCategoryComboTest
Running org.hisp.dhis.dataelement.DataElementTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.hisp.dhis.dataelement.DataElementTest
Running org.hisp.dhis.dataelement.OperandTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.hisp.dhis.dataelement.OperandTest
Running org.hisp.dhis.dataset.comparator.DataSetFrequencyComparatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec - in org.hisp.dhis.dataset.comparator.DataSetFrequencyComparatorTest
Running org.hisp.dhis.dataset.DataSetTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.156 sec - in org.hisp.dhis.dataset.DataSetTest
Running org.hisp.dhis.datavalue.DataValueTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec - in org.hisp.dhis.datavalue.DataValueTest
Running org.hisp.dhis.organisationunit.OrganisationUnitHierarchyTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec - in org.hisp.dhis.organisationunit.OrganisationUnitHierarchyTest
Running org.hisp.dhis.organisationunit.OrganisationUnitTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.hisp.dhis.organisationunit.OrganisationUnitTest
Running org.hisp.dhis.period.BiMonthlyPeriodTypeTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.hisp.dhis.period.BiMonthlyPeriodTypeTest
Running org.hisp.dhis.period.FinancialAprilPeriodTypeTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.hisp.dhis.period.FinancialAprilPeriodTypeTest
Running org.hisp.dhis.period.FinancialJulyPeriodTypeTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.hisp.dhis.period.FinancialJulyPeriodTypeTest
Running org.hisp.dhis.period.FinancialOctoberPeriodTypeTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec - in org.hisp.dhis.period.FinancialOctoberPeriodTypeTest
Running org.hisp.dhis.period.MonthlyPeriodTypeTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec - in org.hisp.dhis.period.MonthlyPeriodTypeTest
Running org.hisp.dhis.period.PeriodTypeTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.hisp.dhis.period.PeriodTypeTest
Running org.hisp.dhis.period.QuarterlyPeriodTypeTest
Tests run: 9, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! - in org.hisp.dhis.period.QuarterlyPeriodTypeTest
testCreatePeriod(org.hisp.dhis.period.QuarterlyPeriodTypeTest)  Time elapsed: 0 sec  <<< ERROR!
org.joda.time.IllegalInstantException: Illegal instant due to time zone offset transition (daylight savings time 'gap'): 2009-04-15T00:00:00.000 (Asia/Karachi)
	at org.joda.time.chrono.ZonedChronology.localToUTC(ZonedChronology.java:143)
	at org.joda.time.chrono.ZonedChronology.getDateTimeMillis(ZonedChronology.java:118)
	at org.joda.time.chrono.AssembledChronology.getDateTimeMillis(AssembledChronology.java:133)
	at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:258)
	at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:199)
	at org.joda.time.DateTime.<init>(DateTime.java:323)
	at org.hisp.dhis.period.QuarterlyPeriodTypeTest.testCreatePeriod(QuarterlyPeriodTypeTest.java:68)

Running org.hisp.dhis.period.RelativePeriodTest
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.hisp.dhis.period.RelativePeriodTest
Running org.hisp.dhis.period.SixMonthlyAprilPeriodTypeTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.hisp.dhis.period.SixMonthlyAprilPeriodTypeTest
Running org.hisp.dhis.period.SixMonthlyPeriodTypeTest
Tests run: 6, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! - in org.hisp.dhis.period.SixMonthlyPeriodTypeTest
testCreatePeriod(org.hisp.dhis.period.SixMonthlyPeriodTypeTest)  Time elapsed: 0 sec  <<< ERROR!
org.joda.time.IllegalInstantException: Illegal instant due to time zone offset transition (daylight savings time 'gap'): 2009-04-15T00:00:00.000 (Asia/Karachi)
	at org.joda.time.chrono.ZonedChronology.localToUTC(ZonedChronology.java:143)
	at org.joda.time.chrono.ZonedChronology.getDateTimeMillis(ZonedChronology.java:118)
	at org.joda.time.chrono.AssembledChronology.getDateTimeMillis(AssembledChronology.java:133)
	at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:258)
	at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:199)
	at org.joda.time.DateTime.<init>(DateTime.java:323)
	at org.hisp.dhis.period.SixMonthlyPeriodTypeTest.testCreatePeriod(SixMonthlyPeriodTypeTest.java:68)

testGeneratePeriods(org.hisp.dhis.period.SixMonthlyPeriodTypeTest)  Time elapsed: 0 sec  <<< ERROR!
org.joda.time.IllegalInstantException: Illegal instant due to time zone offset transition (daylight savings time 'gap'): 2009-04-15T00:00:00.000 (Asia/Karachi)
	at org.joda.time.chrono.ZonedChronology.localToUTC(ZonedChronology.java:143)
	at org.joda.time.chrono.ZonedChronology.getDateTimeMillis(ZonedChronology.java:118)
	at org.joda.time.chrono.AssembledChronology.getDateTimeMillis(AssembledChronology.java:133)
	at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:258)
	at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:199)
	at org.joda.time.DateTime.<init>(DateTime.java:323)
	at org.hisp.dhis.period.SixMonthlyPeriodTypeTest.testGeneratePeriods(SixMonthlyPeriodTypeTest.java:166)

testGetNextPeriod(org.hisp.dhis.period.SixMonthlyPeriodTypeTest)  Time elapsed: 0 sec  <<< ERROR!
org.joda.time.IllegalInstantException: Illegal instant due to time zone offset transition (daylight savings time 'gap'): 2009-04-15T00:00:00.000 (Asia/Karachi)
	at org.joda.time.chrono.ZonedChronology.localToUTC(ZonedChronology.java:143)
	at org.joda.time.chrono.ZonedChronology.getDateTimeMillis(ZonedChronology.java:118)
	at org.joda.time.chrono.AssembledChronology.getDateTimeMillis(AssembledChronology.java:133)
	at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:258)
	at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:199)
	at org.joda.time.DateTime.<init>(DateTime.java:323)
	at org.hisp.dhis.period.SixMonthlyPeriodTypeTest.testGetNextPeriod(SixMonthlyPeriodTypeTest.java:114)

testGenerateRollingPeriods(org.hisp.dhis.period.SixMonthlyPeriodTypeTest)  Time elapsed: 0 sec  <<< ERROR!
org.joda.time.IllegalInstantException: Illegal instant due to time zone offset transition (daylight savings time 'gap'): 2009-04-15T00:00:00.000 (Asia/Karachi)
	at org.joda.time.chrono.ZonedChronology.localToUTC(ZonedChronology.java:143)
	at org.joda.time.chrono.ZonedChronology.getDateTimeMillis(ZonedChronology.java:118)
	at org.joda.time.chrono.AssembledChronology.getDateTimeMillis(AssembledChronology.java:133)
	at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:258)
	at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:199)
	at org.joda.time.DateTime.<init>(DateTime.java:323)
	at org.hisp.dhis.period.SixMonthlyPeriodTypeTest.testGenerateRollingPeriods(SixMonthlyPeriodTypeTest.java:186)

testGetPreviousPeriod(org.hisp.dhis.period.SixMonthlyPeriodTypeTest)  Time elapsed: 0 sec  <<< ERROR!
org.joda.time.IllegalInstantException: Illegal instant due to time zone offset transition (daylight savings time 'gap'): 2009-04-15T00:00:00.000 (Asia/Karachi)
	at org.joda.time.chrono.ZonedChronology.localToUTC(ZonedChronology.java:143)
	at org.joda.time.chrono.ZonedChronology.getDateTimeMillis(ZonedChronology.java:118)
	at org.joda.time.chrono.AssembledChronology.getDateTimeMillis(AssembledChronology.java:133)
	at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:258)
	at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:199)
	at org.joda.time.DateTime.<init>(DateTime.java:323)
	at org.hisp.dhis.period.SixMonthlyPeriodTypeTest.testGetPreviousPeriod(SixMonthlyPeriodTypeTest.java:142)

Running org.hisp.dhis.period.StringFormatTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.hisp.dhis.period.StringFormatTest
Running org.hisp.dhis.period.WeeklyPeriodTypeTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 sec - in org.hisp.dhis.period.WeeklyPeriodTypeTest
Running org.hisp.dhis.period.YearlyPeriodTypeTest
Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! - in org.hisp.dhis.period.YearlyPeriodTypeTest
testCreatePeriod(org.hisp.dhis.period.YearlyPeriodTypeTest)  Time elapsed: 0 sec  <<< ERROR!
org.joda.time.IllegalInstantException: Illegal instant due to time zone offset transition (daylight savings time 'gap'): 2009-04-15T00:00:00.000 (Asia/Karachi)
	at org.joda.time.chrono.ZonedChronology.localToUTC(ZonedChronology.java:143)
	at org.joda.time.chrono.ZonedChronology.getDateTimeMillis(ZonedChronology.java:118)
	at org.joda.time.chrono.AssembledChronology.getDateTimeMillis(AssembledChronology.java:133)
	at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:258)
	at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:199)
	at org.joda.time.DateTime.<init>(DateTime.java:323)
	at org.hisp.dhis.period.YearlyPeriodTypeTest.testCreatePeriod(YearlyPeriodTypeTest.java:68)

Running org.hisp.dhis.program.ProgramIndicatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.hisp.dhis.program.ProgramIndicatorTest
Running org.hisp.dhis.program.ProgramTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.hisp.dhis.program.ProgramTest
Running org.hisp.dhis.query.QueryTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec - in org.hisp.dhis.query.QueryTest
Running org.hisp.dhis.sms.config.GenericHttpGatewayConfigTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.003 sec - in org.hisp.dhis.sms.config.GenericHttpGatewayConfigTest
Running org.hisp.dhis.sqlview.SqlViewTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec - in org.hisp.dhis.sqlview.SqlViewTest

Results :

Tests in error: 
  QuarterlyPeriodTypeTest.testCreatePeriod:68 » IllegalInstant Illegal instant d...
  SixMonthlyPeriodTypeTest.testCreatePeriod:68 » IllegalInstant Illegal instant ...
  SixMonthlyPeriodTypeTest.testGeneratePeriods:166 » IllegalInstant Illegal inst...
  SixMonthlyPeriodTypeTest.testGetNextPeriod:114 » IllegalInstant Illegal instan...
  SixMonthlyPeriodTypeTest.testGenerateRollingPeriods:186 » IllegalInstant Illeg...
  SixMonthlyPeriodTypeTest.testGetPreviousPeriod:142 » IllegalInstant Illegal in...
  YearlyPeriodTypeTest.testCreatePeriod:68 » IllegalInstant Illegal instant due ...

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

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] DHIS 2 ............................................. SUCCESS [  0.547 s]
[INFO] DHIS API ........................................... FAILURE [ 34.385 s]
[INFO] DHIS Support Parent Project ........................ SKIPPED
[INFO] DHIS External Support .............................. SKIPPED
[INFO] DHIS Hibernate Support ............................. SKIPPED
[INFO] DHIS Test Support .................................. SKIPPED
[INFO] DHIS Support Commons ............................... SKIPPED
[INFO] DHIS System Support ................................ SKIPPED
[INFO] DHIS JDBC Service .................................. SKIPPED
[INFO] DHIS Services Parent Project ....................... SKIPPED
[INFO] DHIS Core API Implementations ...................... SKIPPED
[INFO] DHIS Administration Service ........................ SKIPPED
[INFO] DHIS DXF 2 Data Exchange ........................... SKIPPED
[INFO] DHIS Mobile Service ................................ SKIPPED
[INFO] DHIS Analytics ..................................... SKIPPED
[INFO] DHIS Event Reporting Service ....................... SKIPPED
[INFO] DHIS Reporting Service ............................. SKIPPED
[INFO] DHIS Import-Export Service ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35.752 s
[INFO] Finished at: 2015-09-20T17:25:02+05:00
[INFO] Final Memory: 18M/246M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project dhis-api: There are test failures.
[ERROR] 
[ERROR] Please refer to C:\Users\Haider\Desktop\dhis2\dhis-2\dhis-api\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :dhis-api

Follow ups