<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">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.legsem.legstar</groupId>
        <artifactId>legstar-transport</artifactId>
        <version>1.5.3</version>
    </parent>
    <artifactId>legstar-messaging</artifactId>
    <name>LegStar Messaging Protocol</name>
    <description>Mainframe message exchange protocol.</description>

    <dependencies>
  
        <dependency>
            <groupId>com.legsem.legstar</groupId>
            <artifactId>legstar-coxbapi</artifactId>
        </dependency>

    </dependencies>

    <build>
        <plugins>
        
            <plugin>
            
                <artifactId>maven-antrun-plugin</artifactId>
                
                <executions>
                
                   <!-- This will prepare the zos sources for upload. -->
                    <execution>
                        <id>prepare-deploy-to-zos</id>
                        <phase>generate-resources</phase>
                        <configuration>
                            <tasks>
                                <ant antfile="${basedir}/../src/main/ant/prepare-deploy-to-zos.xml">
                                    <property name="legstarZosVersion" value="${legstarZosVersion}" />
                                </ant>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                     
                </executions>
            </plugin>
        
            <!-- Upload z/OS sources. -->
            <plugin>
                <groupId>com.legsem.legstar</groupId>
                <artifactId>zosupload-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>upload-zos-programs</id>
                        <phase>pre-integration-test</phase>
                        <configuration>
                            <hostName>${legstar-dev-zos-host}</hostName>
                            <hostUserId>${legstar-dev-zos-userid}</hostUserId>
                            <hostPassword>${legstar-dev-zos-password}</hostPassword>
                            <inputFolder>target/zos</inputFolder>
                            <remoteFilesPrefix>${legstar-dev-zos-pds-pfx}.${legstarZosVersion}</remoteFilesPrefix>
                        </configuration>
                        <goals>
                            <goal>upload</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

        </plugins>
    </build>
    
</project>