my-csc-config-file.git %!s(int64=5) %!d(string=hai) anos
pai
achega
47f7d68c54
Modificáronse 1 ficheiros con 138 adicións e 0 borrados
  1. 138 0
      pom.xml

+ 138 - 0
pom.xml

@@ -0,0 +1,138 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://maven.apache.org/POM/4.0.0"
3
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+    <parent>
6
+        <groupId>org.springframework.boot</groupId>
7
+        <artifactId>spring-boot-starter-parent</artifactId>
8
+        <version>2.1.2.RELEASE</version>
9
+        <relativePath/> <!-- lookup parent from repository -->
10
+    </parent>
11
+
12
+    <modelVersion>4.0.0</modelVersion>
13
+    <packaging>pom</packaging>
14
+    <modules>
15
+        <module>../csc-szls-common-utils</module>
16
+        <module>../csc-szls-eureka</module>
17
+        <module>../csc-szls-gateway</module>
18
+        <module>../csc-szls-oauth</module>
19
+        <module>../csc-szls-system-manage</module>
20
+        <module>../csc-szls-config-server</module>
21
+        <module>../csc-szls-business</module>
22
+    </modules>
23
+
24
+    <groupId>com.unissoft</groupId>
25
+    <artifactId>csc-szls-parent</artifactId>
26
+    <version>1.0-SNAPSHOT</version>
27
+    <description>父工程</description>
28
+
29
+    <!--版本-->
30
+    <properties>
31
+        <java.version>1.8</java.version>
32
+        <spring-cloud.version>Greenwich.RELEASE</spring-cloud.version>
33
+        <platform-bom.version>Cairo-RELEASE</platform-bom.version>
34
+        <swagger.version>2.9.2</swagger.version>
35
+    </properties>
36
+    <!--子项目可直接用-->
37
+    <dependencies>
38
+        <!-- springboot实现热部署 -->
39
+        <dependency>
40
+            <groupId>org.springframework.boot</groupId>
41
+            <artifactId>spring-boot-devtools</artifactId>
42
+            <optional>true</optional>
43
+        </dependency>
44
+        <dependency>
45
+            <groupId>cn.hutool</groupId>
46
+            <artifactId>hutool-all</artifactId>
47
+            <version>5.3.6</version>
48
+        </dependency>
49
+        <!--org.json-->
50
+        <dependency>
51
+            <groupId>org.json</groupId>
52
+            <artifactId>json</artifactId>
53
+            <version>20180813</version>
54
+        </dependency>
55
+
56
+        <!--对象 json转换-->
57
+        <dependency>
58
+            <groupId>com.alibaba</groupId>
59
+            <artifactId>fastjson</artifactId>
60
+            <version>1.2.37</version>
61
+        </dependency>
62
+    </dependencies>
63
+    <!--子项目要引入依赖(填写groupId,artifactId)才可以用-->
64
+    <dependencyManagement>
65
+        <dependencies>
66
+            <!--Spring Cloud 版本系列-->
67
+            <dependency>
68
+                <groupId>org.springframework.cloud</groupId>
69
+                <artifactId>spring-cloud-dependencies</artifactId>
70
+                <version>${spring-cloud.version}</version>
71
+                <type>pom</type>
72
+                <scope>import</scope>
73
+            </dependency>
74
+
75
+            <!--swagger-->
76
+            <dependency>
77
+                <groupId>io.springfox</groupId>
78
+                <artifactId>springfox-swagger2</artifactId>
79
+                <version>${swagger.version}</version>
80
+            </dependency>
81
+            <dependency>
82
+                <groupId>io.springfox</groupId>
83
+                <artifactId>springfox-swagger-ui</artifactId>
84
+                <version>${swagger.version}</version>
85
+            </dependency>
86
+
87
+            <!-- mybatisplus与springboot整合 -->
88
+            <dependency>
89
+                <groupId>com.baomidou</groupId>
90
+                <artifactId>mybatis-plus-boot-starter</artifactId>
91
+                <version>3.4.1</version>
92
+            </dependency>
93
+            <!-- springboot整合mybatis(核心就这一个) -->
94
+            <!-- 注意顺序,这个一定要放在最下面 -->
95
+            <dependency>
96
+                <groupId>org.mybatis.spring.boot</groupId>
97
+                <artifactId>mybatis-spring-boot-starter</artifactId>
98
+                <version>2.0.1</version>
99
+            </dependency>
100
+
101
+            <!--使用security-jwt-->
102
+            <dependency>
103
+                <groupId>org.springframework.security</groupId>
104
+                <artifactId>spring-security-jwt</artifactId>
105
+                <version>1.0.10.RELEASE</version>
106
+            </dependency>
107
+        </dependencies>
108
+    </dependencyManagement>
109
+
110
+    <build>
111
+        <plugins>
112
+            <plugin>
113
+                <groupId>org.springframework.boot</groupId>
114
+                <artifactId>spring-boot-maven-plugin</artifactId>
115
+                <!-- 这块一定要配置否则打jar的时候会说找不到主类 -->
116
+                <configuration>
117
+                    <mainClass>com.lock.platform.LockApplication</mainClass>
118
+                </configuration>
119
+            </plugin>
120
+        </plugins>
121
+    </build>
122
+    <!-- 有些依赖可能下载不到,用这个地址试下 -->
123
+    <repositories>
124
+        <repository>
125
+            <id>spring-snapshots</id>
126
+            <name>Spring Snapshots</name>
127
+            <url>https://repo.spring.io/snapshot</url>
128
+            <snapshots>
129
+                <enabled>true</enabled>
130
+            </snapshots>
131
+        </repository>
132
+        <repository>
133
+            <id>spring-milestones</id>
134
+            <name>Spring Milestones</name>
135
+            <url>https://repo.spring.io/milestone</url>
136
+        </repository>
137
+    </repositories>
138
+</project>