Skip to content

Commit 329239d

Browse files
committed
feat{add version manager:cloud-project-dependencies}
import cloud-project-dependencies and spring-boot-dependencies
1 parent 004621b commit 329239d

File tree

8 files changed

+113
-41
lines changed

8 files changed

+113
-41
lines changed

cloud-admin-ui/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,22 @@
1818
<dependency>
1919
<groupId>de.codecentric</groupId>
2020
<artifactId>spring-boot-admin-server</artifactId>
21-
<version>${spring-boot-admin.version}</version>
2221
</dependency>
2322
<dependency>
2423
<groupId>de.codecentric</groupId>
2524
<artifactId>spring-boot-admin-server-ui</artifactId>
26-
<version>${spring-boot-admin.version}</version>
2725
</dependency>
2826
<dependency>
2927
<groupId>de.codecentric</groupId>
3028
<artifactId>spring-boot-admin-server-ui-hystrix</artifactId>
31-
<version>${spring-boot-admin.version}</version>
3229
</dependency>
3330
<dependency>
3431
<groupId>de.codecentric</groupId>
3532
<artifactId>spring-boot-admin-server-ui-turbine</artifactId>
36-
<version>${spring-boot-admin.version}</version>
3733
</dependency>
3834
<dependency>
3935
<groupId>de.codecentric</groupId>
4036
<artifactId>spring-boot-admin-server-ui-activiti</artifactId>
41-
<version>${spring-boot-admin.version}</version>
4237
</dependency>
4338
<dependency>
4439
<groupId>org.jolokia</groupId>

cloud-project-dependencies/pom.xml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>com.erdaoya</groupId>
6+
<artifactId>cloud-project-dependencies</artifactId>
7+
<version>1.0-SNAPSHOT</version>
8+
<packaging>pom</packaging>
9+
<name>Spring Boot Dependencies</name>
10+
<description>cloud project Dependencies</description>
11+
<properties>
12+
<spring-boot-admin.version>1.5.2</spring-boot-admin.version>
13+
<druid.version>1.0.15</druid.version>
14+
<mybatis-spring-boot-starter.version>1.1.1</mybatis-spring-boot-starter.version>
15+
<swagger2.version>2.4.0</swagger2.version>
16+
<jolokia.version>1.3.5</jolokia.version>
17+
<cloud-common-exception.version>1.0-SNAPSHOT</cloud-common-exception.version>
18+
<cloud-common-mvc-custom.version>1.0-SNAPSHOT</cloud-common-mvc-custom.version>
19+
</properties>
20+
<dependencyManagement>
21+
<dependencies>
22+
<dependency>
23+
<groupId>com.erdaoya</groupId>
24+
<artifactId>cloud-common-exception</artifactId>
25+
<version>${cloud-common-exception.version}</version>
26+
</dependency>
27+
<dependency>
28+
<groupId>com.erdaoya</groupId>
29+
<artifactId>cloud-common-mvc-custom</artifactId>
30+
<version>${cloud-common-mvc-custom.version}</version>
31+
</dependency>
32+
<dependency>
33+
<groupId>org.mybatis.spring.boot</groupId>
34+
<artifactId>mybatis-spring-boot-starter</artifactId>
35+
<version>${mybatis-spring-boot-starter.version}</version>
36+
</dependency>
37+
<dependency>
38+
<groupId>org.jolokia</groupId>
39+
<artifactId>jolokia-core</artifactId>
40+
<version>${jolokia.version}</version>
41+
</dependency>
42+
<dependency>
43+
<groupId>com.alibaba</groupId>
44+
<artifactId>druid</artifactId>
45+
<version>${druid.version}</version>
46+
</dependency>
47+
<dependency>
48+
<groupId>io.springfox</groupId>
49+
<artifactId>springfox-swagger-ui</artifactId>
50+
<version>${swagger2.version}</version>
51+
</dependency>
52+
<dependency>
53+
<groupId>io.springfox</groupId>
54+
<artifactId>springfox-spi</artifactId>
55+
<version>${swagger2.version}</version>
56+
</dependency>
57+
<dependency>
58+
<groupId>io.springfox</groupId>
59+
<artifactId>springfox-swagger2</artifactId>
60+
<version>${swagger2.version}</version>
61+
</dependency>
62+
<dependency>
63+
<groupId>de.codecentric</groupId>
64+
<artifactId>spring-boot-admin-server</artifactId>
65+
<version>${spring-boot-admin.version}</version>
66+
</dependency>
67+
<dependency>
68+
<groupId>de.codecentric</groupId>
69+
<artifactId>spring-boot-admin-server-ui</artifactId>
70+
<version>${spring-boot-admin.version}</version>
71+
</dependency>
72+
<dependency>
73+
<groupId>de.codecentric</groupId>
74+
<artifactId>spring-boot-admin-server-ui-hystrix</artifactId>
75+
<version>${spring-boot-admin.version}</version>
76+
</dependency>
77+
<dependency>
78+
<groupId>de.codecentric</groupId>
79+
<artifactId>spring-boot-admin-server-ui-turbine</artifactId>
80+
<version>${spring-boot-admin.version}</version>
81+
</dependency>
82+
<dependency>
83+
<groupId>de.codecentric</groupId>
84+
<artifactId>spring-boot-admin-server-ui-activiti</artifactId>
85+
<version>${spring-boot-admin.version}</version>
86+
</dependency>
87+
</dependencies>
88+
</dependencyManagement>
89+
</project>

