<?xml version="1.0" encoding="UTF-8"?>
<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.gitee.l0km</groupId>
	<artifactId>facelog</artifactId>
	<version>5.2.2</version>
	<packaging>pom</packaging>
	<description>management frame for facial recognition device</description>
	<name>facelog aggregator</name>
	<url>https://gitee.com/l0km</url>
	<properties>
		<maven.compiler.source>1.7</maven.compiler.source>
		<maven.compiler.target>1.7</maven.compiler.target>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<swift.version>0.14.2</swift.version>
		<common-java.version>1.4.11</common-java.version>
		<codegen.version>1.5.6</codegen.version>
		<idl.generator.version>1.16</idl.generator.version>
		<dtalk.version>0.5.0</dtalk.version>
		<thrifty.compiler.maven.plugin.version>1.1</thrifty.compiler.maven.plugin.version>
		<simplemq.version>2.3.0</simplemq.version>
		<swagger-annotations.version>1.5.22</swagger-annotations.version>
		<spring.boot.version>1.5.9.RELEASE</spring.boot.version>
		<spring.version>4.2.8.RELEASE</spring.version>
		<springfox.swagger.version>2.7.0</springfox.swagger.version>
		<faceapi.version>4.0.2</faceapi.version>
		<sql2java.version>3.3.0</sql2java.version>
		<jackson.version>2.8.0</jackson.version>
		<activemq.version>5.14.5</activemq.version>
		<org.codehaus.jettison.version>1.2</org.codehaus.jettison.version>
		<mysql-connector.version>5.1.48</mysql-connector.version>
		<!-- surefire 插件 跳过测试 -->
		<skipTests>true</skipTests>
	</properties>
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>4.12</version>
				<scope>test</scope>
			</dependency>
			<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
				<version>1.7.25</version>
			</dependency>
			<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12 -->
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-log4j12</artifactId>
				<version>1.7.25</version>
			</dependency>
			<!-- https://mvnrepository.com/artifact/com.facebook.swift/swift-annotations -->
			<dependency>
				<groupId>com.facebook.swift</groupId>
				<artifactId>swift-annotations</artifactId>
				<version>${swift.version}</version>
			</dependency>
			<!-- https://mvnrepository.com/artifact/com.facebook.swift/swift-service -->
			<dependency>
				<groupId>com.facebook.swift</groupId>
				<artifactId>swift-service</artifactId>
				<version>${swift.version}</version>
			</dependency>
			<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
			<dependency>
				<groupId>com.google.guava</groupId>
				<artifactId>guava</artifactId>
				<version>20.0</version>
			</dependency>
			<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-configuration2 -->
			<dependency>
				<groupId>org.apache.commons</groupId>
				<artifactId>commons-configuration2</artifactId>
				<version>2.1.1</version>
			</dependency>
			<!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
			<dependency>
				<groupId>commons-beanutils</groupId>
				<artifactId>commons-beanutils</artifactId>
				<version>1.9.3</version>
			</dependency>
			<dependency>
				<groupId>${project.groupId}</groupId>
				<artifactId>codegen-annotations</artifactId>
				<version>${codegen.version}</version>
			</dependency>
			<dependency>
				<groupId>${project.groupId}</groupId>
				<artifactId>common-base</artifactId>
				<version>${common-java.version}</version>
			</dependency>
		</dependencies>
	</dependencyManagement>
	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>
	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>2.9</version>
					<configuration>
						<!-- 禁用java 8 的DocLint新特性，以确保当javadoc有编译错误时，也能正常生成javadoc jar包 -->
						<!-- ${javadoc.opts}由profile指定 -->
						<additionalparam>${javadoc.opts}</additionalparam>
						<detectLinks>false</detectLinks>
						<detectOfflineLinks>true</detectOfflineLinks>
						<linksource>true</linksource>
						<detectJavaApiLink>false</detectJavaApiLink>
						<show>private</show>
						<!-- 消除 javadoc 编译警告 -->
						<additionalDependencies>
							<additionalDependency>
								<groupId>io.swagger</groupId>
								<artifactId>swagger-annotations</artifactId>
								<version>${swagger-annotations.version}</version>
							</additionalDependency>
							<additionalDependency>
								<groupId>com.facebook.swift</groupId>
								<artifactId>swift-annotations</artifactId>
								<version>${swift.version}</version>
							</additionalDependency>
							<additionalDependency>
								<groupId>org.springframework</groupId>
								<artifactId>spring-web</artifactId>
								<version>${spring.version}</version>
							</additionalDependency>
						</additionalDependencies>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>build-helper-maven-plugin</artifactId>
					<version>3.0.0</version>
					<executions>
						<!-- 配置sql2java文件夹,用于保存sql2java生成的代码 -->
						<execution>
							<id>add-source</id>
							<phase>generate-sources</phase>
							<goals>
								<goal>add-source</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-shade-plugin</artifactId>
					<version>3.1.0</version>
					<configuration>
						<filters>
							<filter>
								<artifact>*:*</artifact>
								<excludes>
									<exclude>META-INF/*.SF</exclude>
									<exclude>META-INF/*.DSA</exclude>
									<exclude>META-INF/*.RSA</exclude>
								</excludes>
							</filter>
						</filters>
					</configuration>
					<executions>
						<execution>
							<phase>package</phase>
							<goals>
								<goal>shade</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>templating-maven-plugin</artifactId>
					<version>1.0.0</version>
					<executions>
						<execution>
							<id>filter-src</id>
							<goals>
								<goal>filter-sources</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-release-plugin</artifactId>
					<version>2.1</version>
					<configuration>
						<mavenExecutorId>forked-path</mavenExecutorId>
						<useReleaseProfile>false</useReleaseProfile>
						<arguments>-Pcentral-release</arguments>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			<plugin>
				<!-- 生成统一的buildNumber,时间戳变量, 子项目调用template插件时只是引用该变量 -->
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>buildnumber-maven-plugin</artifactId>
				<version>1.4</version>
				<executions>
					<execution>
						<id>create-buildnumber</id>
						<goals>
							<!-- 创建${buildNumber} -->
							<goal>create</goal>
						</goals>
					</execution>
					<execution>
						<id>create-timestamp</id>
						<goals>
							<!-- 创建时间戳${buildtimestamp} -->
							<goal>create-timestamp</goal>
						</goals>
						<configuration>
							<!-- 指定时间戳变量名 -->
							<timestampPropertyName>buildtimestamp</timestampPropertyName>
							<!-- 指定日期格式 -->
							<timestampFormat>yyyy-MM-dd HH:mm:ss</timestampFormat>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<!-- 指定JDK版本 -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.1</version>
				<configuration>
					<source>1.7</source>
					<target>1.7</target>
				</configuration>
			</plugin>
		</plugins>
	</build>
	<modules>
		<module>db2</module>
		<module>facelog-local</module>
		<module>facelog-base</module>
		<module>facelog-service</module>
		<module>facelog-client-base</module>
		<module>facelog-client</module>
		<module>facelog-client-android</module>
		<module>facelog-client-cpp</module>
		<module>facelog-dtalk-demo</module>
		<module>facelogservice-maven-plugin</module>
	</modules>
	<licenses>
		<license>
			<name>The 2-Clause BSD License</name>
			<url>https://gitee.com/l0km/facelog/tree/master/LICENSE</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
	<developers>
		<developer>
			<name>guyadong</name>
			<email>10km0811@sohu.com</email>
			<url>https://gitee.com/l0km</url>
		</developer>
	</developers>
	<scm>
		<connection>scm:git:https://gitee.com/l0km/facelog.git</connection>
		<developerConnection>scm:git:https://gitee.com/l0km/facelog.git</developerConnection>
		<url>https://gitee.com/l0km/facelog</url>
	</scm>
	<profiles>
		<profile>
			<id>doclint-java8-disable</id>
			<activation>
				<jdk>[1.8,)</jdk>
			</activation>
			<properties>
				<javadoc.opts>-Xdoclint:none</javadoc.opts>
			</properties>
		</profile>
		<profile>
			<id>only-eclipse</id>
			<activation>
				<property>
					<name>m2e.version</name>
				</property>
			</activation>
			<build>
				<pluginManagement>
					<plugins>
						<!--This plugin's configuration is used to store Eclipse m2e settings 
							only. It has no influence on the Maven build itself. -->
						<plugin>
							<groupId>org.eclipse.m2e</groupId>
							<artifactId>lifecycle-mapping</artifactId>
							<version>1.0.0</version>
							<configuration>
								<lifecycleMappingMetadata>
									<pluginExecutions>
										<pluginExecution>
											<pluginExecutionFilter>
												<groupId>
													org.codehaus.mojo
												</groupId>
												<artifactId>
													buildnumber-maven-plugin
												</artifactId>
												<versionRange>
													[1.4,)
												</versionRange>
												<goals>
													<goal>
														create-timestamp
													</goal>
												</goals>
											</pluginExecutionFilter>
											<action>
												<ignore />
											</action>
										</pluginExecution>
										<pluginExecution>
											<pluginExecutionFilter>
												<groupId>
													com.gitee.l0km
												</groupId>
												<artifactId>
													codegen-decorator-maven-plugin
												</artifactId>
												<versionRange>
													[1.0.2,)
												</versionRange>
												<goals>
													<goal>generate</goal>
												</goals>
											</pluginExecutionFilter>
											<action>
												<ignore />
											</action>
										</pluginExecution>
										<pluginExecution>
											<pluginExecutionFilter>
												<groupId>
													com.gitee.l0km
												</groupId>
												<artifactId>
													codegen-thrift-maven-plugin
												</artifactId>
												<versionRange>
													[1.0.3-SNAPSHOT,)
												</versionRange>
												<goals>
													<goal>generate</goal>
												</goals>
											</pluginExecutionFilter>
											<action>
												<ignore />
											</action>
										</pluginExecution>
										<pluginExecution>
											<pluginExecutionFilter>
												<groupId>
													org.apache.maven.plugins
												</groupId>
												<artifactId>
													maven-plugin-plugin
												</artifactId>
												<versionRange>
													[3.2,)
												</versionRange>
												<goals>
													<goal>descriptor</goal>
												</goals>
											</pluginExecutionFilter>
											<action>
												<ignore />
											</action>
										</pluginExecution>
										<pluginExecution>
											<pluginExecutionFilter>
												<groupId>
													org.apache.maven.plugins
												</groupId>
												<artifactId>
													maven-dependency-plugin
												</artifactId>
												<versionRange>
													[2.9,)
												</versionRange>
												<goals>
													<goal>build-classpath</goal>
												</goals>
											</pluginExecutionFilter>
											<action>
												<ignore />
											</action>
										</pluginExecution>
									</pluginExecutions>
								</lifecycleMappingMetadata>
							</configuration>
						</plugin>
					</plugins>
				</pluginManagement>
			</build>
		</profile>
		<!-- maven 中央仓库发布 -->
		<profile>
			<id>central-release</id>
			<repositories>
				<repository>
					<id>sonatype-nexus-snapshots</id>
					<name>Sonatype Nexus Snapshots</name>
					<url>https://oss.sonatype.org/content/repositories/snapshots</url>
					<releases>
						<enabled>false</enabled>
					</releases>
					<snapshots>
						<enabled>true</enabled>
					</snapshots>
				</repository>
			</repositories>
			<distributionManagement>
				<snapshotRepository>
					<id>sonatype-nexus-snapshots</id>
					<name>Sonatype Nexus Snapshots</name>
					<url>${sonatypeOssDistMgmtSnapshotsUrl}</url>
				</snapshotRepository>
				<repository>
					<id>sonatype-nexus-staging</id>
					<name>Nexus Release Repository</name>
					<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
				</repository>
			</distributionManagement>
			<build>
				<plugins>
					<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>
					</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>
						<version>1.1</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>