← Back to team overview

dhis2-devs team mailing list archive

DHIS2 Code Build and Deploy

 

Hi developers,

I have downloaded the latest branch using bazar,
From: *https://launchpad.net/dhis2 <https://launchpad.net/dhis2>*
To:* D:\dhis2*

and then get branch to `*D:\dhis2\sc1*` to get a working copy.

I have followed the instructions mentioend at
*https://www.dhis2.org/development
<https://www.dhis2.org/development>*
Step1: Navigate into dhis-2
Step2: mvn install
Step3: Then navigate into  dhis-2\dhis-web
Step4: mvn install
Step5: Navigate into dhis-2\dhis-web\dhis-web-portal
Step6: mvn jetty:run-wa

But at each step, I am getting the error, log file attached.



Also, when trying to import the working copy into eclipse, I am getting the
follow errors.
I have also tried to check-out the orginal branch that was downloaded via
bazar, but same error appears.










*XmlRpcClient Executing: checkout D:\DHIS2\sc1
D:\workspace\.metadata\.plugins\org.vcs.bazaar.eclipse.core\bzreclipse8893338010344024209.tmp
    Error while executing checkout    [Error 206] The filename or extension
is too long:
u'D:/workspace/.metadata/.plugins/org.vcs.bazaar.eclipse.core/bzreclipse8893338010344024209.tmp/.bzr/checkout/limbo/new-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/ext/resources/themes/images/gray/form-invalid-tip'------XmlRpcClient
Executing: checkout D:\DHIS2\sc1
D:\workspace\.metadata\.plugins\org.vcs.bazaar.eclipse.core\bzreclipse465035511929930345.tmp
    Error while executing checkout    [Error 206] The filename or extension
is too long:
u'D:/workspace/.metadata/.plugins/org.vcs.bazaar.eclipse.core/bzreclipse465035511929930345.tmp/.bzr/checkout/limbo/new-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/ext/resources/themes/images/gray/form-invalid-tip'------XmlRpcClient
Executing: checkout D:\DHIS2\sc1
D:\workspace\.metadata\.plugins\org.vcs.bazaar.eclipse.core\bzreclipse6067091753725537421.tmp
*


And every time a finish button appears, and on clicking on it it keep going
on.


OS: *Windows7 (32 bit)*
Eclipse: *Eclipse EE Luna Version 4.4.2*






