<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>kz.idsoftware.sforce</groupId>
  <artifactId>sforce-partner-api</artifactId>
  <version>35.0</version>
  <packaging>jar</packaging>

  <name>sforce-partner-api</name>
  <description>Salesforce Partner API client</description>
  <url>https://github.com/idsoftwarekz/sforce-partner-api</url>

  <licenses>
      <license>
          <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      </license>
  </licenses>

  <scm>
      <url>https://github.com/idsoftwarekz/sforce-tooling-api.git</url>
  </scm>

  <developers>
      <developer>
          <name>Marat Kalibekov</name>
      </developer>
  </developers>

  <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

      <cxf.version>3.1.4</cxf.version>
  </properties>

  <dependencies>
      <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>4.11</version>
      </dependency>
  </dependencies>
  <build>
      <plugins>
      <plugin>
      <artifactId>maven-compiler-plugin</artifactId>
      <configuration>
          <source>1.6</source>
          <target>1.6</target>
      </configuration>
      </plugin>
          <plugin>
              <groupId>org.apache.cxf</groupId>
              <artifactId>cxf-codegen-plugin</artifactId>
              <version>${cxf.version}</version>
              <executions>
                  <execution>
                      <id>generate-sources</id>
                      <phase>generate-sources</phase>
                      <configuration>
                          <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
                          <wsdlOptions>
                              <wsdlOption>
                                  <wsdl>${basedir}/src/main/resources/partner.wsdl</wsdl>
                                  <wsdlLocation>classpath:partner.wsdl</wsdlLocation>
                                  <extraargs>
                                      <extraarg>-b</extraarg>
                                      <extraarg>${basedir}/src/main/resources/bindings.xml</extraarg>
                                      <extraarg>-autoNameResolution</extraarg>
                                      <extraarg>-exsh</extraarg>
                                      <extraarg>true</extraarg>
                                  </extraargs>
                              </wsdlOption>
                          </wsdlOptions>
                      </configuration>
                      <goals>
                          <goal>wsdl2java</goal>
                      </goals>
                  </execution>
              </executions>
          </plugin>

          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-source-plugin</artifactId>
              <executions>
                  <execution>
                      <id>attach-sources</id>
                      <phase>verify</phase>
                      <goals>
                          <goal>jar-no-fork</goal>
                      </goals>
                  </execution>
              </executions>
          </plugin>
          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-javadoc-plugin</artifactId>
              <executions>
                  <execution>
                      <id>attach-javadocs</id>
                      <goals>
                          <goal>jar</goal>
                      </goals>
                  </execution>
              </executions>
          </plugin>
          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-gpg-plugin</artifactId>
              <executions>
                  <execution>
                      <id>sign-artifacts</id>
                      <phase>verify</phase>
                      <goals>
                          <goal>sign</goal>
                      </goals>
                  </execution>
              </executions>
          </plugin>

      </plugins>
  </build>

  <distributionManagement>
      <repository>
          <id>oss.sonatype.repo</id>
          <name>Sonatype OSS repository</name>
          <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
      </repository>
  </distributionManagement>

</project>
