<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>com.hynnet</groupId>
		<artifactId>hynnet</artifactId>
		<version>1.0.8</version>
	</parent>
	<groupId>com.hynnet</groupId>
	<artifactId>httpclient-util</artifactId>
<!--
	<version>1.0.9-SNAPSHOT</version>
-->
	<version>1.0.8</version>
	<name>hynnet httpclient utils</name>
	<url>http://maven.hynnet.com</url>
	<properties>
		<junit.version>4.11</junit.version>
		<gpg.skip>false</gpg.skip>
		<gpg.keyname>hynnet.com</gpg.keyname>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<java.bootstrap.classes>${java.home}/lib/rt.jar</java.bootstrap.classes>
		<java.cryptographic.extension.classes>${java.home}/lib/jce.jar</java.cryptographic.extension.classes>
		<jdk.version>1.5</jdk.version>
		<java.secure.socket.extension.classes>${java.home}/lib/jsse.jar</java.secure.socket.extension.classes>
	</properties>

	<developers>
		<developer>
			<id>hynnet.com</id>
			<name>hynnet.com</name>
			<email>hynnet@hynnet.com</email>
		</developer>
	</developers>

	<scm>
		<url>https://github.com/hynnet/httpclient-util.git</url>
		<connection>scm:git:https://github.com/hynnet/httpclient-util.git</connection>
	</scm>

	<licenses>
		<license>
			<name>hynnet.com</name>
			<url>http://www.hynnet.com/licenses/LICENSE-1.0.txt</url>
			<distribution>repo</distribution>
			<comments>A business-friendly OSS license</comments>
		</license>
	</licenses>

	<dependencies>
		<dependency>
			<groupId>org.apache.httpcomponents</groupId>
			<artifactId>httpclient</artifactId>
			<version>4.5</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>1.7.7</version>
			<scope>compile</scope>
		</dependency>
	</dependencies>
	<build>
<!--
		<finalName>httpclient-util</finalName>
