# Kotlin, OSGI and Javadoc

**URL:** <https://discuss.kotlinlang.org/t/kotlin-osgi-and-javadoc/10527>\
**Category:** Support\
**Created:** [November 26, 2018, 2:12pm UTC](https://discuss.kotlinlang.org/t/kotlin-osgi-and-javadoc/10527 "2018-11-26T14:12:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![r\_aubel](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@r\_aubel](https://discuss.kotlinlang.org/u/r_aubel)\
**Post date:** [November 26, 2018, 2:12pm UTC](https://discuss.kotlinlang.org/t/kotlin-osgi-and-javadoc/10527/1 "2018-11-26T14:12:48Z")

</div>

I’m using Kotlin in an OSGI environment, so I use kotlin-osgi-bundle for this purpose.

Unfortunately, when I get the bundle from Maven (any recent version of Kotlin), the source and javadoc jars are empty. Thus, I cannot access the Kotlin Javadoc from IntelliJ.

Is it possible to build those artifacts along with the bundle?  
(I’m not sure if I should ask to Maven team or Kotlin team.)

Thanks in advance for any reply.  
Rémi

---

<div class="post-metadata">

**Author:** ![cretz](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@cretz](https://discuss.kotlinlang.org/u/cretz)\
**Post date:** [November 26, 2018, 9:31pm UTC](https://discuss.kotlinlang.org/t/kotlin-osgi-and-javadoc/10527/2 "2018-11-26T21:31:39Z")

</div>

IME, Kotlin published javadoc JARs are often empty because the JAR is required for Sonatype Nexus publish validation and Dokka is undermaintained. I’d say open a YouTrack issue pointing to [the empty javadoc JAR](https://github.com/JetBrains/kotlin/blob/4abcd9a053fa192c69574ca05027cc3a39944b9c/libraries/tools/kotlin-osgi-bundle/pom.xml#L88-L99).

---

<div class="post-metadata">

**Author:** ![ilya.gorbunov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/ilya.gorbunov/32/1645_2.png) [@ilya.gorbunov](https://discuss.kotlinlang.org/u/ilya.gorbunov)\
**Post date:** [November 26, 2018, 10:34pm UTC](https://discuss.kotlinlang.org/t/kotlin-osgi-and-javadoc/10527/3 "2018-11-26T22:34:41Z")

</div>

I think it should be possible to merge the sources of `kotlin-stdlib` and `kotlin-reflect` and provide the result as the sources of `kotlin-osgi-bundle`.  
Regarding the javadoc jars — we’re not convinced yet that they gain a lot of value.

---

<div class="post-metadata">

**Author:** ![r\_aubel](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@r\_aubel](https://discuss.kotlinlang.org/u/r_aubel)\
**Post date:** [November 27, 2018, 8:16am UTC](https://discuss.kotlinlang.org/t/kotlin-osgi-and-javadoc/10527/4 "2018-11-27T08:16:19Z")

</div>

Thank you for your reply.  
In fact, I’m more interested in the sources, since IntelliJ is able to display the Javadoc from the sources.

---

<div class="post-metadata">

**Author:** ![Alexey.Belkov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/alexey.belkov/32/5215_2.png) [@Alexey.Belkov](https://discuss.kotlinlang.org/u/Alexey.Belkov)\
**Post date:** [November 28, 2018, 3:21pm UTC](https://discuss.kotlinlang.org/t/kotlin-osgi-and-javadoc/10527/5 "2018-11-28T15:21:26Z")

</div>

Related issue: [https://youtrack.jetbrains.com/issue/KT-28492](https://youtrack.jetbrains.com/issue/KT-28492)
