<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>
		<parent>
			<groupId>com.hotent</groupId>
			<artifactId>eip</artifactId>
			 <version>wms-lite</version>
		</parent>
		<artifactId>uc</artifactId>
		<name>uc</name>
		<description>user center</description>
		<properties>
			<cron-utils.version>9.1.7</cron-utils.version>
			<spring-boot-starter-mobile.version>1.5.9.RELEASE</spring-boot-starter-mobile.version>
		</properties>

		<dependencies>
			<dependency>
				<groupId>org.projectlombok</groupId>
				<artifactId>lombok</artifactId>
				<scope>provided</scope>
			</dependency>
			<!-- Spring boot 测试 -->
			<dependency>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-starter-test</artifactId>
				<scope>test</scope>
			</dependency>
			<!-- excel处理相关 -->
			<dependency>
				<groupId>com.hotent</groupId>
				<artifactId>poi</artifactId>
				<version>${parent.version}</version>
			</dependency>
			<!-- ad同步 -->
			<dependency>
				<groupId>org.springframework.ldap</groupId>
				<artifactId>spring-ldap-core</artifactId>
			</dependency>
			<!-- 定时任务一 -->
			<dependency>
				<groupId>com.cronutils</groupId>
				<artifactId>cron-utils</artifactId>
				<version>${cron-utils.version}</version>
			</dependency>
			<!-- Spring boot 移动端支持 -->
			<dependency>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-starter-mobile</artifactId>
				<version>${spring-boot-starter-mobile.version}</version>
			</dependency>
			<!-- rest-auth-service 获取请求方法的授权信息 portal门户模块请不要依赖 只在 bpm-model bpm-runtime
				form,uc中依赖 -->
			<dependency>
				<groupId>com.hotent</groupId>
				<artifactId>rest-auth-service</artifactId>
			</dependency>
			<!-- redis -->
			<dependency>
				<groupId>com.hotent</groupId>
				<artifactId>redis</artifactId>
			</dependency>
			<!-- 其他模块使用I18nUtil的方法,获取国际化资源 -->
			<dependency>
				<groupId>com.hotent</groupId>
				<artifactId>i18n</artifactId>
				<exclusions>
					<exclusion>
						<groupId>com.hotent</groupId>
						<artifactId>uc-api-impl</artifactId>
					</exclusion>
				</exclusions>
			</dependency>
			<!-- base -->
			<dependency>
				<groupId>com.hotent</groupId>
				<artifactId>base</artifactId>
			</dependency>
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
			</dependency>
			<!-- Jakarta JAX-WS -->
			<dependency>
				<groupId>jakarta.xml.ws</groupId>
				<artifactId>jakarta.xml.ws-api</artifactId>
			</dependency>
			<dependency>
				<groupId>jakarta.jws</groupId>
				<artifactId>jakarta.jws-api</artifactId>
				<version>2.1.0</version>
			</dependency>
			<!-- Swagger -->
			<dependency>
				<groupId>com.github.xiaoymin</groupId>
				<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
			</dependency>
			<dependency>
				<groupId>org.projectlombok</groupId>
				<artifactId>lombok</artifactId>
				<scope>provided</scope>
			</dependency>
		</dependencies>

		<!-- 用于生成jar文件 -->
		<build>
			<finalName>uc</finalName>
			<resources>
				<resource>
					<directory>src/main/resources</directory>
					<filtering>true</filtering>
				</resource>
			</resources>

			<plugins>
				<plugin>
					<groupId>org.springframework.boot</groupId>
					<artifactId>spring-boot-maven-plugin</artifactId>
					<version>${spring.boot.version}</version>
					<configuration>
						<mainClass>com.hotent.uc.UcApplication</mainClass>
						<layout>JAR</layout>
						<jvmArguments>
							--add-opens=java.base/java.util=ALL-UNNAMED
							--add-opens=java.base/java.lang=ALL-UNNAMED
							--add-opens=java.base/java.io=ALL-UNNAMED
							--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
							--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
							--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
						</jvmArguments>
					</configuration>
					<executions>
						<execution>
							<goals>
								<goal>repackage</goal>
							</goals>
							<configuration>
								<attach>false</attach>
								<classifier>boot</classifier>
							</configuration>
						</execution>
					</executions>
				</plugin>
				<!-- third-party jar into lib directory -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-dependency-plugin</artifactId>
					<executions>
						<execution>
							<id>copy-dependencies</id>
							<phase>prepare-package</phase>
							<goals>
								<goal>copy-dependencies</goal>
							</goals>
							<configuration>
								<outputDirectory>${project.build.directory}/lib</outputDirectory>
								<!-- excludeGroupIds 和 includeGroupIds 保持一致   -->
								<!-- 导出jar的 groupId -->
								<includeGroupIds>
									${third-party-group-ids}
								</includeGroupIds>
							</configuration>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</build>
	</project>
