Legal files for common (#4360)

Signed-off-by: Maxim Nesen <maxim.nesen@oracle.com>
diff --git a/pom.xml b/pom.xml
index a35e5cc..8350ba6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -333,6 +333,7 @@
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-resources-plugin</artifactId>
                     <version>2.6</version>
+                    <extensions>true</extensions>
                     <!-- Add legal information, NOTICE.md and LINCENSE.md to jars -->
                     <executions>
                         <execution>
@@ -801,7 +802,7 @@
                     <execution>
                         <id>directories</id>
                         <goals>
-                            <goal>execution-root</goal>
+                            <goal>highest-basedir</goal>
                         </goals>
                         <phase>initialize</phase>
                         <configuration>