Merge pull request #3991 from stianst/KEYCLOAK-4615

KEYCLOAK-4615 Build demo-dist, example-dist and proxy-dist only in jb…
This commit is contained in:
Stian Thorgersen 2017-03-29 13:38:06 +02:00 committed by GitHub
commit 2d40c8d8c2
4 changed files with 327 additions and 310 deletions

View file

@ -29,199 +29,209 @@
<name>Keycloak Demo Distribution</name> <name>Keycloak Demo Distribution</name>
<description/> <description/>
<dependencies> <profiles>
<dependency> <profile>
<groupId>org.keycloak</groupId> <id>community</id>
<artifactId>keycloak-server-overlay</artifactId> <activation>
<type>zip</type> <property>
</dependency> <name>!product</name>
<dependency> </property>
<groupId>org.keycloak</groupId> </activation>
<artifactId>keycloak-wildfly-adapter-dist</artifactId> <dependencies>
<type>zip</type> <dependency>
</dependency> <groupId>org.keycloak</groupId>
<dependency> <artifactId>keycloak-server-overlay</artifactId>
<groupId>org.keycloak</groupId> <type>zip</type>
<artifactId>keycloak-saml-wildfly-adapter-dist</artifactId> </dependency>
<type>zip</type> <dependency>
</dependency> <groupId>org.keycloak</groupId>
<dependency> <artifactId>keycloak-wildfly-adapter-dist</artifactId>
<groupId>org.keycloak</groupId> <type>zip</type>
<artifactId>keycloak-examples-dist</artifactId> </dependency>
<type>zip</type> <dependency>
</dependency> <groupId>org.keycloak</groupId>
</dependencies> <artifactId>keycloak-saml-wildfly-adapter-dist</artifactId>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-examples-dist</artifactId>
<type>zip</type>
</dependency>
</dependencies>
<build> <build>
<finalName>keycloak-demo-${project.version}</finalName> <finalName>keycloak-demo-${project.version}</finalName>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId> <artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-wildfly</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration> <configuration>
<artifactItems> <skip>true</skip>
<artifactItem>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-dist</artifactId>
<type>zip</type>
<outputDirectory>${project.build.directory}/unpacked</outputDirectory>
</artifactItem>
</artifactItems>
</configuration> </configuration>
</execution> </plugin>
<execution> <plugin>
<id>unpack-server</id> <groupId>org.apache.maven.plugins</groupId>
<phase>prepare-package</phase> <artifactId>maven-dependency-plugin</artifactId>
<goals> <executions>
<goal>unpack</goal> <execution>
</goals> <id>unpack-wildfly</id>
<configuration> <phase>prepare-package</phase>
<artifactItems> <goals>
<artifactItem> <goal>unpack</goal>
<groupId>org.keycloak</groupId> </goals>
<artifactId>keycloak-server-overlay</artifactId> <configuration>
<type>zip</type> <artifactItems>
<outputDirectory>${project.build.directory}/unpacked/keycloak-server-overlay-${project.version}</outputDirectory> <artifactItem>
</artifactItem> <groupId>org.wildfly</groupId>
</artifactItems> <artifactId>wildfly-dist</artifactId>
</configuration> <type>zip</type>
</execution> <outputDirectory>${project.build.directory}/unpacked</outputDirectory>
<execution> </artifactItem>
<id>unpack-adapter</id> </artifactItems>
<phase>prepare-package</phase> </configuration>
<goals> </execution>
<goal>unpack</goal> <execution>
</goals> <id>unpack-server</id>
<configuration> <phase>prepare-package</phase>
<artifactItems> <goals>
<artifactItem> <goal>unpack</goal>
<groupId>org.keycloak</groupId> </goals>
<artifactId>keycloak-wildfly-adapter-dist</artifactId> <configuration>
<type>zip</type> <artifactItems>
<outputDirectory>${project.build.directory}/unpacked/keycloak-wildfly-adapter-${project.version}</outputDirectory> <artifactItem>
</artifactItem> <groupId>org.keycloak</groupId>
</artifactItems> <artifactId>keycloak-server-overlay</artifactId>
</configuration> <type>zip</type>
</execution> <outputDirectory>${project.build.directory}/unpacked/keycloak-server-overlay-${project.version}</outputDirectory>
<execution> </artifactItem>
<id>unpack-saml-adapter</id> </artifactItems>
<phase>prepare-package</phase> </configuration>
<goals> </execution>
<goal>unpack</goal> <execution>
</goals> <id>unpack-adapter</id>
<configuration> <phase>prepare-package</phase>
<artifactItems> <goals>
<artifactItem> <goal>unpack</goal>
<groupId>org.keycloak</groupId> </goals>
<artifactId>keycloak-saml-wildfly-adapter-dist</artifactId> <configuration>
<type>zip</type> <artifactItems>
<outputDirectory>${project.build.directory}/unpacked/keycloak-saml-wildfly-adapter-${project.version}</outputDirectory> <artifactItem>
</artifactItem> <groupId>org.keycloak</groupId>
</artifactItems> <artifactId>keycloak-wildfly-adapter-dist</artifactId>
</configuration> <type>zip</type>
</execution> <outputDirectory>${project.build.directory}/unpacked/keycloak-wildfly-adapter-${project.version}</outputDirectory>
<execution> </artifactItem>
<id>unpack-examples</id> </artifactItems>
<phase>prepare-package</phase> </configuration>
<goals> </execution>
<goal>unpack</goal> <execution>
</goals> <id>unpack-saml-adapter</id>
<configuration> <phase>prepare-package</phase>
<artifactItems> <goals>
<artifactItem> <goal>unpack</goal>
<groupId>org.keycloak</groupId> </goals>
<artifactId>keycloak-examples-dist</artifactId> <configuration>
<type>zip</type> <artifactItems>
<outputDirectory>${project.build.directory}/unpacked</outputDirectory> <artifactItem>
</artifactItem> <groupId>org.keycloak</groupId>
</artifactItems> <artifactId>keycloak-saml-wildfly-adapter-dist</artifactId>
</configuration> <type>zip</type>
</execution> <outputDirectory>${project.build.directory}/unpacked/keycloak-saml-wildfly-adapter-${project.version}</outputDirectory>
<execution> </artifactItem>
<id>unpack</id> </artifactItems>
<phase>compile</phase> </configuration>
<goals> </execution>
<goal>unpack</goal> <execution>
</goals> <id>unpack-examples</id>
<configuration> <phase>prepare-package</phase>
<artifactItems> <goals>
<artifactItem> <goal>unpack</goal>
<groupId>org.keycloak</groupId> </goals>
<artifactId>keycloak-wildfly-server-subsystem</artifactId> <configuration>
<version>${project.version}</version> <artifactItems>
<type>jar</type> <artifactItem>
<includes>default-config/*.xml</includes> <groupId>org.keycloak</groupId>
</artifactItem> <artifactId>keycloak-examples-dist</artifactId>
</artifactItems> <type>zip</type>
</configuration> <outputDirectory>${project.build.directory}/unpacked</outputDirectory>
</execution> </artifactItem>
</executions> </artifactItems>
</plugin> </configuration>
</execution>
<execution>
<id>unpack</id>
<phase>compile</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-wildfly-server-subsystem</artifactId>
<version>${project.version}</version>
<type>jar</type>
<includes>default-config/*.xml</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId> <artifactId>xml-maven-plugin</artifactId>
<version>1.0</version> <version>1.0</version>
<executions> <executions>
<execution> <execution>
<id>generate-resources</id> <id>generate-resources</id>
<phase>package</phase> <phase>package</phase>
<goals> <goals>
<goal>transform</goal> <goal>transform</goal>
</goals> </goals>
<configuration> <configuration>
<transformationSets> <transformationSets>
<transformationSet> <transformationSet>
<dir>${project.build.directory}/unpacked/wildfly-${wildfly.version}/standalone/configuration</dir> <dir>${project.build.directory}/unpacked/wildfly-${wildfly.version}/standalone/configuration</dir>
<stylesheet>src/main/xslt/standalone.xsl</stylesheet> <stylesheet>src/main/xslt/standalone.xsl</stylesheet>
<includes> <includes>
<include>standalone.xml</include> <include>standalone.xml</include>
</includes> </includes>
<outputDir>${project.build.directory}/unpacked/</outputDir> <outputDir>${project.build.directory}/unpacked/</outputDir>
</transformationSet> </transformationSet>
</transformationSets> </transformationSets>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-assembly-plugin</artifactId> <artifactId>maven-assembly-plugin</artifactId>
<executions> <executions>
<execution> <execution>
<id>assemble</id> <id>assemble</id>
<phase>package</phase> <phase>package</phase>
<goals> <goals>
<goal>single</goal> <goal>single</goal>
</goals> </goals>
<configuration> <configuration>
<descriptors> <descriptors>
<descriptor>assembly.xml</descriptor> <descriptor>assembly.xml</descriptor>
</descriptors> </descriptors>
<outputDirectory>target</outputDirectory> <outputDirectory>target</outputDirectory>
<workDirectory>target/assembly/work</workDirectory> <workDirectory>target/assembly/work</workDirectory>
<appendAssemblyId>false</appendAssemblyId> <appendAssemblyId>false</appendAssemblyId>
<tarLongFileMode>gnu</tarLongFileMode> <tarLongFileMode>gnu</tarLongFileMode>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
</profile>
</profiles>
</project> </project>

View file

@ -29,77 +29,85 @@
<name>Keycloak Examples Distribution</name> <name>Keycloak Examples Distribution</name>
<description/> <description/>
<dependencies> <profiles>
</dependencies> <profile>
<build> <id>community</id>
<finalName>keycloak-examples-${project.version}</finalName> <activation>
<plugins> <property>
<plugin> <name>!product</name>
<groupId>org.apache.maven.plugins</groupId> </property>
<artifactId>maven-deploy-plugin</artifactId> </activation>
<configuration> <build>
<skip>true</skip> <finalName>keycloak-examples-${project.version}</finalName>
</configuration> <plugins>
</plugin> <plugin>
<plugin> <groupId>org.apache.maven.plugins</groupId>
<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId>
<artifactId>maven-antrun-plugin</artifactId>
<inherited>false</inherited>
<executions>
<execution>
<id>build-example</id>
<goals>
<goal>run</goal>
</goals>
<phase>compile</phase>
<configuration> <configuration>
<target> <skip>true</skip>
<ant antfile="build.xml" inheritRefs="true">
<target name="all"/>
</ant>
</target>
</configuration> </configuration>
</execution> </plugin>
</executions> <plugin>
<dependencies> <groupId>org.apache.maven.plugins</groupId>
<dependency> <artifactId>maven-antrun-plugin</artifactId>
<groupId>ant-contrib</groupId> <inherited>false</inherited>
<artifactId>ant-contrib</artifactId> <executions>
<version>1.0b3</version> <execution>
<exclusions> <id>build-example</id>
<exclusion> <goals>
<groupId>ant</groupId> <goal>run</goal>
<artifactId>ant</artifactId> </goals>
</exclusion> <phase>compile</phase>
</exclusions> <configuration>
</dependency> <target>
</dependencies> <ant antfile="build.xml" inheritRefs="true">
</plugin> <target name="all"/>
<plugin> </ant>
<artifactId>maven-assembly-plugin</artifactId> </target>
<executions> </configuration>
<execution> </execution>
<id>assemble</id> </executions>
<phase>package</phase> <dependencies>
<goals> <dependency>
<goal>single</goal> <groupId>ant-contrib</groupId>
</goals> <artifactId>ant-contrib</artifactId>
<configuration> <version>1.0b3</version>
<descriptors> <exclusions>
<descriptor>assembly.xml</descriptor> <exclusion>
</descriptors> <groupId>ant</groupId>
<outputDirectory> <artifactId>ant</artifactId>
target </exclusion>
</outputDirectory> </exclusions>
<workDirectory> </dependency>
target/assembly/work </dependencies>
</workDirectory> </plugin>
<appendAssemblyId>false</appendAssemblyId> <plugin>
</configuration> <artifactId>maven-assembly-plugin</artifactId>
</execution> <executions>
</executions> <execution>
</plugin> <id>assemble</id>
</plugins> <phase>package</phase>
</build> <goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
<outputDirectory>
target
</outputDirectory>
<workDirectory>
target/assembly/work
</workDirectory>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> </project>

View file

@ -41,26 +41,15 @@
<profiles> <profiles>
<profile> <profile>
<id>community</id> <id>jboss-release</id>
<activation>
<property>
<name>!product</name>
</property>
</activation>
<modules> <modules>
<module>api-docs-dist</module> <module>api-docs-dist</module>
<module>downloads</module>
<module>demo-dist</module> <module>demo-dist</module>
<module>examples-dist</module> <module>examples-dist</module>
<module>proxy-dist</module> <module>proxy-dist</module>
</modules> </modules>
</profile> </profile>
<profile>
<id>jboss-release</id>
<modules>
<module>downloads</module>
</modules>
</profile>
</profiles> </profiles>
</project> </project>

View file

@ -29,45 +29,55 @@
<name>Proxy Distro</name> <name>Proxy Distro</name>
<description/> <description/>
<dependencies> <profiles>
<dependency> <profile>
<groupId>org.keycloak</groupId> <id>community</id>
<artifactId>launcher</artifactId> <activation>
</dependency> <property>
<dependency> <name>!product</name>
<groupId>org.keycloak</groupId> </property>
<artifactId>keycloak-proxy-server</artifactId> </activation>
</dependency> <dependencies>
</dependencies> <dependency>
<groupId>org.keycloak</groupId>
<artifactId>launcher</artifactId>
</dependency>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-proxy-server</artifactId>
</dependency>
</dependencies>
<build> <build>
<finalName>keycloak-proxy-${project.version}</finalName> <finalName>keycloak-proxy-${project.version}</finalName>
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-assembly-plugin</artifactId> <artifactId>maven-assembly-plugin</artifactId>
<executions> <executions>
<execution> <execution>
<id>assemble</id> <id>assemble</id>
<phase>package</phase> <phase>package</phase>
<goals> <goals>
<goal>single</goal> <goal>single</goal>
</goals> </goals>
<configuration> <configuration>
<descriptors> <descriptors>
<descriptor>assembly.xml</descriptor> <descriptor>assembly.xml</descriptor>
</descriptors> </descriptors>
<outputDirectory> <outputDirectory>
target target
</outputDirectory> </outputDirectory>
<workDirectory> <workDirectory>
target/assembly/work target/assembly/work
</workDirectory> </workDirectory>
<appendAssemblyId>false</appendAssemblyId> <appendAssemblyId>false</appendAssemblyId>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
</profile>
</profiles>
</project> </project>