<?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.1.2</version>
	</parent>
	<groupId>com.hynnet</groupId>
	<artifactId>hynnet-util</artifactId>
	<version>1.1.2</version>
	<packaging>jar</packaging>
	<name>hynnet-util</name>
	<description>Java实现的基础工具类库。能帮助团队快速开发出健壮的、高性能、易于维护的软件系统。</description>
	<url>http://maven.hynnet.com</url>
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>
	<dependencies>
		<dependency>
			<groupId>servlets.com</groupId>
			<artifactId>cos</artifactId>
			<version>05Nov2002</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>net.htmlparser.jericho</groupId>
			<artifactId>jericho-html</artifactId>
			<version>[3.3,)</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>concurrent</groupId>
			<artifactId>concurrent</artifactId>
			<version>[1.3.4,)</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>javax.servlet</groupId>
<!--
			<groupId>com.hynnet</groupId>
-->
			<artifactId>javax.servlet-api</artifactId>
			<version>[3.1.0,)</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.hynnet</groupId>
			<artifactId>xdevelop-ip</artifactId>
			<version>1.0.0</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.hynnet</groupId>
			<artifactId>hynnet-dep</artifactId>
			<version>1.0.0</version>
		</dependency>
		<dependency>
			<groupId>org.apache.httpcomponents</groupId>
			<artifactId>httpclient</artifactId>
			<version>[4.5.1,)</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-classic</artifactId>
			<version>[1.1.3,)</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi</artifactId>
			<version>[3.14,)</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi-ooxml</artifactId>
			<version>[3.14,)</version>
			<scope>provided</scope>
		</dependency>
		<!-- Redis -->
		<dependency>
			<groupId>redis.clients</groupId>
			<artifactId>jedis</artifactId>
			<version>[2.9.0,)</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.google.zxing</groupId>
			<artifactId>core</artifactId>
			<version>[3.3.0,)</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>
	<build>
		<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="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="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="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="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>com.hynnet</groupId>
				<artifactId>maven-javadoc-plugin-not-compile</artifactId>
				<version>2.9.1</version>
				<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>
				<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>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<skipTests>true</skipTests>
					<includes>
						<include>**/*Tests.java</include>
					</includes>
					<argLine></argLine>
					<forkMode>pertest</forkMode>
					<additionalClasspathElements>
						<additionalClasspathElement>${basedir}/target/test-classes</additionalClasspathElement>
						<additionalClasspathElement>\EGGWIFI\workspaces\src\classes</additionalClasspathElement>
					</additionalClasspathElements>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<profiles>
		<profile>
			<id>default</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<distributionManagement>
				<repository>
					<id>hynnet-releases</id>
					<name>hynnet Release Repository</name>
					<url>http://10.10.3.95/nexus/content/repositories/com.hynnet/</url>
				</repository>
				<snapshotRepository>
					<id>hynnet-snapshots</id>
					<name>hynnet Snapshot Repository</name>
					<url>http://10.10.3.95/nexus/content/repositories/com.hynnet/</url>
				</snapshotRepository>
			</distributionManagement>
		</profile>
		<profile>
			<id>test</id>
			<distributionManagement>
				<repository>
					<id>hynnet-releases</id>
					<name>hynnet Release Repository</name>
					<url>http://192.168.0.21:8080/lib/content/repositories/com.hynnet/</url>
<!--
					<url>http://192.168.0.21:8080/lib/content/repositories/releases</url>
-->
				</repository>
				<snapshotRepository>
					<id>hynnet-snapshots</id>
					<name>hynnet Snapshot Repository</name>
					<url>http://192.168.0.21:8080/lib/content/repositories/com.hynnet.snapshots/</url>
				</snapshotRepository>
			</distributionManagement>
		</profile>
		<profile>
			<id>publish</id>
			<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>
					<uniqueVersion>false</uniqueVersion>
				</snapshotRepository>
			</distributionManagement>
		</profile>
	</profiles>
</project>
