Added configuration for client+base javadoc generation
authorzev <zev@netxms.org>
Mon, 30 Oct 2017 15:54:47 +0000 (17:54 +0200)
committerzev <zev@netxms.org>
Mon, 30 Oct 2017 15:54:58 +0000 (17:54 +0200)
src/client/java/netxms-client/pom.xml
src/libnxjava/java/base/netxms-base/pom.xml

index a4e558c..08fe20a 100644 (file)
            </execution>
         </executions>
       </plugin>
+
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-javadoc-plugin</artifactId>
         <version>2.10.4</version>
         <executions>
           <execution>
-            <id>attach-javadocs</id>
+            <id>attach-javadocs</id>         
             <goals>
               <goal>jar</goal>
             </goals>
           </execution>
         </executions>
       </plugin>
+
       <plugin>
         <groupId>org.sonatype.plugins</groupId>
         <artifactId>nexus-staging-maven-plugin</artifactId>
 
   <reporting>
     <plugins>
+
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-javadoc-plugin</artifactId>
         <version>2.10.4</version>
+         <configuration>
+           <includeDependencySources>true</includeDependencySources>
+           <!--<sourcepath>../../../java/client/mobile-agent:./:../../../libnxjava/java/base/netxms-base/src/main/java</sourcepath>-->
+           <dependencySourceExcludes>
+             <dependencySourceExclude>org.simpleframework:*</dependencySourceExclude>
+             <dependencySourceExclude>junit:*</dependencySourceExclude>
+             <dependencySourceExclude>org.junit:*</dependencySourceExclude>
+           </dependencySourceExcludes>
+         </configuration>
       </plugin>
     </plugins>
   </reporting>
index a669fa5..0d19051 100644 (file)
         <executions>
           <execution>
             <id>attach-sources</id>
+            <phase>package</phase>
             <goals>
               <goal>jar-no-fork</goal>
             </goals>