2015-07-17 11:45:43 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
2017-03-23 10:59:19 +00:00
|
|
|
<parent>
|
|
|
|
<artifactId>keycloak-parent</artifactId>
|
|
|
|
<groupId>org.keycloak</groupId>
|
2019-03-06 14:50:54 +00:00
|
|
|
<version>6.0.0-SNAPSHOT</version>
|
2017-03-23 10:59:19 +00:00
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2015-07-17 11:45:43 +00:00
|
|
|
|
2017-03-23 10:59:19 +00:00
|
|
|
<artifactId>keycloak-themes</artifactId>
|
|
|
|
<name>Keycloak Themes</name>
|
|
|
|
<description/>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>community</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>!product</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
</resource>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources-community</directory>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>product</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>product</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
</resource>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources-product</directory>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
2017-12-13 21:45:56 +00:00
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**/keycloak-preview/**</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
2017-03-23 10:59:19 +00:00
|
|
|
</build>
|
|
|
|
</profile>
|
2017-09-18 19:32:43 +00:00
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>account2</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.github.eirslett</groupId>
|
|
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
|
|
<executions>
|
2017-09-19 13:53:22 +00:00
|
|
|
<execution>
|
2018-05-03 13:29:13 +00:00
|
|
|
<id>install node and npm</id>
|
2017-09-19 13:53:22 +00:00
|
|
|
<goals>
|
2018-05-03 13:29:13 +00:00
|
|
|
<goal>install-node-and-npm</goal>
|
2017-09-19 13:53:22 +00:00
|
|
|
</goals>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<configuration>
|
2018-05-03 13:29:13 +00:00
|
|
|
<nodeVersion>v8.9.4</nodeVersion>
|
2017-09-19 13:53:22 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-09-18 19:32:43 +00:00
|
|
|
<execution>
|
2018-05-03 13:29:13 +00:00
|
|
|
<id>npm install</id>
|
2017-09-18 19:32:43 +00:00
|
|
|
<goals>
|
2018-05-03 13:29:13 +00:00
|
|
|
<goal>npm</goal>
|
2017-09-18 19:32:43 +00:00
|
|
|
</goals>
|
2018-05-03 13:29:13 +00:00
|
|
|
<phase>generate-resources</phase>
|
2017-09-18 19:32:43 +00:00
|
|
|
<configuration>
|
2018-05-03 13:29:13 +00:00
|
|
|
<arguments>install</arguments>
|
2017-09-18 19:32:43 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>compile typescript</id>
|
|
|
|
<goals>
|
2018-05-03 13:29:13 +00:00
|
|
|
<goal>npm</goal>
|
2017-09-18 19:32:43 +00:00
|
|
|
</goals>
|
|
|
|
<phase>compile</phase>
|
|
|
|
<configuration>
|
|
|
|
<arguments>run build</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
2018-05-03 13:29:13 +00:00
|
|
|
<id>npm remove dev dependencies production=true</id>
|
2017-09-18 19:32:43 +00:00
|
|
|
<goals>
|
2018-05-03 13:29:13 +00:00
|
|
|
<goal>npm</goal>
|
2017-09-18 19:32:43 +00:00
|
|
|
</goals>
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
<configuration>
|
2018-05-03 13:29:13 +00:00
|
|
|
<arguments>install --production=true --no-package-lock</arguments>
|
2017-09-18 19:32:43 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2018-05-03 13:29:13 +00:00
|
|
|
<configuration>
|
|
|
|
<workingDirectory>src/main/resources/theme/keycloak-preview/account/resources</workingDirectory>
|
|
|
|
</configuration>
|
2017-09-18 19:32:43 +00:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<filesets>
|
|
|
|
<fileset>
|
|
|
|
<directory>src/main/resources/theme/keycloak-preview/account/resources/node_modules</directory>
|
|
|
|
</fileset>
|
2017-09-19 13:53:22 +00:00
|
|
|
<fileset>
|
|
|
|
<directory>src/main/resources/theme/keycloak-preview/account/resources/node</directory>
|
|
|
|
</fileset>
|
2017-09-18 19:32:43 +00:00
|
|
|
</filesets>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2018-01-26 08:15:21 +00:00
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>npm-update</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<!-- Clean downloaded packages from NPM -->
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<filesets>
|
|
|
|
<fileset>
|
|
|
|
<directory>src/main/resources/node_modules</directory>
|
|
|
|
</fileset>
|
|
|
|
<fileset>
|
|
|
|
<directory>src/main/resources/theme/keycloak/common/resources/node_modules</directory>
|
|
|
|
</fileset>
|
|
|
|
</filesets>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<!-- Install NPM and download packages -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.github.eirslett</groupId>
|
|
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
|
|
<version>1.6</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>install-node-and-npm</id>
|
|
|
|
<goals>
|
|
|
|
<goal>install-node-and-npm</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>npm-install</id>
|
|
|
|
<goals>
|
|
|
|
<goal>npm</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<arguments>install</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<nodeVersion>v8.9.4</nodeVersion>
|
|
|
|
<workingDirectory>src/main/resources</workingDirectory>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<!-- Copy files from NPM packages -->
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<version>3.0.2</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>copy-resources</id>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>src/main/resources/theme/keycloak/common/resources/node_modules</outputDirectory>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/node_modules</directory>
|
|
|
|
<excludes>
|
|
|
|
<exclude>minimist/**</exclude>
|
|
|
|
<exclude>mkdirp/**</exclude>
|
|
|
|
<exclude>**/*.json</exclude>
|
|
|
|
<exclude>**/*.json</exclude>
|
|
|
|
<exclude>**/*.markdown</exclude>
|
|
|
|
<exclude>**/*.swf</exclude>
|
|
|
|
<exclude>**/*.sh</exclude>
|
|
|
|
<exclude>**/.bin/**</exclude>
|
|
|
|
<exclude>**/bin/**</exclude>
|
|
|
|
<exclude>**/build/**</exclude>
|
|
|
|
<exclude>**/docs/**</exclude>
|
|
|
|
<exclude>**/demo/**</exclude>
|
|
|
|
<exclude>**/devtools/**</exclude>
|
|
|
|
<exclude>**/example/**</exclude>
|
|
|
|
<exclude>**/examples/**</exclude>
|
|
|
|
<exclude>**/grunt/**</exclude>
|
|
|
|
<exclude>**/less/**</exclude>
|
2018-02-07 13:19:16 +00:00
|
|
|
<exclude>**/node_modules/**</exclude>
|
|
|
|
<exclude>**/sass/**</exclude>
|
2018-01-26 08:15:21 +00:00
|
|
|
<exclude>**/scss/**</exclude>
|
|
|
|
<exclude>**/src/**</exclude>
|
|
|
|
<exclude>**/test/**</exclude>
|
2018-02-07 13:19:16 +00:00
|
|
|
<exclude>**/tests/**</exclude>
|
2018-03-21 09:47:33 +00:00
|
|
|
<exclude>**/_config.yml</exclude>
|
2018-01-26 08:15:21 +00:00
|
|
|
<exclude>**/api.md</exclude>
|
|
|
|
<exclude>**/AUTHORS.txt</exclude>
|
|
|
|
<exclude>**/CHANGELOG.md</exclude>
|
|
|
|
<exclude>**/CONTRIBUTING.md</exclude>
|
|
|
|
<exclude>**/HELP-US-OUT.txt</exclude>
|
|
|
|
<exclude>**/README.md</exclude>
|
|
|
|
<exclude>**/Gruntfile.js</exclude>
|
2018-03-21 09:47:33 +00:00
|
|
|
<exclude>**/Gemfile*</exclude>
|
2018-01-26 08:15:21 +00:00
|
|
|
<exclude>**/index.js</exclude>
|
|
|
|
<exclude>**/.*</exclude>
|
|
|
|
</excludes>
|
|
|
|
</resource>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/node_modules</directory>
|
|
|
|
<includes>
|
|
|
|
<include>angular-ui-select2/src/select2.js</include>
|
|
|
|
<include>filesaver/src/Filesaver.js</include>
|
|
|
|
<include>filesaver/src/changename.js</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2017-03-23 10:59:19 +00:00
|
|
|
</profiles>
|
2015-07-17 11:45:43 +00:00
|
|
|
|
|
|
|
</project>
|