Move community resources to separate directory

Also removed copying of locales directory from pom.xml (relict of #24316)

Fixes: #26236

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
This commit is contained in:
Hynek Mlnarik 2024-01-17 15:08:03 +01:00 committed by Hynek Mlnařík
parent 62020ffc68
commit 17d0e7d166
38 changed files with 57 additions and 28 deletions

View File

@ -16,6 +16,41 @@
<name>Keycloak Account UI</name>
<description>The user inferface to manage an account on the Keycloak server.</description>
<profiles>
<profile>
<id>withTranslations</id>
<activation>
<property>
<name>!skipCommunityTranslations</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<directory>maven-resources-community</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<resources>
<resource>

View File

@ -17,25 +17,6 @@
<description>The user inferface to administrate the Keycloak server.</description>
<profiles>
<profile>
<id>withoutTranslations</id>
<activation>
<property>
<name>skipCommunityTranslations</name>
</property>
</activation>
<build>
<resources>
<resource>
<directory>dist</directory>
<targetPath>theme/keycloak.v2/admin/resources</targetPath>
<includes>
<include>locales/en/**</include>
</includes>
</resource>
</resources>
</build>
</profile>
<profile>
<id>withTranslations</id>
<activation>
@ -44,15 +25,28 @@
</property>
</activation>
<build>
<resources>
<resource>
<directory>dist</directory>
<targetPath>theme/keycloak.v2/admin/resources</targetPath>
<includes>
<include>locales/**</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<directory>maven-resources-community</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>