<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>org.sonatype.oss</groupId>
		<artifactId>oss-parent</artifactId>
		<version>7</version>
	</parent>
		<groupId>com.lonelylang.data</groupId>
		<artifactId>dataprocess-spring-boot-starter</artifactId>
 		<version>1.5.1</version>
		<name>dataprocess-spring-boot-starter</name>
		<description>data processing framework</description>
	<properties>
		<java.version>1.8</java.version>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>
	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter</artifactId>
			<version>2.6.2</version>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
			<version>2.6.2</version>
		</dependency>
		<dependency>
			<groupId>cglib</groupId>
			<artifactId>cglib</artifactId>
			<version>2.2.2</version>
		</dependency>
		<dependency>
			<groupId>com.alibaba</groupId>
			<artifactId>fastjson</artifactId>
			<version>1.2.80</version>
		</dependency>

	</dependencies>
	<!--版权许可证信息-->
	<licenses>
		<license>
			<name>The Apache Software License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
		</license>
	</licenses>

	<!-- 开发者信息 -->
	<developers>
		<developer>
			<name>langjunnan</name>
			<email>1419052183@qq.com</email>
			<organization>lonelylang</organization>
			<organizationUrl>https://lonelylang.com/</organizationUrl>
		</developer>
	</developers>
	<!-- 代码库 -->
	<scm>
		<url>https://gitee.com/lang_junnan/dataprocess-spring-boot-starter/tree/master/</url>
		<connection>scm:git:git@gitee.com:lang_junnan/dataprocess-spring-boot-starter.git</connection>
		<developerConnection>scm:git:git@gitee.com:lang_junnan/dataprocess-spring-boot-starter.git</developerConnection>
	</scm>

	<!-- 定义snapshots库和releases库的nexus地址 -->
	<distributionManagement>
		<snapshotRepository>
			<id>snapshots</id>
			<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
		<repository>
			<id>releases</id>
			<url>https://s01.oss.sonatype.org/content/repositories/releases</url>
		</repository>

	</distributionManagement>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
				</plugin>
				<!--deploy插件-->
				<plugin>
					<artifactId>maven-deploy-plugin</artifactId>
					<version>2.8.2</version>
					<executions>
						<execution>
							<id>default-deploy</id>
							<phase>deploy</phase>
							<goals>
								<goal>deploy</goal>
							</goals>
						</execution>
					</executions>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-scm-plugin</artifactId>
					<version>1.8.1</version>
				</plugin>

			</plugins>
		</pluginManagement>

	</build>

	<profiles>

		<profile>
			<id>oss</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
				<gpg.executable>Gpg4win</gpg.executable>
				<!-- 此处是设置的gpg密钥的密码 -->
				<gpg.passphrase>1419052183@qq.com</gpg.passphrase>
				<!-- 此处是gpg.exe的位置路径 -->
				<gpg.executable>E:\Gpg4win\binkleopatra.exe</gpg.executable>
				<!-- 此处是生成密钥的位置，还记得gen -version的时候么？ -->
				<gpg.homedir>C:\Users\Administrator\.gnupg</gpg.homedir>
			</properties>
		</profile>
		<profile>
			<id>release</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
				<!-- 此处是设置的gpg密钥的密码 -->
				<gpg.passphrase>1419052183@qq.com</gpg.passphrase>
				<!-- 此处是gpg.exe的位置路径 -->
				<gpg.executable>E:\Gpg4win\binkleopatra.exe</gpg.executable>
				<!-- 此处是生成密钥的位置，还记得gen -version的时候么？ -->
				<gpg.homedir>C:\Users\Administrator\.gnupg</gpg.homedir>
			</properties>
			<build>
				<pluginManagement>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-release-plugin</artifactId>
						<version>2.5.3</version>
						<configuration>
							<autoVersionSubmodules>true</autoVersionSubmodules>
							<useReleaseProfile>false</useReleaseProfile>
							<releaseProfiles>release</releaseProfiles>
							<goals>deploy</goals>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<version>2.1.2</version>
						<executions>
							<execution>
								<id>attach-sources</id>
								<phase>package</phase>
								<goals>
									<goal>jar-no-fork</goal>
								</goals>
							</execution>
						</executions>
					</plugin>

					<!-- Javadoc -->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<version>2.9.1</version>
						<configuration>
							<aggregate>true</aggregate>
							<!--需要配置，不然会出现“错误: 未知标记:xxxx”-->
							<charset>UTF-8</charset>
							<encoding>UTF-8</encoding>
							<docencoding>UTF-8</docencoding>
							<additionalparam>-Xdoclint:none</additionalparam>
						</configuration>
						<executions>
							<execution>
								<phase>package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<!-- GPG -->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>

<!--						<configuration>-->
<!--							<skip>true</skip>-->
<!--						</configuration>-->
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
				</pluginManagement>
			</build>
		</profile>
	</profiles>

</project>
