<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>com.payline</groupId>
	<artifactId>payline-java-sdk</artifactId>
	<version>4.59.0.1</version>
	<name>Payline JAVA SDK Project</name>
	<description>The Payline API provides access to the various functions of the Payline payment solution. It is based on standard web service components, which include the SOAP protocol, the WSDL and XSD definition languages. These standards are supported by a large range of development tools on multiple platforms. This SDK covers all the functions of the Payline payment solution.</description>
	
	<properties>
		<java.version>1.6</java.version>
		<payline.wsdl.version>4.59</payline.wsdl.version>
	</properties>
	
	<url>www.payline.com</url>
	<developers>
		<developer>
			<name>Payline Dev Team</name>
			<organization>Monext</organization>
			<email>support@payline.com</email>
		</developer>
	</developers>
	<licenses>
		<license>
			<name>GNU Lesser General Public License (LGPLv3)</name>
			<url>http://www.gnu.org/copyleft/lesser.html</url>
		</license>
	</licenses>
	<scm><url>https://github.com/PaylineByMonext/payline-java-sdk</url></scm>
	<organization>
		<name>MONEXT</name>
		<url>http://www.monext.fr/</url>
	</organization>
	
	<distributionManagement>
	  <snapshotRepository>
	    <id>ossrh</id>
	    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
	  </snapshotRepository>
	  <repository>
	    <id>ossrh</id>
	    <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
	  </repository>
	</distributionManagement>
	
	<profiles>
		<profile>
			<id>sign</id> <!-- this profile induce artifact signature -->
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<build>
				<plugins>
					<plugin>
				      <groupId>org.apache.maven.plugins</groupId>
				      <artifactId>maven-gpg-plugin</artifactId>
				      <version>1.6</version>
				      <executions>
				        <execution>
				          <id>sign-artifacts</id>
				          <phase>verify</phase>
				          <goals>
				            <goal>sign</goal>
				          </goals>
				        </execution>
				      </executions>
				    </plugin>
				</plugins>
			</build>
		</profile>
		
	</profiles>
	
	<build>
		<finalName>payline-java-sdk-${project.version}</finalName>
		<sourceDirectory>src/main/java</sourceDirectory>
		<plugins>
			<plugin>
		      <groupId>org.sonatype.plugins</groupId>
		      <artifactId>nexus-staging-maven-plugin</artifactId>
		      <version>1.6.3</version>
		      <extensions>true</extensions>
		      <configuration>
		        <serverId>ossrh</serverId>
		        <nexusUrl>https://oss.sonatype.org/</nexusUrl>
		        <autoReleaseAfterClose>true</autoReleaseAfterClose>
		      </configuration>
		    </plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.2</version>
				<configuration>
					<source>${java.version}</source>
					<target>${java.version}</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				  <artifactId>maven-source-plugin</artifactId>
				  <version>2.4</version>
				  <executions>
				    <execution>
				      <id>attach-sources</id>
				      <goals>
				        <goal>jar-no-fork</goal>
				      </goals>
				    </execution>
				  </executions>
			  </plugin>
			  <plugin>
				  <groupId>org.apache.maven.plugins</groupId>
				  <artifactId>maven-javadoc-plugin</artifactId>
				  <version>2.10.3</version>
				  <executions>
				    <execution>
				      <id>attach-javadocs</id>
				      <goals>
				        <goal>jar</goal>
				      </goals>
				      <configuration>
				      	 <excludePackageNames>com.payline.ws.*</excludePackageNames>
				      </configuration>
				    </execution>
				  </executions>
			 </plugin>
			 
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>jaxws-maven-plugin</artifactId>
				<version>2.4.1</version>
				<executions>
					<execution>
						<id>wsimport-from-jdk</id>
						<goals>
							<goal>wsimport</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<bindingFiles>
						<bindingFile>${basedir}/src/main/resources/bindings/bind.xml</bindingFile>
					</bindingFiles>
					<!--wsdls file directory -->
					<wsdlDirectory>${basedir}/src/main/resources/wsdls</wsdlDirectory>
					<!-- wsdl file -->
					<wsdlFiles>
						<wsdlFile>v${payline.wsdl.version}.wsdl</wsdlFile>
					</wsdlFiles>
					<!-- Keep generated files -->
					<keep>true</keep>
					<!-- Package name -->
					<packageName>com.payline.ws.model</packageName>
					<!-- generated source files destination -->
					<wsdlLocation>wsdls/v${payline.wsdl.version}.wsdl</wsdlLocation>
				</configuration>
			</plugin>
		</plugins>
	</build>
	<!-- DEPENDENCIES REFERENCES -->
	<dependencies>
		<dependency>
			<groupId>commons-codec</groupId>
			<artifactId>commons-codec</artifactId>
			<version>1.10</version>
		</dependency>
	</dependencies>
</project>
