Attach aggragate javadocs to aggragator
[yangtools.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 0d0f831d0b8b4cf9da029d656e2c181009449de0..3c34cdc99620515e71eb6bfd90094d8a295136c6 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     </modules>
 
     <profiles>
+        <profile>
+            <id>aggregate-javadoc</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-javadoc-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>aggregate</id>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>aggregate-jar</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
         <profile>
             <id>karaf</id>
             <activation>