diff --git a/libraries/examples/js-example/pom.xml b/libraries/examples/js-example/pom.xml
index 44b53e93837..205b6f76091 100644
--- a/libraries/examples/js-example/pom.xml
+++ b/libraries/examples/js-example/pom.xml
@@ -47,6 +47,52 @@
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ main sources
+
+ jar
+
+
+
+ test sources
+
+ test-jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ 2.6
+
+
+ main jar
+
+ jar
+
+
+ ${project.basedir}/target/js
+
+
+
+ test jar
+
+ test-jar
+
+
+ ${project.basedir}/target/test-js
+
+
+
+
+ true
+
+
maven-deploy-plugin
diff --git a/libraries/examples/kotlin-js-library-example/pom.xml b/libraries/examples/kotlin-js-library-example/pom.xml
index 6b63961f6ef..6d727638ece 100644
--- a/libraries/examples/kotlin-js-library-example/pom.xml
+++ b/libraries/examples/kotlin-js-library-example/pom.xml
@@ -5,7 +5,6 @@
4.0.0
-
org.jetbrains.kotlin
kotlin-project
@@ -27,12 +26,6 @@
src/main/kotlin
src/test/kotlin
-
-
- src/main/kotlin
-
-
-
org.codehaus.mojo
@@ -59,8 +52,6 @@
${project.version}
- js
- compile
js
@@ -71,19 +62,13 @@
-
- maven-resources-plugin
-
-
org.apache.maven.plugins
maven-jar-plugin
true
- ${project.build.outputDirectory}
- ${project.artifactId}.js
- **/*.kt
+ *.js
@@ -98,8 +83,13 @@
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
maven-deploy-plugin
true