diff --git a/libraries/tools/kotlin-osgi-bundle/pom.xml b/libraries/tools/kotlin-osgi-bundle/pom.xml
index ec49ace139233c..7209eb40576b3d 100644
--- a/libraries/tools/kotlin-osgi-bundle/pom.xml
+++ b/libraries/tools/kotlin-osgi-bundle/pom.xml
@@ -45,6 +45,19 @@
**/MANIFEST.MF
+
+ unpack-sources
+ generate-sources
+
+ unpack-dependencies
+
+
+ sources
+ compile
+ ${project.parent.groupId}
+ ${project.build.directory}/sources
+
+
@@ -92,9 +105,8 @@
jar
- false
sources
- ${basedir}/sources
+ ${project.build.directory}/sources