# \[Dhis2\] getting maven build errors

**URL:** <https://community.dhis2.org/t/dhis2-getting-maven-build-errors/2948>\
**Category:** Support - Assistance technique\
**Created:** [20 September 2015 14:18 UTC](https://community.dhis2.org/t/dhis2-getting-maven-build-errors/2948 "2015-09-20T14:18:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![haider\_iqbal](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/h/a3d4f5/32.png) [@haider\_iqbal](https://community.dhis2.org/u/haider_iqbal)\
**Post date:** [20 September 2015 14:18 UTC](https://community.dhis2.org/t/dhis2-getting-maven-build-errors/2948/1 "2015-09-20T14:18:00Z")

</div>

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

[log.txt](https://dhis2.b-cdn.net/uploads/default/original/1X/9722a862c33202be66c6968816b734b64f257873.txt) (18.7 KB)

---

<div class="post-metadata">

**Author:** ![Knut\_Staring](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/knut_staring/32/32549_2.png) [@Knut\_Staring](https://community.dhis2.org/u/Knut_Staring)\
**Post date:** [20 September 2015 14:31 UTC](https://community.dhis2.org/t/dhis2-getting-maven-build-errors/2948/2 "2015-09-20T14:31:13Z")

</div>

You could try to just skp the tests:

mvn clean install -DskipTests=true

as it says in the instructions:

[https://www.dhis2.org/development](https://www.dhis2.org/development)

Knut

> **···**
>
> On Sunday, September 20, 2015, haider iqbal [haider.tiger9@gmail.com](mailto:haider.tiger9@gmail.com) wrote:
> 
> > 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
> 
> –  
> Knut Staring
> 
> Dept. of Informatics, University of Oslo
> 
> Norway: +4791880522
> 
> Skype: knutstar
> 
> [http://dhis2.org](http://dhis2.org)

---

<div class="post-metadata">

**Author:** ![morten](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/morten/32/36295_2.png) [@morten](https://community.dhis2.org/u/morten)\
**Post date:** [21 September 2015 02:52 UTC](https://community.dhis2.org/t/dhis2-getting-maven-build-errors/2948/3 "2015-09-21T02:52:07Z")

</div>

Hi

The test failures are due to you current local timezone (Asia/Karachi). Sorry, but as Knut says… please use -DskipTests=true for now… you might also have issues running DHIS 2, some timezones have been known to be incompatible… we fix it when we see it, but for now… maybe you could adjust your time zone. I will look into it, but it could take a few days.

> **···**
>
> On Sun, Sep 20, 2015 at 9:31 PM, Knut Staring [knutst@gmail.com](mailto:knutst@gmail.com) wrote:
> 
> > You could try to just skp the tests:  
> > mvn clean install -DskipTests=true
> > 
> > as it says in the instructions:
> 
> > [https://www.dhis2.org/development](https://www.dhis2.org/development)
> 
> > 
> 
> > Knut
> > 
> > On Sunday, September 20, 2015, haider iqbal [haider.tiger9@gmail.com](mailto:haider.tiger9@gmail.com) wrote:
> > 
> > > 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
> 
> > Knut Staring
> 
> > Dept. of Informatics, University of Oslo
> 
> > Norway: +4791880522
> 
> > Skype: knutstar
> 
> > [http://dhis2.org](http://dhis2.org)
> 
> > –
> > 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > Post to : [dhis2-users@lists.launchpad.net](mailto:dhis2-users@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> –  
> Morten

---

<div class="post-metadata">

**Author:** ![haider\_iqbal](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/h/a3d4f5/32.png) [@haider\_iqbal](https://community.dhis2.org/u/haider_iqbal)\
**Post date:** [21 September 2015 04:23 UTC](https://community.dhis2.org/t/dhis2-getting-maven-build-errors/2948/4 "2015-09-21T04:23:33Z")

</div>

Thank you for your support. I build the code by skipping tests and it was successfully built.

Hiader Iqbal

> **···**
>
> –  
> Morten
> 
> On Sun, Sep 20, 2015 at 9:31 PM, Knut Staring [knutst@gmail.com](mailto:knutst@gmail.com) wrote:
> 
> > You could try to just skp the tests:  
> > mvn clean install -DskipTests=true
> > 
> > as it says in the instructions:
> 
> > [https://www.dhis2.org/development](https://www.dhis2.org/development)
> 
> > 
> 
> > Knut
> > 
> > On Sunday, September 20, 2015, haider iqbal [haider.tiger9@gmail.com](mailto:haider.tiger9@gmail.com) wrote:
> > 
> > > 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
> 
> > Knut Staring
> 
> > Dept. of Informatics, University of Oslo
> 
> > Norway: +4791880522
> 
> > Skype: knutstar
> 
> > [http://dhis2.org](http://dhis2.org)
> 
> > –
> > 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > Post to : [dhis2-users@lists.launchpad.net](mailto:dhis2-users@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)

---

<div class="post-metadata">

**Author:** ![jason](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/jason/32/32739_2.png) [@jason](https://community.dhis2.org/u/jason)\
**Post date:** [21 September 2015 06:54 UTC](https://community.dhis2.org/t/dhis2-getting-maven-build-errors/2948/5 "2015-09-21T06:54:31Z")

</div>

Hi Haider,

You can also always get a copy of the latest builds from the continuous integration server here

[https://apps.dhis2.org/ci/](https://apps.dhis2.org/ci/)

Unless you have made local changes, this may be easier.

Regards,

Jason

> **···**
>
> On Mon, Sep 21, 2015 at 6:23 AM, haider iqbal [haider.tiger9@gmail.com](mailto:haider.tiger9@gmail.com) wrote:
> 
> > Thank you for your support. I build the code by skipping tests and it was successfully built.
> 
> > Hiader Iqbal
> 
> > On Sep 21, 2015 7:52 AM, “Morten Olav Hansen” [mortenoh@gmail.com](mailto:mortenoh@gmail.com) wrote:
> > 
> > > Hi
> 
> > > The test failures are due to you current local timezone (Asia/Karachi). Sorry, but as Knut says… please use -DskipTests=true for now… you might also have issues running DHIS 2, some timezones have been known to be incompatible… we fix it when we see it, but for now… maybe you could adjust your time zone. I will look into it, but it could take a few days.
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > Post to : [dhis2-users@lists.launchpad.net](mailto:dhis2-users@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> –
> 
> –  
> Morten
> 
> On Sun, Sep 20, 2015 at 9:31 PM, Knut Staring [knutst@gmail.com](mailto:knutst@gmail.com) wrote:
> 
> > You could try to just skp the tests:  
> > mvn clean install -DskipTests=true
> > 
> > as it says in the instructions:
> 
> > [https://www.dhis2.org/development](https://www.dhis2.org/development)
> 
> > 
> 
> > Knut
> > 
> > On Sunday, September 20, 2015, haider iqbal [haider.tiger9@gmail.com](mailto:haider.tiger9@gmail.com) wrote:
> > 
> > > 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
> 
> > Knut Staring
> 
> > Dept. of Informatics, University of Oslo
> 
> > Norway: +4791880522
> 
> > Skype: knutstar
> 
> > [http://dhis2.org](http://dhis2.org)
> 
> > –
> > 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > Post to : [dhis2-users@lists.launchpad.net](mailto:dhis2-users@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-users](https://launchpad.net/~dhis2-users)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> Jason P. Pickering  
> email: [jason.p.pickering@gmail.com](mailto:jason.p.pickering@gmail.com)  
> tel:+46764147049
