Bug 49078: javadoc.jar was missing NOTICE and LICENSE

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/companions/receivers/trunk@956311 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index f80477e..c5876f9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -159,6 +159,23 @@
               <goal>run</goal>
             </goals>
           </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>
@@ -199,6 +216,7 @@
         <artifactId>maven-javadoc-plugin</artifactId>
         <configuration>
           <encoding>UTF-8</encoding>
+          <docEncoding>UTF-8</docEncoding>
         </configuration>
         <executions>
             <execution>
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 9f5c853..03388cc 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -25,6 +25,7 @@
         Initial release of receivers companion backported from log4j 1.3.
       </action>
       <action issue="42171" type="fix">SocketHubReceiver duplicates messages</action>
+      <action issue="49078" action="fix">javadoc.jar was missing NOTICE and LICENSE.</action>
     </release>
   </body>
 </document>