cloud-server-discovery/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
<groupId>org.springframework.boot</groupId>
3232
<artifactId>spring-boot-maven-plugin</artifactId>
3333
</plugin>
34-
3534
</plugins>
3635
</build>
3736
<profiles>

cloud-service-client/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
<groupId>org.springframework.cloud</groupId>
6262
<artifactId>spring-cloud-stream-binder-rabbit</artifactId>
6363
</dependency>
64-
6564
</dependencies>
6665
<build>
6766
<plugins>

cloud-service-trade/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<dependency>
2020
<groupId>com.erdaoya</groupId>
2121
<artifactId>cloud-common-exception</artifactId>
22-
<version>${cloud-common-exception.version}</version>
2322
</dependency>
2423

2524
<dependency>

cloud-service-user/pom.xml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@
1818
<dependency>
1919
<groupId>com.erdaoya</groupId>
2020
<artifactId>cloud-common-mvc-custom</artifactId>
21-
<version>${cloud-common-mvc-custom.version}</version>
2221
</dependency>
2322
<dependency>
2423
<groupId>com.erdaoya</groupId>
2524
<artifactId>cloud-common-exception</artifactId>
26-
<version>${cloud-common-exception.version}</version>
2725
</dependency>
2826

2927
<!--discovery-->
@@ -50,7 +48,6 @@
5048
<dependency>
5149
<groupId>com.alibaba</groupId>
5250
<artifactId>druid</artifactId>
53-
<version>${druid.version}</version>
5451
</dependency>
5552
<dependency>
5653
<groupId>mysql</groupId>
@@ -59,10 +56,8 @@
5956
<dependency>
6057
<groupId>org.mybatis.spring.boot</groupId>
6158
<artifactId>mybatis-spring-boot-starter</artifactId>
62-
<version>${mybatis-spring-boot-starter.version}</version>
6359
</dependency>
6460

65-
6661
<dependency>
6762
<groupId>org.springframework.cloud</groupId>
6863
<artifactId>spring-cloud-sleuth-stream</artifactId>
@@ -80,17 +75,15 @@
8075
<dependency>
8176
<groupId>io.springfox</groupId>
8277
<artifactId>springfox-swagger2</artifactId>
83-
<version>${swagger2.version}</version>
78+
<version>2.4.0</version>
8479
</dependency>
8580
<dependency>
8681
<groupId>io.springfox</groupId>
8782
<artifactId>springfox-swagger-ui</artifactId>
88-
<version>${swagger2.version}</version>
8983
</dependency>
9084
<dependency>
9185
<groupId>io.springfox</groupId>
9286
<artifactId>springfox-spi</artifactId>
93-
<version>${swagger2.version}</version>
9487
</dependency>
9588

9689
</dependencies>

cloud-zipkin-ui/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
<dependency>
4141
<groupId>com.alibaba</groupId>
4242
<artifactId>druid</artifactId>
43-
<version>${druid.version}</version>
4443
</dependency>
4544

