move LICENSE and NOTICE to distribution's root and remove META-INF
diff --git a/pom.xml b/pom.xml
index 9a5f61e..1d48fdc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -520,6 +520,26 @@
<javase>1.8</javase>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <target>
+ <!-- see maven-remote-resources-plugin in Sling parent -->
+ <move file="${project.build.directory}/assembly/META-INF/LICENSE" tofile="${project.build.directory}/assembly/LICENSE"/>
+ <move file="${project.build.directory}/assembly/META-INF/NOTICE" tofile="${project.build.directory}/assembly/NOTICE"/>
+ <delete dir="${project.build.directory}/assembly/META-INF"/>
+ </target>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>