<?xml version='1.0' encoding='UTF-8'?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <modelVersion>4.0.0</modelVersion>

   <parent>
      <groupId>org.infinispan.server</groupId>
      <artifactId>infinispan-server-versions</artifactId>
      <version>8.2.2.Final</version>
      <relativePath>versions/pom.xml</relativePath>
   </parent>

   <artifactId>infinispan-server</artifactId>

   <name>Infinispan Server</name>
   <description>Infinispan Server</description>

   <packaging>pom</packaging>

   <modules>
      <module>versions</module>
      <module>commons</module>
      <module>event-logger</module>
      <module>jgroups</module>
      <module>infinispan</module>
      <module>endpoint</module>
      <module>cli</module>
      <module>feature-pack</module>
      <module>build</module>
   </modules>

   <profiles>
      <profile>
         <id>normal</id>
         <activation>
            <property>
               <name>!no.tests</name>
            </property>
         </activation>
         <modules>
            <module>versions</module>
            <module>commons</module>
            <module>event-logger</module>
            <module>jgroups</module>
            <module>infinispan</module>
            <module>endpoint</module>
            <module>cli</module>
            <module>feature-pack</module>
            <module>build</module>
            <module>testsuite</module>
         </modules>
      </profile>
      <profile>
         <id>distribution</id>
         <activation>
            <activeByDefault>false</activeByDefault>
         </activation>
         <properties>
            <skipTests>true</skipTests>
         </properties>
         <build>
            <plugins>
               <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-assembly-plugin</artifactId>
                  <executions>
                     <execution>
                        <id>assemble</id>
                        <phase>package</phase>
                        <goals>
                           <goal>single</goal>
                        </goals>
                     </execution>
                  </executions>
                  <configuration>
                     <descriptors>
                        <descriptor>${project.basedir}/src/main/assemblies/bin.xml</descriptor>
                        <descriptor>${project.basedir}/src/main/assemblies/source.xml</descriptor>
                     </descriptors>
                     <finalName>${product.name}-${product.version}</finalName>
                     <outputDirectory>${project.build.directory}/distribution</outputDirectory>
                     <workDirectory>${project.build.directory}/assembly/work</workDirectory>
                     <attach>true</attach>
                  </configuration>
               </plugin>
            </plugins>
         </build>
      </profile>
   </profiles>
</project>