assembly.xml

85 lines | 3.542 kB Blame History Raw Download
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ /*
  ~ * JBoss, Home of Professional Open Source.
  ~ * Copyright 2014, Red Hat, Inc., and individual contributors
  ~ * as indicated by the @author tags. See the copyright.txt file in the
  ~ * distribution for a full listing of individual contributors.
  ~ *
  ~ * This is free software; you can redistribute it and/or modify it
  ~ * under the terms of the GNU Lesser General Public License as
  ~ * published by the Free Software Foundation; either version 2.1 of
  ~ * the License, or (at your option) any later version.
  ~ *
  ~ * This software is distributed in the hope that it will be useful,
  ~ * but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  ~ * Lesser General Public License for more details.
  ~ *
  ~ * You should have received a copy of the GNU Lesser General Public
  ~ * License along with this software; if not, write to the Free
  ~ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  ~ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  ~ */
  -->

<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
    <id>eap6-server-dist</id>

    <formats>
        <format>zip</format>
        <format>tar.gz</format>
    </formats>

    <includeBaseDirectory>false</includeBaseDirectory>

    <fileSets>
        <fileSet>
            <directory>${project.build.directory}/unpacked/jboss-eap-6.4</directory>
            <outputDirectory>${product.name}-${product.version}</outputDirectory>
            <excludes>
                <exclude>standalone/configuration/standalone.xml</exclude>
                <exclude>modules/system/layers/base/org/jboss/as/product/**</exclude>
                <exclude>bin/product.conf</exclude>
                <exclude>welcome-content/**</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>${project.build.directory}/unpacked/overlay</directory>
            <outputDirectory>${product.name}-${product.version}</outputDirectory>
            <excludes>
                <exclude>standalone/configuration/standalone-keycloak.xml</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>src/main/modules</directory>
            <outputDirectory>${product.name}-${product.version}/modules</outputDirectory>
            <filtered>true</filtered>
            <includes>
               <include>**/module.xml</include>
               <include>**/MANIFEST.MF</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>src/main/content</directory>
            <outputDirectory>${product.name}-${product.version}</outputDirectory>
            <filtered>false</filtered>
        </fileSet>
        <fileSet>
            <directory>src/main/welcome-content</directory>
            <outputDirectory>${product.name}-${product.version}/welcome-content</outputDirectory>
            <filtered>false</filtered>
        </fileSet>
    </fileSets>

    <files>
        <file>
            <source>${project.build.directory}/unpacked/overlay/standalone/configuration/standalone-keycloak.xml</source>
            <outputDirectory>${product.name}-${product.version}/standalone/configuration</outputDirectory>
            <destName>standalone.xml</destName>
        </file>
    </files>

</assembly>