javadoc:aggregate with site plugin

Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/03f07d73
Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/03f07d73
Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/03f07d73

Branch: refs/heads/0.1-rc1
Commit: 03f07d73eaaee28951cddce972c6233cdc31704b
Parents: 8517eed
Author: Steve Blackmon <sblack...@w2odigital.com>
Authored: Sat Dec 6 14:54:00 2014 -0600
Committer: Steve Blackmon <sblack...@w2odigital.com>
Committed: Sat Dec 6 14:54:00 2014 -0600

----------------------------------------------------------------------
 pom.xml | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/03f07d73/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index f9fbf9b..c691c90 100644
--- a/pom.xml
+++ b/pom.xml
@@ -101,6 +101,7 @@
         <powermock.version>1.5.6</powermock.version>
         <httpcomponents.core.version>4.3.3</httpcomponents.core.version>
         <httpcomponents.client.version>4.3.5</httpcomponents.client.version>
+        <maven.javadoc.failOnError>false</maven.javadoc.failOnError>
     </properties>
 
     <modules>
@@ -466,4 +467,66 @@
             </dependency>
         </dependencies>
     </dependencyManagement>
+
+    <profiles>
+        <profile>
+            <id>release</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-source-plugin</artifactId>
+                        <version>2.4</version>
+                        <executions>
+                            <execution>
+                                <id>attach-sources</id>
+                                <goals>
+                                    <goal>jar-no-fork</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-javadoc-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>attach-javadocs</id>
+                                <goals>
+                                    <goal>aggregate</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+            <reporting>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-javadoc-plugin</artifactId>
+                        <version>2.10.1</version>
+                        <configuration>
+                            <additionalparam>-Xdoclint:none</additionalparam>
+                            <aggregate>true</aggregate>
+                            <failOnError>false</failOnError>
+                            <minmemory>128m</minmemory>
+                            <maxmemory>1g</maxmemory>
+                        </configuration>
+                        <reportSets>
+                            <reportSet>
+                                <id>aggregate</id>
+                                <reports>
+                                    <report>javadoc-no-fork</report>
+                                    <report>test-javadoc-no-fork</report>
+                                    <report>aggregate</report>
+                                </reports>
+                            </reportSet>
+                        </reportSets>
+                    </plugin>
+                </plugins>
+            </reporting>
+        </profile>
+    </profiles>
+
 </project>

Reply via email to