-- 
*Regards,*
*Muhammad Tahir*
Step2-Error:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] DHIS 2 ............................................. SUCCESS [  1.660 s]
[INFO] DHIS API ........................................... FAILURE [ 27.992 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 DataMart Service - Default .................... SKIPPED
[INFO] DHIS Administration Service ........................ SKIPPED
[INFO] DHIS Tracker API Implementations ................... SKIPPED
[INFO] DHIS DXF 2 Data Exchange ........................... SKIPPED
[INFO] DHIS Analytics ..................................... SKIPPED
[INFO] DHIS Mobile Service ................................ SKIPPED
[INFO] DHIS SMS Service ................................... 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: 30.126 s
[INFO] Finished at: 2015-06-08T10:22:48+05:00
[INFO] Final Memory: 31M/78M
[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 D:\DHIS2\sc1\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

===========================================================================================================================================================
Step4-Error:

D:\DHIS2\sc1\dhis-2\dhis-web>mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] DHIS Web Modules Project
[INFO] DHIS Common Functionality for Web
[INFO] DHIS Common Resources for Web
[INFO] DHIS Mobile API
[INFO] DHIS Web API
[INFO] DHIS 2 OHIE Implementations
[INFO] DHIS Web Modules Maintenance
[INFO] DHIS App Manager
[INFO] DHIS Data Set Management
[INFO] DHIS Data Dictionary
[INFO] DHIS Organisation Unit Management
[INFO] DHIS Setting Maintenance
[INFO] DHIS User Maintenance
[INFO] DHIS Data Administration
[INFO] DHIS Program and Attribute Management
[INFO] DHIS Mobile
[INFO] DHIS Data Entry
[INFO] DHIS Import-Export
[INFO] DHIS Validation Rule
[INFO] DHIS Web Reporting
[INFO] DHIS Web Dashboard Integration module
[INFO] DHIS Case Entry
[INFO] DHIS Web Light
[INFO] DHIS Web Mobile
[INFO] DHIS Web SMS
[INFO] DHIS Web Apps
[INFO] DHIS Web Portal
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DHIS Web Modules Project 2.20-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ dhis-web ---
[INFO] Installing D:\DHIS2\sc1\dhis-2\dhis-web\pom.xml to C:\Users\muhammadtahir\.m2\repository\org\hisp\dhis\dhis-web\2.20-SNAPSHOT\dhis-web-2.20-SNA
PSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DHIS Common Functionality for Web 2.20-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.hisp.dhis:dhis-api:jar:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-service-dxf2:jar:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-service-core:jar:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-service-administration:jar:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-service-reporting:jar:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-support-test:jar:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-support-system:jar:2.20-SNAPSHOT is missing, no dependency information available
Downloading: http://repo1.maven.org/maven2/org/springframework/security/spring-security-config/3.2.7.RELEASE/spring-security-config-3.2.7.RELEASE.pom
Downloaded: http://repo1.maven.org/maven2/org/springframework/security/spring-security-config/3.2.7.RELEASE/spring-security-config-3.2.7.RELEASE.pom (
13 KB at 18.5 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/springframework/security/spring-security-core/3.2.7.RELEASE/spring-security-core-3.2.7.RELEASE.pom
Downloaded: http://repo1.maven.org/maven2/org/springframework/security/spring-security-core/3.2.7.RELEASE/spring-security-core-3.2.7.RELEASE.pom (9 KB
 at 28.6 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/springframework/security/spring-security-config/3.2.7.RELEASE/spring-security-config-3.2.7.RELEASE.jar
Downloading: http://repo1.maven.org/maven2/org/springframework/security/spring-security-core/3.2.7.RELEASE/spring-security-core-3.2.7.RELEASE.jar
Downloaded: http://repo1.maven.org/maven2/org/springframework/security/spring-security-core/3.2.7.RELEASE/spring-security-core-3.2.7.RELEASE.jar (360
KB at 172.3 KB/sec)
Downloaded: http://repo1.maven.org/maven2/org/springframework/security/spring-security-config/3.2.7.RELEASE/spring-security-config-3.2.7.RELEASE.jar (
398 KB at 170.2 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] DHIS Web Modules Project ........................... SUCCESS [  0.246 s]
[INFO] DHIS Common Functionality for Web .................. FAILURE [  4.552 s]
[INFO] DHIS Common Resources for Web ...................... SKIPPED
[INFO] DHIS Mobile API .................................... SKIPPED
[INFO] DHIS Web API ....................................... SKIPPED
[INFO] DHIS 2 OHIE Implementations ........................ SKIPPED
[INFO] DHIS Web Modules Maintenance ....................... SKIPPED
[INFO] DHIS App Manager ................................... SKIPPED
[INFO] DHIS Data Set Management ........................... SKIPPED
[INFO] DHIS Data Dictionary ............................... SKIPPED
[INFO] DHIS Organisation Unit Management .................. SKIPPED
[INFO] DHIS Setting Maintenance ........................... SKIPPED
[INFO] DHIS User Maintenance .............................. SKIPPED
[INFO] DHIS Data Administration ........................... SKIPPED
[INFO] DHIS Program and Attribute Management .............. SKIPPED
[INFO] DHIS Mobile ........................................ SKIPPED
[INFO] DHIS Data Entry .................................... SKIPPED
[INFO] DHIS Import-Export ................................. SKIPPED
[INFO] DHIS Validation Rule ............................... SKIPPED
[INFO] DHIS Web Reporting ................................. SKIPPED
[INFO] DHIS Web Dashboard Integration module .............. SKIPPED
[INFO] DHIS Case Entry .................................... SKIPPED
[INFO] DHIS Web Light ..................................... SKIPPED
[INFO] DHIS Web Mobile .................................... SKIPPED
[INFO] DHIS Web SMS ....................................... SKIPPED
[INFO] DHIS Web Apps ...................................... SKIPPED
[INFO] DHIS Web Portal .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.268 s
[INFO] Finished at: 2015-06-08T10:25:12+05:00
[INFO] Final Memory: 15M/36M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project dhis-web-commons: Could not resolve dependencies for project org.hisp.dhis:dhis-web-commons:jar:2.20-SNAPSHO
T: The following artifacts could not be resolved: org.hisp.dhis:dhis-api:jar:2.20-SNAPSHOT, org.hisp.dhis:dhis-service-dxf2:jar:2.20-SNAPSHOT, org.his
p.dhis:dhis-service-core:jar:2.20-SNAPSHOT, org.hisp.dhis:dhis-service-administration:jar:2.20-SNAPSHOT, org.hisp.dhis:dhis-service-reporting:jar:2.20
-SNAPSHOT, org.hisp.dhis:dhis-support-test:jar:2.20-SNAPSHOT, org.hisp.dhis:dhis-support-system:jar:2.20-SNAPSHOT: Could not find artifact org.hisp.dh
is:dhis-api:jar:2.20-SNAPSHOT -> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :dhis-web-commons


===========================================================================================================================================================
Step6-Error:

