<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>ru.entaxy.esb.platform.runtime</groupId>
    <artifactId>core</artifactId>
    <version>1.10.1</version>
  </parent>
  <groupId>ru.entaxy.esb.platform.runtime.core</groupId>
  <artifactId>core-support</artifactId>
  <packaging>pom</packaging>
  <name>ENTAXY :: PLATFORM :: CORE :: SUPPORT</name>
  <description>ENTAXY :: PLATFORM :: CORE :: SUPPORT</description>
  <modules>
  	<module>core-support-design</module>
  	<module>core-support-runtime</module>
  	<module>core-support-runtime-legacy</module>
  </modules>
  
  <profiles>
    	<profile>
    		<id>attach-configs</id>
            <build>
                <resources>
                    <resource>
                        <directory>cfg</directory>
                        <targetPath>${project.build.directory}/cfg</targetPath>
                    </resource>
                </resources>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>build-helper-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-configs</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>attach-artifact</goal>
                                </goals>
                                <configuration>
                                    <artifacts>
                                        <artifact>
											<file>target/cfg/ignite.cfg</file>
											<type>cfg</type>
											<classifier>ignite</classifier>
										</artifact>
										<artifact>
											<file>target/cfg/jgroups.locking.xml</file>
											<type>xml</type>
											<classifier>jgroups.locking</classifier>
										</artifact>
                                    </artifacts>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
            <activation>
                <file>
                    <exists>cfg</exists>
                </file>
            </activation>
       	</profile>
	</profiles>
</project>
