← Back to team overview

dhis2-devs team mailing list archive

Error DHIS2 building

 

Hi there,

I'm just getting started with DHIS2. I got following errors when building
the source code:

1. Building dhis-2 with tests:

Tests in error:
  addGet(org.hisp.dhis.patientdatavalue.PatientDataValueStoreTest)
  aggregate

(org.hisp.dhis.patientdatavalue.aggregation.PatientDataValueAggregationEngineTest)
  addGet(org.hisp.dhis.patient.PatientStoreTest)
  getAll(org.hisp.dhis.patient.PatientStoreTest)
  delete(org.hisp.dhis.patient.PatientStoreTest)

Tests run: 6, Failures: 0, Errors: 5, Skipped: 0

2. Then I got success when building it without tests, but building dhis-web
I got this error:

[INFO] Building DHIS Web Portal
[INFO]    task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory
C:\cygwin\home\Quang\dhis2\dhis-2\dhis-web\dhis-web-portal

\target
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
Downloading: http://www.amplecode.org/maven2/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-report
ing-2.0.4-SNAPSHOT.war
[INFO] Unable to find resource
'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT' in repository amplecode_maven
2_repo (http://www.amplecode.org/maven2)
Downloading:
http://jasperreports.sourceforge.net/maven2/org/hisp/dhis/dhis-web-

excel-reporting/2.0.4-SNAPSHOT/dhis-web-
excel-reporting-2.0.4-SNAPSHOT.war
[INFO] Unable to find resource
'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT' in repository jasperreports (
http://jasperreports.sourceforge.net/maven2)
Downloading: http://repository.codehaus.org/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-reporti
ng-2.0.4-SNAPSHOT.war
[INFO] Unable to find resource
'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT' in repository org.codehaus.wo
odstox (http://repository.codehaus.org)
Downloading: http://dhis.uio.no/maven/external/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-repo
rting-2.0.4-SNAPSHOT.war
[INFO] Unable to find resource
'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT' in repository dhis.uio.no (ht
tp://dhis.uio.no/maven/external)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.hisp.dhis
-DartifactId=dhis-web-excel-

reporting -Dversion=2.0.4-SNAPSHOT -D
packaging=war -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there:
      mvn deploy:deploy-file -DgroupId=org.hisp.dhis
-DartifactId=dhis-web-excel-

reporting -Dversion=2.0.4-SNAPSHOT -Dpa
ckaging=war -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.hisp.dhis:dhis-web-portal:war:2.0.4-SNAPSHOT
        2) org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
  org.hisp.dhis:dhis-web-portal:war:2.0.4-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  amplecode_maven2_repo (http://www.amplecode.org/maven2),
  org.codehaus.woodstox (http://repository.codehaus.org),
  jasperreports (http://jasperreports.sourceforge.net/maven2),
  dhis.uio.no (http://dhis.uio.no/maven/external)

[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 9 minutes 32 seconds
[INFO] Finished at: Mon Mar 01 11:43:11 ICT 2010
[INFO] Final Memory: 25M/63M
[INFO]
------------------------------------------------------------------------

3. Remove dhis-web-excel-reporting from the POM file of dhis-web-portal,
it's okay to run the project. However I got out of memory exception as soon
as I logged-in to the system (still error when *JAVA_OPTS *environment
variable was set).

Hope anybody can help me out.
Thank you very much!

Best regards,
Quang

Follow ups