pom.xml 3.88 KB
Newer Older
fangxinjiang's avatar
fangxinjiang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (c) 2020 yifu4cloud Authors. All Rights Reserved.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
		 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.yifu.cloud.plus.v1</groupId>
		<artifactId>yifu</artifactId>
fangxinjiang's avatar
fangxinjiang committed
24
		<version>1.0.0</version>
fangxinjiang's avatar
fangxinjiang committed
25 26 27 28 29 30 31 32 33
	</parent>

	<artifactId>yifu-auth</artifactId>
	<packaging>jar</packaging>

	<description>yifu 认证授权中心,基于 spring security oAuth2</description>

	<dependencies>
		<!--注册中心客户端-->
fangxinjiang's avatar
fangxinjiang committed
34
		<!--<dependency>
fangxinjiang's avatar
fangxinjiang committed
35 36
			<groupId>com.alibaba.cloud</groupId>
			<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
fangxinjiang's avatar
fangxinjiang committed
37
		</dependency>-->
fangxinjiang's avatar
fangxinjiang committed
38
		<!--配置中心客户端-->
fangxinjiang's avatar
fangxinjiang committed
39
		<!--<dependency>
fangxinjiang's avatar
fangxinjiang committed
40 41
			<groupId>com.alibaba.cloud</groupId>
			<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
fangxinjiang's avatar
fangxinjiang committed
42
		</dependency>-->
fangxinjiang's avatar
fangxinjiang committed
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
		<!--upms api、model 模块-->
		<dependency>
			<groupId>com.yifu.cloud.plus.v1</groupId>
			<artifactId>yifu-upms-api</artifactId>
		</dependency>
		<!--security-->
		<dependency>
			<groupId>com.yifu.cloud.plus.v1</groupId>
			<artifactId>yifu-common-security</artifactId>
		</dependency>
		<!--JDBC相关-->
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-jdbc</artifactId>
		</dependency>
		<!--freemarker-->
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-freemarker</artifactId>
		</dependency>
		<!--数据库-->
		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
		</dependency>
		<!--undertow容器-->
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-undertow</artifactId>
		</dependency>
		<!-- log -->
		<dependency>
			<groupId>com.yifu.cloud.plus.v1</groupId>
			<artifactId>yifu-common-log</artifactId>
		</dependency>
huyuchen's avatar
huyuchen committed
78 79 80 81 82
		<dependency>
			<groupId>org.jasig.cas.client</groupId>
			<artifactId>cas-client-core</artifactId>
			<version>3.6.4</version>
		</dependency>
fangxinjiang's avatar
fangxinjiang committed
83 84 85 86 87 88 89 90 91
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
			<plugin>
fangxinjiang's avatar
fangxinjiang committed
92
				<groupId>com.spotify</groupId>
fangxinjiang's avatar
fangxinjiang committed
93
				<artifactId>docker-maven-plugin</artifactId>
fangxinjiang's avatar
fangxinjiang committed
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
				<version>1.1.0</version>
				<configuration>
					<serverId>docker-hub</serverId>
					<!--指定生成的镜像名-->
					<imageName>${my.hub.host}/${map.group.name}/${project.artifactId}:${project.version}</imageName>
					<dockerDirectory>${project.basedir}/</dockerDirectory>
					<!--指定远程 docker api地址-->
					<!--<dockerHost>http://172.16.66.232:2375</dockerHost>-->
					<!--  这里是复制 jar 包到 docker 容器指定目录配置-->
					<resources>
						<resource>
							<targetPath>/</targetPath>
							<!--jar 包所在的路径  此处配置的 即对应 target 目录-->
							<directory>${project.build.directory}</directory>
							<!-- 需要包含的 jar包 ,这里对应的是 Dockerfile中添加的文件名 -->
							<include>${project.build.finalName}.jar</include>
						</resource>
					</resources>
					<forceTags>true</forceTags>
				</configuration>
fangxinjiang's avatar
fangxinjiang committed
114 115 116 117 118
			</plugin>
		</plugins>
	</build>

</project>