Build Failure at dhis-2

Hi

Recently, I check out the code of dhis 2.3 release version. but when I build in dhis-2 folder, it always say that build failure. I copied the message here. Please someone tell me how to solve this problem. I also just installed new operating system too, so I don’t know whether it is because of dhis or because of missing installation

*[INFO] 5 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:
[INFO]
[INFO] DHIS 2 … SUCCESS [0.343s]
[INFO] DHIS API … FAILURE [1.170s]
[INFO] DHIS Support Parent Project … SKIPPED

[INFO] DHIS Test Support … SKIPPED
[INFO] DHIS External Support … SKIPPED
[INFO] DHIS Hibernate Support … SKIPPED
[INFO] DHIS System Support … SKIPPED

[INFO] DHIS JDBC Service … SKIPPED
[INFO] DHIS XML framework services … SKIPPED
[INFO] DHIS Services Parent Project … SKIPPED
[INFO] DHIS Core API Implementations … SKIPPED

[INFO] DHIS I18n Static … SKIPPED
[INFO] DHIS Options … SKIPPED
[INFO] DHIS Administration Service … SKIPPED
[INFO] DHIS DataMart Service - Default … SKIPPED

[INFO] DHIS Aggregation Service - Default … SKIPPED
[INFO] DHIS OrganisationUnit API Implementations … SKIPPED
[INFO] DHIS Reporting Service … SKIPPED
[INFO] DHIS Import-Export Service … SKIPPED

