# Current openhab-addons mvn build fails

**URL:** <https://community.openhab.org/t/current-openhab-addons-mvn-build-fails/82939>\
**Category:** Development\
**Tags:** windows\
**Created:** [October 3, 2019, 10:13pm UTC](https://community.openhab.org/t/current-openhab-addons-mvn-build-fails/82939 "2019-10-03T22:13:04Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jochen\_Bauer](https://community.openhab.org/user_avatar/community.openhab.org/jochen_bauer/32/71485_2.png) [@Jochen\_Bauer](https://community.openhab.org/u/Jochen_Bauer)\
**Post date:** [October 3, 2019, 10:13pm UTC](https://community.openhab.org/t/current-openhab-addons-mvn-build-fails/82939/1 "2019-10-03T22:13:04Z")

</div>

Dear Community,

I tried to build openhab2-addons directory by using “mvn clean install -e -X” and got an error on the first possibility, see attached file. What went wrong?

Best regards,  
Jochen

 ![openhab-25M3-error-mvn](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/c/bc57c8dc2d63171437fd246e6cc667b6de6f5bac.png)

---

<div class="post-metadata">

**Author:** ![wborn](https://community.openhab.org/user_avatar/community.openhab.org/wborn/32/55946_2.png) [@wborn](https://community.openhab.org/u/wborn)\
**Post date:** [October 3, 2019, 10:23pm UTC](https://community.openhab.org/t/current-openhab-addons-mvn-build-fails/82939/2 "2019-10-03T22:23:42Z")

</div>

Looks like you’ve typed “lean” instead of “clean”?

---

<div class="post-metadata">

**Author:** ![Jochen\_Bauer](https://community.openhab.org/user_avatar/community.openhab.org/jochen_bauer/32/71485_2.png) [@Jochen\_Bauer](https://community.openhab.org/u/Jochen_Bauer)\
**Post date:** [October 3, 2019, 10:29pm UTC](https://community.openhab.org/t/current-openhab-addons-mvn-build-fails/82939/3 "2019-10-03T22:29:07Z")

</div>

Oh dear - it is late, indeed it’s been a typo.

---

<div class="post-metadata">

**Author:** ![Jochen\_Bauer](https://community.openhab.org/user_avatar/community.openhab.org/jochen_bauer/32/71485_2.png) [@Jochen\_Bauer](https://community.openhab.org/u/Jochen_Bauer)\
**Post date:** [October 3, 2019, 10:37pm UTC](https://community.openhab.org/t/current-openhab-addons-mvn-build-fails/82939/4 "2019-10-03T22:37:08Z")

</div>

So now, the command was correct, but the build failed, anyway.

See my picture below

 ![openhab-25M3-error-mvn-2](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/a/e/ae1c3ca77641fe08a617ab67dd636951b59a6280.png)

---

<div class="post-metadata">

**Author:** ![wborn](https://community.openhab.org/user_avatar/community.openhab.org/wborn/32/55946_2.png) [@wborn](https://community.openhab.org/u/wborn)\
**Post date:** [October 4, 2019, 3:33pm UTC](https://community.openhab.org/t/current-openhab-addons-mvn-build-fails/82939/5 "2019-10-04T15:33:56Z")

</div>

It fails to download because it cannot connect to [https://jcenter.bintray.com](https://jcenter.bintray.com/). Is your DNS working properly and can you open it in your browser? Maybe you have a firewall or antivirus solution that is blocking Java from accessing the Internet?

---

<div class="post-metadata">

**Author:** ![Jochen\_Bauer](https://community.openhab.org/user_avatar/community.openhab.org/jochen_bauer/32/71485_2.png) [@Jochen\_Bauer](https://community.openhab.org/u/Jochen_Bauer)\
**Post date:** [October 5, 2019, 9:13am UTC](https://community.openhab.org/t/current-openhab-addons-mvn-build-fails/82939/6 "2019-10-05T09:13:05Z")

</div>

Thanks - now I was able to run the addons build successfully until the transformation service. That took almost 6 hours (called “mvn clean install -e -X”)! Fur further information see my picture below, it seems one of the tests was broken.

 ![openhab-25M3-error-mvn-3](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/7/9/799e3e1f941aa1ee5d7c7d1b89b2c26f76215aed.png)

---

<div class="post-metadata">

**Author:** ![wborn](https://community.openhab.org/user_avatar/community.openhab.org/wborn/32/55946_2.png) [@wborn](https://community.openhab.org/u/wborn)\
**Post date:** [October 5, 2019, 9:57am UTC](https://community.openhab.org/t/current-openhab-addons-mvn-build-fails/82939/7 "2019-10-05T09:57:54Z")

</div>

There is some progress here! 🙂

The first build might take a while because it will download a lot of dependencies from the Internet. After that most of them will be cached in your local Maven repository `~/.m2/repository`

I rarely build using `-e -X` because it will generate a lot of debug logging that further slows down the build.

It’s a known issue on Windows that those `MapTransformationServiceTest` fail see [openhab2-addons#5854](https://github.com/openhab/openhab2-addons/issues/5854). A workaround might be to skip test execution with a full build by adding the following build option `-DskipTests=true`

To furthermore speed up your build you can disable static analysis by adding `-DskipChecks` see also the [Developer docs](https://www.openhab.org/docs/developer/#develop-a-new-binding).

Usually I add both options on full builds and omit them when building individual projects to have in depth reporting/testing. Only when I do something else I run full builds with all checks and tests. That’s [Jenkins](https://ci.openhab.org) job. 😉

---

<div class="post-metadata">

**Author:** ![Jochen\_Bauer](https://community.openhab.org/user_avatar/community.openhab.org/jochen_bauer/32/71485_2.png) [@Jochen\_Bauer](https://community.openhab.org/u/Jochen_Bauer)\
**Post date:** [October 5, 2019, 10:46am UTC](https://community.openhab.org/t/current-openhab-addons-mvn-build-fails/82939/8 "2019-10-05T10:46:03Z")

</div>

Build successful (in 30 minutes …): “mvn clean install -DskipTests=true -DskipChecks=true”

---

<div class="post-metadata">

**Author:** ![wborn](https://community.openhab.org/user_avatar/community.openhab.org/wborn/32/55946_2.png) [@wborn](https://community.openhab.org/u/wborn)\
**Post date:** [October 20, 2019, 6:53am UTC](https://community.openhab.org/t/current-openhab-addons-mvn-build-fails/82939/9 "2019-10-20T06:53:53Z")

</div>

The failing `MapTransformationServiceTest` on Windows should be fixed soon! 🙂

[https://github.com/openhab/openhab2-addons/pull/6252](https://github.com/openhab/openhab2-addons/pull/6252)

---

<div class="post-metadata">

**Author:** ![Jincheng\_Wang](https://community.openhab.org/user_avatar/community.openhab.org/jincheng_wang/32/44683_2.png) [@Jincheng\_Wang](https://community.openhab.org/u/Jincheng_Wang)\
**Post date:** [November 12, 2019, 1:17pm UTC](https://community.openhab.org/t/current-openhab-addons-mvn-build-fails/82939/10 "2019-11-12T13:17:00Z")

</div>

Could you please tell me what the result is for the build? Is a kar file or what?
