<?xml version="1.0" encoding="UTF-8"?>
#set($TransportName = "$transportId")
#set($TransportName = "${TransportName.substring(0,1).toUpperCase()}${TransportName.substring(1).toLowerCase()}")
#set($TransportNameLower = "${TransportName.toLowerCase()}")
#set($MuleVersion = "$muleVersion")
#set($id = "")
#if(!$groupId)
  #set($groupId = "org.mule.transports")
#end
#if(!$artifactId)
  #set($artifactId = "mule-transport-${TransportNameLower}")
#end

#set($MuleMajorMinorVersion = "$MuleVersion.substring(0, 3)")
<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>
   <groupId>${groupId}</groupId>
   <artifactId>${artifactId}</artifactId>
   <packaging>jar</packaging>
   <name>Mule ${TransportName} Transport</name>
   <version>${version}</version>
   <description>${description}</description>

   <properties>
       <mule.version>${MuleVersion}</mule.version>
   </properties>

#if($forgeProject == "y")
   <!-- Mule Forge Configuration -->
   <issueManagement>
       <system>Jira</system>
       <url>http://mule.mulesource.org/jira/browse/${TransportName.toUpperCase()}</url>
   </issueManagement>

   <scm>
       <connection>scm:svn:http://svn.muleforge.org/${artifactId}/</connection>
       <developerConnection>scm:svn:https://svn.muleforge.org/${artifactId}/</developerConnection>
       <tag>HEAD</tag>
       <url>http://svn.${artifactId}.muleforge.org/</url>
   </scm>


   <ciManagement>
       <system>Bamboo</system>
       <url>http://bamboo.muleforge.org/browse/${TransportName.toUpperCase()}-FORGE</url>
       <notifiers/>
   </ciManagement>

   <distributionManagement>
       <repository>
           <id>muleforge.webdav.releases</id>
           <url>dav:https://dav.muleforge.org/repository/${artifactId}/</url>
       </repository>
       <snapshotRepository>
           <id>muleforge.webdav.snapshots</id>
           <url>dav:https://dav.muleforge.org/snapshots.repository/${artifactId}/</url>
       </snapshotRepository>
       <site>
           <id>muleforge.webdav.sites</id>
           <url>dav:https://dav.muleforge.org/${artifactId}/</url>
       </site>
   </distributionManagement>

   <repositories>
       <repository>
           <id>ch-dep</id>
           <name>Codehaus Dependencies</name>
           <url>http://dist.codehaus.org/mule/dependencies/maven2</url>
           <layout>default</layout>
       </repository>
       <repository>
           <!-- local repository for this transport. Users can upload dependencies here when the artifact
                is not available on any other repository. Its the users' responsibility to make sure that no
                licenses are violated by uploading dependencies to this location
           -->
           <id>${thransportId}-deps</id>
           <name>${TransportName} Dependencies</name>
           <url>http://dist.muleforge.org/${artefactId}/dependencies/maven2</url>
           <snapshots>
               <enabled>false</enabled>
           </snapshots>
       </repository>
   </repositories>

   <!-- End of MuleForge Configuration -->
#end

   <build>
       <plugins>
           <plugin>
               <artifactId>maven-assembly-plugin</artifactId>
               <configuration>
                   <finalName>${artifactId}-${version}</finalName>
                   <descriptors>
                       <descriptor>assembly.xml</descriptor>
                   </descriptors>
                   <appendAssemblyId>false</appendAssemblyId>
               </configuration>
           </plugin>
       </plugins>
   </build>

   <!-- plugins for creating site reports -->
   <reporting>
       <plugins>
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-surefire-report-plugin</artifactId>
           </plugin>
#if($forgeProject == "y")
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-checkstyle-plugin</artifactId>
               <configuration>
                   <configLocation>http://mulesource.org/download/attachments/92/checkstyle.xml?version=1
                   </configLocation>
               </configuration>
           </plugin>
#end
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-pmd-plugin</artifactId>
               <configuration>
                   <targetJdk>1.5</targetJdk>
               </configuration>
           </plugin>
           <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>cobertura-maven-plugin</artifactId>
           </plugin>
           <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>taglist-maven-plugin</artifactId>
               <configuration>
                   <tags>
                       <tag>TODO</tag>
                       <tag>@todo</tag>
                       <tag>FIXME</tag>
                       <tag>@fixme</tag>
                       <tag>@deprecated</tag>
                   </tags>
               </configuration>
           </plugin>
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-jxr-plugin</artifactId>
           </plugin>
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-javadoc-plugin</artifactId>
               <configuration>
                   <links>
                       <link>http://java.sun.com/j2ee/1.4/docs/api</link>
                       <link>http://java.sun.com/j2se/1.4.2/docs/api</link>
                       <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
                   </links>
               </configuration>
           </plugin>
           <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>jdepend-maven-plugin</artifactId>
           </plugin>
           <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>findbugs-maven-plugin</artifactId>
           </plugin>
       </plugins>
   </reporting>

   <!-- Common Dependencies -->
   <dependencies>
       <dependency>
           <groupId>org.mule</groupId>
           <artifactId>mule-core</artifactId>
           <version>${mule.version}</version>
       </dependency>
       <dependency>
           <groupId>org.mule.tests</groupId>
           <artifactId>mule-tests-functional</artifactId>
           <version>${mule.version}</version>
           <scope>test</scope>
       </dependency>
       <dependency>
           <groupId>junit</groupId>
           <artifactId>junit</artifactId>
           <version>3.8.1</version>
           <scope>test</scope>
       </dependency>
   </dependencies>


</project>
