# Strange behavior in openmrs-sdk with adminui

**URL:** <https://talk.openmrs.org/t/strange-behavior-in-openmrs-sdk-with-adminui/10018>\
**Category:** Development\
**Tags:** openmrs-sdk, sdk\
**Created:** [February 13, 2017, 2:45am UTC](https://talk.openmrs.org/t/strange-behavior-in-openmrs-sdk-with-adminui/10018 "2017-02-13T02:45:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![isears](https://talk.openmrs.org/user_avatar/talk.openmrs.org/isears/32/8566_2.png) [@isears](https://talk.openmrs.org/u/isears)\
**Post date:** [February 13, 2017, 2:45am UTC](https://talk.openmrs.org/t/strange-behavior-in-openmrs-sdk-with-adminui/10018/1 "2017-02-13T02:45:04Z")

</div>

So I just set up an openmrs-sdk server instance to watch a local clone of the openmrs-adminui repo and I ran into the following error (server would not start): `[ERROR] Failed to execute goal com.mycila:license-maven-plugin:2.6:check (default) on project adminui-api: Resource license-header.txt not found in file system, classpath or URL: no protocol: license-header.txt -> [Help 1]`

This error occurs even though `mvn clean install` works fine in openmrs-adminui.

The workaround I found was to copy openmrs-adminui/license-header.txt to openmrs-adminui/api/license-header.txt and openmrs-adminui/omod/license-header.txt

I’m not sure this fully qualifies as a bug, but I wanted to mention it on the talk pages in case anyone else has the same problem. It seems like this issue (or one similar to it) came up at least once before: [How do I setup OpenMRS core to compile in eclipse?](https://talk.openmrs.org/t/how-do-i-setup-openmrs-core-to-compile-in-eclipse/2735/3)

Also, if anyone has a less hack-y solution definitely let me know.

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [February 13, 2017, 12:55pm UTC](https://talk.openmrs.org/t/strange-behavior-in-openmrs-sdk-with-adminui/10018/2 "2017-02-13T12:55:44Z")

</div>

@adamg @tmarzeion@raff i hope you saw this. 🙂

---

<div class="post-metadata">

**Author:** ![raff](https://talk.openmrs.org/user_avatar/talk.openmrs.org/raff/32/11894_2.png) [@raff](https://talk.openmrs.org/u/raff)\
**Post date:** [February 13, 2017, 1:41pm UTC](https://talk.openmrs.org/t/strange-behavior-in-openmrs-sdk-with-adminui/10018/3 "2017-02-13T13:41:56Z")

</div>

Does updating license-maven-plugin at [https://github.com/openmrs/openmrs-module-adminui/blob/master/pom.xml#L183](https://github.com/openmrs/openmrs-module-adminui/blob/master/pom.xml#L183) to version 3.0 fix the issue?

---

<div class="post-metadata">

**Author:** ![isears](https://talk.openmrs.org/user_avatar/talk.openmrs.org/isears/32/8566_2.png) [@isears](https://talk.openmrs.org/u/isears)\
**Post date:** [February 13, 2017, 1:54pm UTC](https://talk.openmrs.org/t/strange-behavior-in-openmrs-sdk-with-adminui/10018/4 "2017-02-13T13:54:06Z")

</div>

I’m still getting the same error after changing to version 3.0, unfortunately.

---

<div class="post-metadata">

**Author:** ![raff](https://talk.openmrs.org/user_avatar/talk.openmrs.org/raff/32/11894_2.png) [@raff](https://talk.openmrs.org/u/raff)\
**Post date:** [February 13, 2017, 2:38pm UTC](https://talk.openmrs.org/t/strange-behavior-in-openmrs-sdk-with-adminui/10018/5 "2017-02-13T14:38:32Z")

</div>

I’m not sure why the issue occurs for SDK… It seems like a bug in the license plugin. The other workaround I found was inlining the license in pom.xml, which I guess is better than duplicating the file. Committed in [https://github.com/openmrs/openmrs-module-adminui/commit/192809a805e6328fa77c3da96363d4c2cb68f6ae](https://github.com/openmrs/openmrs-module-adminui/commit/192809a805e6328fa77c3da96363d4c2cb68f6ae)

---

<div class="post-metadata">

**Author:** ![isears](https://talk.openmrs.org/user_avatar/talk.openmrs.org/isears/32/8566_2.png) [@isears](https://talk.openmrs.org/u/isears)\
**Post date:** [February 13, 2017, 3:03pm UTC](https://talk.openmrs.org/t/strange-behavior-in-openmrs-sdk-with-adminui/10018/6 "2017-02-13T15:03:06Z")

</div>

That’s working for me too. Thanks @raff!

Big fan of the sdk, by the way. Can’t imagine working on openmrs without it.

---

<div class="post-metadata">

**Author:** ![bassdeal](https://talk.openmrs.org/user_avatar/talk.openmrs.org/bassdeal/32/6676_2.png) [@bassdeal](https://talk.openmrs.org/u/bassdeal)\
**Post date:** [January 12, 2018, 3:24pm UTC](https://talk.openmrs.org/t/strange-behavior-in-openmrs-sdk-with-adminui/10018/7 "2018-01-12T15:24:59Z")

</div>

Worked for me also with an initial “mvn clean install” with a manual setup. Thanks!
