<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>org.jenkins-ci.plugins</groupId>
		<artifactId>plugin</artifactId>
		<version>1.509.4</version>
	</parent>

	
	<artifactId>perfectomobile</artifactId>
	<version>2.20.1.2</version>
	<packaging>hpi</packaging>
	<name>Perfecto Mobile Plugin</name>
	<url>https://wiki.jenkins-ci.org/display/JENKINS/MobileCloud+for+Jenkins+Plugin</url>

	<developers>
		<developer>
			<id>perfectomobile</id>
			<name>Perfecto Mobile</name>
			<email>jenkins.admin@perfectomobile.com</email>
		</developer>
	</developers>

    <distributionManagement>
        <snapshotRepository>
            <id>snapshots</id>
            <url>http://nexus:8081/nexus/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
            <id>releases</id>
            <url>http://nexus:8081/nexus/content/repositories/releases</url>
        </repository>
    </distributionManagement>

	<!-- get every artifact through repo.jenkins-ci.org, which proxies all the 
		artifacts that we need -->
	<repositories>
		<repository>
			<id>repo.jenkins-ci.org</id>
			<url>http://repo.jenkins-ci.org/public/</url>
		</repository>
	</repositories>

	<pluginRepositories>
		<pluginRepository>
			<id>repo.jenkins-ci.org</id>
			<url>http://repo.jenkins-ci.org/public/</url>
		</pluginRepository>
	</pluginRepositories>

	<!-- 4jenkins-ci: added this instead of the commented out element -->
	<scm>
		<connection>scm:git:git@perfectomobile.beanstalkapp.com:perfectomobile/jenkins.git</connection>
		<developerConnection>scm:git:git@perfectomobile.beanstalkapp.com:perfectomobile/jenkins.git</developerConnection>
        <url>https://perfectomobile.beanstalkapp.com/jenkins</url>
  	  <tag>jenkins-2.20.1.2</tag>
	</scm>
	
	<!-- 4jenkins-ci: added this element -->
	<licenses>
        <license>
            <name>MIT License</name>
            <url>http://opensource.org/licenses/MIT</url>
        </license>
    </licenses>
    
    <!-- 4jenkins-ci: added this element -->
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.5</version>
                <!-- rk added the next element -->
                <configuration>
                      <tagNameFormat>jenkins-@{project.version}</tagNameFormat>
                      <!-- in the jenkins release page they say you should have this in your Configuration element, but it worked in 0.18 w/o it -->
                      <goals>deploy</goals>
                </configuration>
                
            </plugin>
            <plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-scm-plugin</artifactId>
				<version>1.9</version>
			</plugin>
        </plugins>
    </build>
	

	<dependencies>		
		<dependency>
			<groupId>com.sun.jersey</groupId>
			<artifactId>jersey-client</artifactId>
			<version>1.18</version>
		</dependency>
		<dependency>
			<groupId>com.sun.jersey.contribs</groupId>
			<artifactId>jersey-apache-client</artifactId>
			<version>1.18</version>
		</dependency>
		<dependency>
			<groupId>com.sun.jersey.contribs</groupId>
			<artifactId>jersey-multipart</artifactId>
			<version>1.18</version>
		</dependency>
		<dependency>
			<groupId>com.googlecode.json-simple</groupId>
			<artifactId>json-simple</artifactId>
			<version>1.1</version>
		</dependency>
		<dependency>
			<groupId>org.apache.httpcomponents</groupId>
			<artifactId>httpmime</artifactId>
			<version>4.3.2</version>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.11</version>
			<scope>test</scope>
		</dependency>
		
		<!-- the next dep'cy copied from copyartifact and is needed only for the upload artifacts builder -->
		<!-- it's fine when run on jenkins 1.556 machine -->
		<dependency>
			<groupId>org.jenkins-ci.main</groupId>
			<artifactId>maven-plugin</artifactId>
			<version>1.509</version>
			<optional>true</optional>
		</dependency>		
	</dependencies>
	
	<profiles>
		<profile>
			<id>publish</id>
			<distributionManagement>
				<repository>
					<id>maven.jenkins-ci.org</id>
					<url>http://maven.jenkins-ci.org/content/repositories/releases/</url>
				</repository>
			</distributionManagement>	
		</profile>
	</profiles>
</project>