D:\DHIS2\sc1\dhis-2\dhis-web\dhis-web-portal>mvn  jetty:run-war
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.4/maven-war-plugin-2.4.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.4/maven-war-plugin-2.4.pom (10 KB at 5.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.4/maven-war-plugin-2.4.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.4/maven-war-plugin-2.4.jar (85 KB at 42.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.2.7.v20150116/jetty-maven-plugin-9.2.7.v20150116.pom
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.2.7.v20150116/jetty-maven-plugin-9.2.7.v20150116.pom (6 KB at
17.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-project/9.2.7.v20150116/jetty-project-9.2.7.v20150116.pom
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-project/9.2.7.v20150116/jetty-project-9.2.7.v20150116.pom (34 KB at 76.4 KB/s
ec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-parent/23/jetty-parent-23.pom
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-parent/23/jetty-parent-23.pom (22 KB at 49.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.2.7.v20150116/jetty-maven-plugin-9.2.7.v20150116.jar
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.2.7.v20150116/jetty-maven-plugin-9.2.7.v20150116.jar (95 KB at
 83.2 KB/sec)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DHIS Web Portal 2.20-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> jetty-maven-plugin:9.2.7.v20150116:run-war (default-cli) > package @ dhis-web-portal >>>
[WARNING] The POM for org.hisp.dhis:dhis-api:jar:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-commons:jar:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-commons-resources:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-service-core:jar:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-api:jar:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-ohie:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-sms:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-maintenance-datadictionary:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-maintenance-dataset:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-maintenance-organisationunit:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-maintenance-user:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-maintenance-dataadmin:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-maintenance-settings:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-maintenance-program:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-maintenance-mobile:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-importexport:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-validationrule:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-dataentry:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-dashboard-integration:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-caseentry:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-api-mobile:jar:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-light:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-mobile:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-reporting:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-apps:war:2.20-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.hisp.dhis:dhis-web-maintenance-appmanager:war:2.20-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.588 s
[INFO] Finished at: 2015-06-08T10:30:34+05:00
[INFO] Final Memory: 8M/19M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project dhis-web-portal: Could not resolve dependencies for project org.hisp.dhis:dhis-web-portal:war:2.20-SNAPSHOT:
 The following artifacts could not be resolved: org.hisp.dhis:dhis-api:jar:2.20-SNAPSHOT, org.hisp.dhis:dhis-web-commons:jar:2.20-SNAPSHOT, org.hisp.d
his:dhis-web-commons-resources:war:2.20-SNAPSHOT, org.hisp.dhis:dhis-service-core:jar:2.20-SNAPSHOT, org.hisp.dhis:dhis-web-api:jar:2.20-SNAPSHOT, org
.hisp.dhis:dhis-web-ohie:war:2.20-SNAPSHOT, org.hisp.dhis:dhis-web-sms:war:2.20-SNAPSHOT, org.hisp.dhis:dhis-web-maintenance-datadictionary:war:2.20-S
NAPSHOT, org.hisp.dhis:dhis-web-maintenance-dataset:war:2.20-SNAPSHOT, org.hisp.dhis:dhis-web-maintenance-organisationunit:war:2.20-SNAPSHOT, org.hisp
.dhis:dhis-web-maintenance-user:war:2.20-SNAPSHOT, org.hisp.dhis:dhis-web-maintenance-dataadmin:war:2.20-SNAPSHOT, org.hisp.dhis:dhis-web-maintenance-
settings:war:2.20-SNAPSHOT, org.hisp.dhis:dhis-web-maintenance-program:war:2.20-SNAPSHOT, org.hisp.dhis:dhis-web-maintenance-mobile:war:2.20-SNAPSHOT,
 org.hisp.dhis:dhis-web-importexport:war:2.20-SNAPSHOT, org.hisp.dhis:dhis-web-validationrule:war:2.20-SNAPSHOT, org.hisp.dhis:dhis-web-dataentry:war:
2.20-SNAPSHOT, org.hisp.dhis:dhis-web-dashboard-integration:war:2.20-SNAPSHOT, org.hisp.dhis:dhis-web-caseentry:war:2.20-SNAPSHOT, org.hisp.dhis:dhis-
web-api-mobile:jar:2.20-SNAPSHOT, org.hisp.dhis:dhis-web-light:war:2.20-SNAPSHOT, org.hisp.dhis:dhis-web-mobile:war:2.20-SNAPSHOT, org.hisp.dhis:dhis-
web-reporting:war:2.20-SNAPSHOT, org.hisp.dhis:dhis-web-apps:war:2.20-SNAPSHOT, org.hisp.dhis:dhis-web-maintenance-appmanager:war:2.20-SNAPSHOT: Could
 not find artifact org.hisp.dhis:dhis-api:jar:2.20-SNAPSHOT -> [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/DependencyResolutionException

Follow ups