FELIX-4153 Update to latest JavaDoc Plugin 2.9.1 to include the JavaDoc vulnerability check

- Plus have default configuraiton to omit non-API packages from
  JavaDoc which is by convention all packages with impl or internal
  in them. This can easily be overwritten resetting the
  site.javadoc.exclude property.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1498273 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom/pom.xml b/pom/pom.xml
index 66536fb..778e1b2 100644
--- a/pom/pom.xml
+++ b/pom/pom.xml
@@ -44,6 +44,9 @@
         <felix.java.signature.groupId>org.codehaus.mojo.signature</felix.java.signature.groupId>
         <felix.java.signature.artifactId>java13-sun</felix.java.signature.artifactId>
         <felix.java.signature.version>1.0</felix.java.signature.version>
+        
+        <!-- Default settings for the site plugins -->
+        <site.javadoc.exclude>*.impl:*.internal:</site.javadoc.exclude>
     </properties>
 
     <issueManagement>
@@ -144,11 +147,23 @@
                     <artifactId>apache-rat-plugin</artifactId>
                     <version>0.7</version>
                 </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-javadoc-plugin</artifactId>
+                    <version>2.9.1</version>
+                </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-javadoc-plugin</artifactId>
+                <configuration>
+                    <excludePackageNames>${site.javadoc.exclude}</excludePackageNames>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <configuration>
                     <source>${felix.build.source}</source>