Extract the license files with maven-dependency-plugin instead of wildfly-server-provisioning-maven-plugin

This works around WFBUILD-27 aka wildfly/wildfly-build-tools#39. Once that's merged and new version is released this commit can be reverted.
This commit is contained in:
Alex Szczuczko 2017-10-19 12:11:02 -06:00 committed by Stian Thorgersen
parent 9c0ec8cb10
commit eb46f403d6
2 changed files with 28 additions and 0 deletions

View file

@ -66,6 +66,7 @@
<exclude>themes/**</exclude>
<exclude>version.txt</exclude>
<exclude>${profileExcludes}</exclude>
<exclude>docs/licenses-${product.slot}/**</exclude>
<!-- unused resteasy providers eat up memory can't remove them as it my effect RH-SSO patching
<exclude>**/jose-jwt/**</exclude>
<exclude>**/resteasy-atom-provider/**</exclude>
@ -118,6 +119,13 @@
<include>**/*</include>
</includes>
</fileSet>
<fileSet>
<directory>target/licenses/content/docs</directory>
<outputDirectory>docs</outputDirectory>
<includes>
<include>licenses-${product.slot}/**</include>
</includes>
</fileSet>
</fileSets>
<files>

View file

@ -73,6 +73,26 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-server-feature-pack-licenses</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeGroupIds>org.keycloak</includeGroupIds>
<includeArtifactIds>keycloak-server-feature-pack</includeArtifactIds>
<includeTypes>zip</includeTypes>
<includes>content/docs/licenses-${product.slot}/**</includes>
<outputDirectory>${project.build.directory}/licenses</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>