[INFO] DHIS Patient API Implementations … SKIPPED
[INFO] DHIS JDBC / External Test Project … SKIPPED
[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.903s
[INFO] Finished at: Fri Jul 22 09:03:32 IST 2011
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.2:compile (default-compile) on project dhis-api: Compilation failure: Compilat
ion failure:
[ERROR] error: error reading C:\Users\Gau Gau.m2\repository\junit\junit\4.8.1\j

unit-4.8.1.jar; error in opening zip file
[ERROR] error: error reading C:\Users\Gau Gau.m2\repository\commons-lang\common
s-lang\2.6\commons-lang-2.6.jar; error in opening zip file
[ERROR] error: error reading C:\Users\Gau Gau.m2\repository\commons-collections

\commons-collections\3.2\commons-collections-3.2.jar; error in opening zip file
[ERROR] error: error reading C:\Users\Gau Gau.m2\repository\jfree\jfreechart\1.
0.13\jfreechart-1.0.13.jar; error in opening zip file

[ERROR] error: error reading C:\Users\Gau Gau.m2\repository\net\sf\jasperreport
s\jasperreports\4.0.1\jasperreports-4.0.1.jar; error in opening zip file
[ERROR] → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit

ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc

eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command*

[ERROR] mvn -rf :dhis-api
D:\Work\DHIS\Source Code\dhis2.3\2.3\dhis-2>

···

**

Thủy

Dear all,

Above errors one developers helped by sent those files to me. But then I still couldn’t build the code. It show another messages with 14 errors.

*[INFO] 14 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:
[INFO]
[INFO] DHIS 2 … SUCCESS [0.281s]
[INFO] DHIS API … SUCCESS [3.510s]
[INFO] DHIS Support Parent Project … SUCCESS [0.016s]

[INFO] DHIS Test Support … FAILURE [0.686s]
[INFO] DHIS External Support … SKIPPED
[INFO] DHIS Hibernate Support … SKIPPED
[INFO] DHIS System Support … SKIPPED

[INFO] DHIS JDBC Service … SKIPPED
[INFO] DHIS XML framework services … SKIPPED
[INFO] DHIS Services Parent Project … SKIPPED
[INFO] DHIS Core API Implementations … SKIPPED

[INFO] DHIS I18n Static … SKIPPED
[INFO] DHIS Options … SKIPPED
[INFO] DHIS Administration Service … SKIPPED
[INFO] DHIS DataMart Service - Default … SKIPPED

[INFO] DHIS Aggregation Service - Default … SKIPPED
[INFO] DHIS OrganisationUnit API Implementations … SKIPPED
[INFO] DHIS Reporting Service … SKIPPED
[INFO] DHIS Import-Export Service … SKIPPED

[INFO] DHIS Patient API Implementations … SKIPPED
[INFO] DHIS JDBC / External Test Project … SKIPPED
[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.883s
[INFO] Finished at: Fri Jul 22 10:38:44 IST 2011
[INFO] Final Memory: 14M/45M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.2:compile (default-compile) on project dhis-support-test: Compilation failure:
Compilation failure:
[ERROR] \Work\DHIS\Source Code\dhis2.3\2.3\dhis-2\dhis-support\dhis-support-test

\src\main\java\org\hisp\dhis\DhisTest.java:[38,51] package org.springframework.b
eans.factory.annotation does not exist
[ERROR] \Work\DHIS\Source Code\dhis2.3\2.3\dhis-2\dhis-support\dhis-support-test
\src\main\java\org\hisp\dhis\DhisTest.java:[45,46] package org.springframework.t

ransaction.support does not exist
[ERROR] \Work\DHIS\Source Code\dhis2.3\2.3\dhis-2\dhis-support\dhis-support-test
\src\main\java\org\hisp\dhis\DhisSpringTest.java:[38,49] package org.springframe
work.transaction.annotation does not exist

[ERROR] \Work\DHIS\Source Code\dhis2.3\2.3\dhis-2\dhis-support\dhis-support-test
\src\main\java\org\hisp\dhis\DhisSpringTest.java:[47,1] cannot find symbol
[ERROR] symbol: class Transactional
[ERROR] @Transactional

[ERROR] \Work\DHIS\Source Code\dhis2.3\2.3\dhis-2\dhis-support\dhis-support-test
\src\main\java\org\hisp\dhis\DhisTest.java:[56,5] cannot find symbol
[ERROR] symbol : class Autowired
[ERROR] location: class org.hisp.dhis.DhisTest

[ERROR] \Work\DHIS\Source Code\dhis2.3\2.3\dhis-2\dhis-support\dhis-support-test
\src\main\java\org\hisp\dhis\DhisTest.java:[131,22] cannot access org.springfram
ework.beans.factory.ListableBeanFactory
[ERROR] class file for org.springframework.beans.factory.ListableBeanFactory not

found
[ERROR] return context.getBean( beanId );
[ERROR] \Work\DHIS\Source Code\dhis2.3\2.3\dhis-2\dhis-support\dhis-support-test
\src\main\java\org\hisp\dhis\DhisTest.java:[143,20] cannot access org.springfram

ework.beans.factory.HierarchicalBeanFactory
[ERROR] class file for org.springframework.beans.factory.HierarchicalBeanFactory
not found
[ERROR] if ( context.containsBean( id ) )
[ERROR] \Work\DHIS\Source Code\dhis2.3\2.3\dhis-2\dhis-support\dhis-support-test

\src\main\java\org\hisp\dhis\DhisTest.java:[145,35] cannot access org.springfram
ework.core.io.support.ResourcePatternResolver
[ERROR] class file for org.springframework.core.io.support.ResourcePatternResolv
er not found

[ERROR] Object object = context.getBean( id );
[ERROR] \Work\DHIS\Source Code\dhis2.3\2.3\dhis-2\dhis-support\dhis-support-test
\src\main\java\org\hisp\dhis\DhisTest.java:[162,72] cannot access org.springfram
ework.transaction.support.ResourceHolderSupport

[ERROR] class file for org.springframework.transaction.support.ResourceHolderSup
port not found
[ERROR] TransactionSynchronizationManager.bindResource( sessionFactory, new Sess
ionHolder( session ) );
[ERROR] \Work\DHIS\Source Code\dhis2.3\2.3\dhis-2\dhis-support\dhis-support-test

\src\main\java\org\hisp\dhis\DhisTest.java:[162,8] cannot find symbol
[ERROR] symbol : variable TransactionSynchronizationManager
[ERROR] location: class org.hisp.dhis.DhisTest
[ERROR] \Work\DHIS\Source Code\dhis2.3\2.3\dhis-2\dhis-support\dhis-support-test

\src\main\java\org\hisp\dhis\DhisTest.java:[172,54] cannot find symbol
[ERROR] symbol : variable TransactionSynchronizationManager
[ERROR] location: class org.hisp.dhis.DhisTest
[ERROR] \Work\DHIS\Source Code\dhis2.3\2.3\dhis-2\dhis-support\dhis-support-test

\src\main\java\org\hisp\dhis\DhisSpringTest.java:[94,22] cannot find symbol
[ERROR] symbol : method getBean(java.lang.String)
[ERROR] location: interface org.springframework.context.ApplicationContext
[ERROR] \Work\DHIS\Source Code\dhis2.3\2.3\dhis-2\dhis-support\dhis-support-test

\src\main\java\org\hisp\dhis\DhisSpringTest.java:[106,20] cannot find symbol
[ERROR] symbol : method containsBean(java.lang.String)
[ERROR] location: interface org.springframework.context.ApplicationContext
[ERROR] \Work\DHIS\Source Code\dhis2.3\2.3\dhis-2\dhis-support\dhis-support-test

\src\main\java\org\hisp\dhis\DhisSpringTest.java:[108,35] cannot find symbol
[ERROR] symbol : method getBean(java.lang.String)
[ERROR] location: interface org.springframework.context.ApplicationContext
[ERROR] → [Help 1]

[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea

d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command*

[ERROR] mvn -rf :dhis-support-test**Thủy