forked from iweisi/open-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
181 lines (174 loc) · 7.94 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<?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.opencloud</groupId>
<artifactId>parent</artifactId>
<packaging>pom</packaging>
<version>3.0.0</version>
<modules>
<module>components</module>
<module>platform</module>
<module>services</module>
</modules>
<properties>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<maven-compiler-plugin.version>3.6.2</maven-compiler-plugin.version>
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
<maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
<maven-assembly-plugin.version>3.1.0</maven-assembly-plugin.version>
<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
<maven-dockerfile-plugin.version>1.4.10</maven-dockerfile-plugin.version>
<spring-boot.version>2.1.6.RELEASE</spring-boot.version>
<spring-boot-admin.version>2.1.6</spring-boot-admin.version>
<spring-cloud.version>Greenwich.SR2</spring-cloud.version>
<alibaba.cloud.version>0.9.0.RELEASE</alibaba.cloud.version>
<alibaba.fastjson.version>1.2.60</alibaba.fastjson.version>
<apache.commons-lang3.version>3.3.2</apache.commons-lang3.version>
<apache.commons-io.version>2.5</apache.commons-io.version>
<apache.commons.beanutils>1.9.3</apache.commons.beanutils>
<mybatis-plus.version>3.1.1</mybatis-plus.version>
<hutool.version>4.1.19</hutool.version>
<com.google.zxing.version>3.1.0</com.google.zxing.version>
<swagger2.version>2.9.2</swagger2.version>
<swagger-bootstrap-ui.version>1.9.5</swagger-bootstrap-ui.version>
<oracle.version>10.2.0.4.0</oracle.version>
<!--自定义版本-->
<opencloud.common.version>3.0.0-SNAPSHOT</opencloud.common.version>
<opencloud.base-client.version>3.0.0-SNAPSHOT</opencloud.base-client.version>
<opencloud.msg-client.version>3.0.0-SNAPSHOT</opencloud.msg-client.version>
<opencloud.bpm-client.version>3.0.0-SNAPSHOT</opencloud.bpm-client.version>
<opencloud.task-client.version>3.0.0-SNAPSHOT</opencloud.task-client.version>
<!--镜像前缀-->
<docker.image.prefix>open.cloud</docker.image.prefix>
</properties>
<!--nexus 私有仓库发布地址 -->
<distributionManagement>
<!--maven的settings.xml文件中设置<server>标签-->
<repository>
<id>open-cloud-releases</id>
<url>http://39.106.187.125:8081/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>open-cloud-snapshots</id>
<url>http://39.106.187.125:8081/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
<!-- 环境 -->
<profiles>
<!-- 开发 -->
<profile>
<id>dev</id>
<activation>
<!--默认激活配置-->
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!--当前环境-->
<profile.name>dev</profile.name>
<!--Nacos配置中心地址-->
<config.server-addr>127.0.0.1:8848</config.server-addr>
<!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
<config.namespace></config.namespace>
<!--Nacos服务发现地址-->
<discovery.server-addr>127.0.0.1:8848</discovery.server-addr>
</properties>
</profile>
<!-- 测试 -->
<profile>
<id>test</id>
<properties>
<!--当前环境-->
<profile.name>test</profile.name>
<!--Nacos配置中心地址-->
<config.server-addr>172.17.207.82:8848</config.server-addr>
<!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
<config.namespace></config.namespace>
<!--Nacos服务发现地址-->
<discovery.server-addr>172.17.207.82:8848</discovery.server-addr>
</properties>
</profile>
<!-- 生产 -->
<profile>
<id>online</id>
<properties>
<!--当前环境,生产环境为空-->
<profile.name></profile.name>
<!--Nacos配置中心地址-->
<config.server-addr>172.17.207.82:8848</config.server-addr>
<!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
<config.namespace></config.namespace>
<!--Nacos服务发现地址-->
<discovery.server-addr>172.17.207.82:8848</discovery.server-addr>
</properties>
</profile>
</profiles>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>${alibaba.cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<resources>
<!-- 先指定 src/main/resources下所有文件及文件夹为资源文件 -->
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>${maven.compiler.encoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
</plugin>
<plugin>
<!--打包跳过测试-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</project>