[NO ISSUE] Fix license generation

Change-Id: I97d005052202b3053ab0ad1be3ad2858c16757c4
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb-clients/+/15423
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>
Reviewed-by: Michael Blow <mblow@apache.org>
diff --git a/asterixdb-jdbc/asterix-jdbc-core/pom.xml b/asterixdb-jdbc/asterix-jdbc-core/pom.xml
index 59f4b11..1fc08fe 100644
--- a/asterixdb-jdbc/asterix-jdbc-core/pom.xml
+++ b/asterixdb-jdbc/asterix-jdbc-core/pom.xml
@@ -38,6 +38,7 @@
 
   <properties>
     <root.dir>${basedir}/..</root.dir>
+    <implementation.title>Apache AsterixDB JDBC Driver</implementation.title>
   </properties>
 
   <dependencies>
@@ -54,4 +55,32 @@
       <artifactId>jackson-annotations</artifactId>
     </dependency>
   </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <!-- Copy LICENSE/NOTICE -->
+            <id>copy-license</id>
+            <phase>prepare-package</phase>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <configuration>
+              <target>
+                <copy todir="${project.build.directory}/classes/META-INF" overwrite="true">
+                  <fileset dir="${root.dir}">
+                    <include name="LICENSE"/>
+                    <include name="NOTICE"/>
+                  </fileset>
+                </copy>
+              </target>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
 </project>