<?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.7</version>
	</parent>
	<groupId>com.hynnet</groupId>
	<artifactId>hynnet-model</artifactId>
	<version>1.0.7</version>
	<name>hynnet-model</name>
	<description>Java实现的面向对象设计的通用数据对象模型类库。能帮助团队快速开发出健壮的、高性能、易于维护的软件系统。</description>
	<url>http://maven.hynnet.com</url>
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>
	<dependencies>
		<dependency>
			<groupId>com.hynnet</groupId>
			<artifactId>hynnet-util</artifactId>
			<version>1.0.7</version>
		</dependency>
<!--
			<groupId>xml-apis</groupId>
			<artifactId>xml-apis</artifactId>
			<version>[1.4.01,)</version>
-->
<!--
		<dependency>
			<groupId>javax.xml.parsers</groupId>
			<artifactId>jaxp-api</artifactId>
			<version>[1.4.5,)</version>
			<scope>compile</scope>
		</dependency>
-->
		<dependency>
			<groupId>org.mongodb</groupId>
<!--
			<groupId>com.hynnet</groupId>
-->
			<artifactId>bson</artifactId>
			<version>[2.13.3,)</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.mongodb</groupId>
<!--
			<groupId>com.hynnet</groupId>
-->
			<artifactId>mongo-java-driver</artifactId>
			<version>[2.13.3,)</version>
			<scope>provided</scope>
		</dependency>
	    <dependency>
			<groupId>org.apache.solr</groupId>
			<artifactId>solr-solrj</artifactId>
			<version>[4.6.1,)</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>net.sourceforge.jtds</groupId>
			<artifactId>jtds</artifactId>
			<version>[1.3.1,)</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>com.hynnet</groupId>
			<artifactId>oracle-driver-ojdbc6</artifactId>
			<version>12.1.0.1</version>
			<scope>runtime</scope>
		</dependency>
<!--
	    <dependency>
			<groupId>net.sf.ehcache.internal</groupId>
			<artifactId>ehcache-core</artifactId>
			<version>[2.8.1,)</version>
		</dependency>
	    <dependency>
			<groupId>commons-httpclient</groupId>
			<artifactId>commons-httpclient</artifactId>
			<version>[3.1,)</version>
		</dependency>
-->
		<dependency>
			<groupId>org.apache.httpcomponents</groupId>
			<artifactId>httpclient</artifactId>
			<version>4.3.4</version>
			<scope>provided</scope>
		</dependency>

		<!--
	    <dependency>
	    	<groupId>javax.servlet</groupId>
	    	<artifactId>servlet-api</artifactId>
	    	<version>[3.0-alpha-1,)</version>
	    	<artifactId>javax.servlet-api</artifactId>
	    	<version>[3.1.0,)</version>
	    </dependency>
		-->
		<dependency>
			<groupId>servlets.com</groupId>
			<artifactId>cos</artifactId>
			<version>05Nov2002</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>net.sf.ehcache.internal</groupId>
<!--
			<groupId>com.hynnet</groupId>
-->
			<artifactId>ehcache-core</artifactId>
			<version>[2.10.0,)</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>solr-solrj</artifactId>
			<version>[5.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.kohsuke</groupId>
			<artifactId>libpam4j</artifactId>
			<version>[1.8,)</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>
	<build>
		<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>org.apache.maven.plugins</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>
		</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>
