add javadoc to the artifact

Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
diff --git a/pom.xml b/pom.xml
index c526c87..0bda5d4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -82,6 +82,11 @@
                     <artifactId>tycho-source-plugin</artifactId>
                     <version>${tycho.version}</version>
                 </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-javadoc-plugin</artifactId>
+                    <version>3.0.0</version>
+                </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
@@ -204,6 +209,17 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-javadoc-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
         <sourceDirectory>./src</sourceDirectory>
         <resources>
diff --git a/uploadToNexus.xml b/uploadToNexus.xml
index ac8cf30..4d938bc 100644
--- a/uploadToNexus.xml
+++ b/uploadToNexus.xml
@@ -201,8 +201,8 @@
         <say message="${publish.message}"                                                                             if="publish.ok"/>
      </target>
 
-    <!-- Uploads a single artifact & source to maven repository -->
-    <target name="upload-artifact" depends="verify-publish, prepare-pom, upload-snapshot, upload-artifact-staging, upload-source-staging">
+    <!-- Uploads a single artifact, source & javadoc to maven repository -->
+    <target name="upload-artifact" depends="verify-publish, prepare-pom, upload-snapshot, upload-artifact-staging, upload-source-staging, upload-javadoc-staging">
         <!-- cleanup -->
         <delete file="pom.xml"/>
     </target>