Bug 49078: Add NOTICE and LICENSE to javadoc.jar

git-svn-id: https://svn.apache.org/repos/asf/logging/chainsaw/trunk@956319 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index b6f2fc5..0926df1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -181,6 +181,23 @@
               </tasks>

             </configuration>

           </execution>

+          <execution>

+            <id>javadoc.resources</id>

+            <phase>generate-sources</phase>

+            <goals>

+              <goal>run</goal>

+            </goals>

+            <configuration>

+              <tasks>

+                <copy todir="${project.build.directory}/apidocs/META-INF">

+                  <fileset dir="${basedir}">

+                    <include name="LICENSE" />

+                    <include name="NOTICE" />

+                  </fileset>

+                </copy>

+              </tasks>

+            </configuration>

+          </execution>

         </executions>

         <dependencies>

           <dependency>

@@ -189,6 +206,11 @@
             <version>1.6.5</version>

           </dependency>

           <dependency>

+            <groupId>ant</groupId>

+            <artifactId>ant</artifactId>

+            <version>1.6.5</version>

+          </dependency>

+          <dependency>

             <groupId>ant-contrib</groupId>

             <artifactId>ant-contrib</artifactId>

             <version>1.0b2</version>

@@ -217,6 +239,10 @@
       </plugin>

       <plugin>

         <artifactId>maven-javadoc-plugin</artifactId>

+        <configuration>

+          <encoding>UTF-8</encoding>

+          <docEncoding>UTF-8</docEncoding>

+        </configuration>

         <executions>

           <execution>

             <goals>

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 006830f..092da99 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -37,6 +37,7 @@
 		Added ability to remember hidden log panels.
 	</action>
 	<action dev="psmith" issue="42670" type="fix">Address memory leak when using cyclic model</action>
+       <action issue="49078" action="fix">javadoc.jar was missing NOTICE and LICENSE.</action>
     </release>
   </body>
 </document>