-->
		<resources>
			<resource>
				<directory>src/main/resources</directory>
				<filtering>false</filtering>
				<includes>
					<include>com/hynnet/*.properties</include>
					<include>com/hynnet/*.gif</include>
					<include>com/hynnet/*.mid</include>
				</includes>
			</resource>
		</resources>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.1</version>
					<configuration>
						<excludes>
							<exclude>**/*</exclude>
						</excludes>
						<testExcludes>
							<exclude>**/*</exclude>
						</testExcludes>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<id>ant-build</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<echo message="build ${basedir}..."/>
								<echo message="os: ${os.name}"/>
								<exec dir="./" executable="ant.bat" osfamily="Windows" failonerror="true">
									<arg line="-lib ../lib"/>
									<arg line="-f ..\build.xml"/>
									<arg line="-Dbasedir=${basedir}"/>
									<arg line="-DartifactId=${project.artifactId}"/>
									<arg line="httpclient_util_jar"/>
								</exec>
								<exec dir="./" executable="ant" osfamily="unix" failonerror="true">
									<arg line="-lib ../lib"/>
									<arg line="-f ../build.xml"/>
									<arg line="-Dbasedir=${basedir}"/>
									<arg line="-DartifactId=${project.artifactId}"/>
									<arg line="httpclient_util_jar"/>
								</exec>
							</tasks>
						</configuration>
					</execution>
					<execution>
						<id>javadoc</id>
						<phase>package</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<echo message="build ${basedir}..."/>
								<echo message="os: ${os.name}"/>
								<exec dir="./" executable="ant.bat" osfamily="Windows" failonerror="true">
									<arg line="-lib ../lib"/>
									<arg line="-f ..\build.xml"/>
									<arg line="-Dbasedir=${basedir}"/>
									<arg line="-DartifactId=${project.artifactId}"/>
									<arg line="httpclient_util_javadoc"/>
								</exec>
								<exec dir="./" executable="ant" osfamily="unix" failonerror="true">
									<arg line="-lib ../lib"/>
									<arg line="-f ../build.xml"/>
									<arg line="-Dbasedir=${basedir}"/>
									<arg line="-DartifactId=${project.artifactId}"/>
									<arg line="httpclient_util_javadoc"/>
								</exec>
							</tasks>
						</configuration>
					</execution>
					<execution>
						<id>clean</id>
						<phase>clean</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<echo message="clean ${basedir}..."/>
								<echo message="os: ${os.name}"/>
								<exec dir="./" executable="ant.bat" osfamily="Windows" failonerror="true">
									<arg line="-lib ../lib"/>
									<arg line="-f ..\build.xml"/>
									<arg line="-Dbasedir=${basedir}"/>
									<arg line="clean"/>
								</exec>
								<exec dir="./" executable="ant" osfamily="unix" failonerror="true">
									<arg line="-lib ../lib"/>
									<arg line="-f ..\build.xml"/>
									<arg line="-Dbasedir=${basedir}"/>
									<arg line="clean"/>
								</exec>
							</tasks>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<skip>true</skip>
					<includes>
						<include>**/service/*</include>
					</includes>
				</configuration>
				<executions>
					<execution>
						<id>default-jar</id>
						<phase>never</phase>
						<configuration>
							<finalName>unwanted</finalName>
							<classifier>unwanted</classifier>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>com.hynnet</groupId>
				<artifactId>maven-javadoc-plugin-not-compile</artifactId>
				<version>2.9.1</version>
				<executions>
<!--
					<execution>
						<phase>package</phase>
						<goals>
							<goal>javadoc</goal>
						</goals>
					</execution>
-->
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
<!--
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<configuration>
					<charset>UTF-8</charset>
					<docencoding>UTF-8</docencoding>
					<docfilessubdirs>true</docfilessubdirs>
					<links>
						<link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
					</links>
					<show>protected</show>
					<source>1.5</source>
					<sourcepath>${basedir}/src/main/java/com/hynnet/util</sourcepath>
				</configuration>
				<executions>
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
-->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<executions>
					<execution>
						<id>attach-sources</id>
						<goals>
							<goal>jar-no-fork</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<attach>true</attach>
					<excludes>
						<exclude>org/**</exclude>
						<exclude>com/hynnet/exception/**</exclude>
						<exclude>com/hynnet/model/**</exclude>
						<exclude>com/hynnet/util/**</exclude>
						<exclude>**/*.*</exclude>
					</excludes>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
<!--
				<configuration>
					<artifacts>
						<artifact>
							<file>target/maven-shared-archive-resources/LICENSE</file>
							<type>txt</type>
							<classifier>license</classifier>
						</artifact>
					</artifacts>
				</configuration>
-->
				<executions>
<!--
					<execution>
						<goals>
							<goal>attach-artifact</goal>
						</goals>
					</execution>
-->
					<execution>
						<id>attach-source-jar</id>
						<phase>package</phase>
						<goals>
							<goal>attach-artifact</goal>
						</goals>
						<configuration>
							<artifacts>
								<artifact>
									<file>${project.build.directory}/${project.build.finalName}-sources.jar</file>
									<type>jar</type>
									<classifier>sources</classifier>
								</artifact>
							</artifacts>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-gpg-plugin</artifactId>
				<configuration>
					<skip>${gpg.skip}</skip>
				</configuration>
				<executions>
					<execution>
						<id>sign-artifacts</id>
						<phase>verify</phase>
						<goals>
							<goal>sign</goal>
						</goals>
						<configuration>
							<keyname>${gpg.keyname}</keyname>
							<passphraseServerId>${gpg.keyname}</passphraseServerId>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
	<distributionManagement>
		<repository>
			<id>sonatype-hynnet-releases</id>
			<name>sonatype Release Repository</name>
			<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
		</repository>
		<snapshotRepository>
			<id>sonatype-hynnet-snapshots</id>
			<name>sonatype Snapshot Repository</name>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>
</project>