4645
<dependency>

pom.xml

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<packaging>pom</packaging>
1010

1111
<modules>
12+
<module>cloud-project-dependencies</module>
1213
<module>cloud-common-exception</module>
1314
<module>cloud-common-mvc-custom</module>
1415
<module>cloud-common-actuator-maven</module>
@@ -26,40 +27,24 @@
2627
<module>cloud-service-user</module>
2728
<module>cloud-api-gateway</module>
2829
</modules>
29-
30-
<parent>
31-
<groupId>org.springframework.boot</groupId>
32-
<artifactId>spring-boot-starter-parent</artifactId>
33-
<version>1.5.2.RELEASE</version>
34-
</parent>
35-
3630
<properties>
3731
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3832
<java.version>1.8</java.version>
3933

34+
<!--plugin version-->
4035
<docker.plugin.version>0.4.13</docker.plugin.version>
4136
<resources.plugin.version>3.0.2</resources.plugin.version>
37+
38+
<!--docker config-->
4239
<docker.repo>registry2.io:5000</docker.repo>
4340
<!--<docker.image.prefix>${docker.repo}/erdaoya</docker.image.prefix>-->
4441
<docker.image.prefix>erdaoya</docker.image.prefix>
4542

46-
<spring-boot-admin.version>1.5.2</spring-boot-admin.version>
47-
<druid.version>1.0.15</druid.version>
48-
<lombok.version>1.12.2</lombok.version>
49-
<mybatis-spring-boot-starter.version>1.1.1</mybatis-spring-boot-starter.version>
50-
<swagger2.version>2.4.0</swagger2.version>
51-
<jolokia.version>1.3.5</jolokia.version>
52-
53-
<cloud-common-exception.version>1.0-SNAPSHOT</cloud-common-exception.version>
54-
<cloud-common-mvc-custom.version>1.0-SNAPSHOT</cloud-common-mvc-custom.version>
55-
5643
</properties>
57-
5844
<dependencies>
5945
<dependency>
6046
<groupId>org.projectlombok</groupId>
6147
<artifactId>lombok</artifactId>
62-
<version>${lombok.version}</version>
6348
</dependency>
6449
<dependency>
6550
<groupId>org.springframework.boot</groupId>
@@ -69,11 +54,6 @@
6954
<groupId>org.springframework.boot</groupId>
7055
<artifactId>spring-boot-starter-actuator</artifactId>
7156
</dependency>
72-
<dependency>
73-
<groupId>org.jolokia</groupId>
74-
<artifactId>jolokia-core</artifactId>
75-
<version>${jolokia.version}</version>
76-
</dependency>
7757
<dependency>
7858
<groupId>org.springframework.boot</groupId>
7959
<artifactId>spring-boot-starter-test</artifactId>
@@ -97,13 +77,31 @@
9777
</distributionManagement>-->
9878
<dependencyManagement>
9979
<dependencies>
80+
<dependency>
81+
<groupId>com.erdaoya</groupId>
82+
<artifactId>cloud-project-dependencies</artifactId>
83+
<version>1.0-SNAPSHOT</version>
84+
<type>pom</type>
85+
<scope>import</scope>
86+
</dependency>
87+
<dependency>
88+
<groupId>org.springframework.boot</groupId>
89+
<artifactId>spring-boot-dependencies</artifactId>
90+
<version>1.5.2.RELEASE</version>
91+
<type>pom</type>
92+
<scope>import</scope>
93+
</dependency>
10094
<dependency>
10195
<groupId>org.springframework.cloud</groupId>
10296
<artifactId>spring-cloud-dependencies</artifactId>
10397
<version>Dalston.SR1</version>
10498
<type>pom</type>
10599
<scope>import</scope>
106100
</dependency>
101+
<dependency>
102+
<groupId>io.springfox</groupId>
103+
<artifactId>springfox-swagger2</artifactId>
104+
</dependency>
107105
</dependencies>
108106
</dependencyManagement>
109107
<repositories>
@@ -172,6 +170,7 @@
172170
<execution>
173171
<goals>
174172
<goal>build-info</goal>
173+
<goal>repackage</goal>
175174
</goals>
176175
</execution>
177176
</executions>

0 commit comments

Comments
 (0)