Commit cf7e3bc977aec6e8e6a86748959208939879a507
0 parents
init
Showing
23 changed files
with
1171 additions
and
0 deletions
.gitignore
0 → 100644
1 | +++ a/.gitignore | |
1 | +.idea | |
2 | +*.iml | |
3 | +/*/target/ | |
4 | +**/*.settings/ | |
5 | +**/.project | |
6 | +**/target/ | |
7 | +**/.classpath | |
8 | +**/logs/ | |
9 | +**/*.iml | |
10 | +**/.settings | |
11 | +**/*.class | |
12 | +**/*.pyc | |
13 | +**/target | |
14 | +**/.idea | |
15 | +**/*.log | |
16 | +.settings | |
17 | +.project | |
18 | +.classpath | |
19 | +*.class | |
20 | +*.pyc | |
21 | +target | |
22 | +**/.cache/ | |
23 | +*.log | |
24 | +/bin/ | |
25 | +/*-logs/ | |
26 | +**/banner.txt | |
27 | +**/.DS_Store | |
0 | 28 | \ No newline at end of file | ... | ... |
README.md
0 → 100644
fw-hestia-common/pom.xml
0 → 100644
1 | +++ a/fw-hestia-common/pom.xml | |
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 | + <artifactId>fw-hestia</artifactId> | |
7 | + <groupId>cn.fw</groupId> | |
8 | + <version>1.0.0</version> | |
9 | + <relativePath>../pom.xml</relativePath> | |
10 | + </parent> | |
11 | + <modelVersion>4.0.0</modelVersion> | |
12 | + | |
13 | + <artifactId>fw-hestia-common</artifactId> | |
14 | + <packaging>jar</packaging> | |
15 | + <name>fw-hestia-common</name> | |
16 | + | |
17 | + <build> | |
18 | + <plugins> | |
19 | + <plugin> | |
20 | + <groupId>org.apache.maven.plugins</groupId> | |
21 | + <artifactId>maven-deploy-plugin</artifactId> | |
22 | + <configuration> | |
23 | + <skip>true</skip> | |
24 | + </configuration> | |
25 | + </plugin> | |
26 | + </plugins> | |
27 | + </build> | |
28 | + | |
29 | +</project> | |
0 | 30 | \ No newline at end of file | ... | ... |
fw-hestia-common/src/main/java/Demo.java
0 → 100644
fw-hestia-dao/pom.xml
0 → 100644
1 | +++ a/fw-hestia-dao/pom.xml | |
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 | + <artifactId>fw-hestia</artifactId> | |
7 | + <groupId>cn.fw</groupId> | |
8 | + <version>1.0.0</version> | |
9 | + <relativePath>../pom.xml</relativePath> | |
10 | + </parent> | |
11 | + <modelVersion>4.0.0</modelVersion> | |
12 | + | |
13 | + <artifactId>fw-hestia-dao</artifactId> | |
14 | + <packaging>jar</packaging> | |
15 | + <name>fw-hestia-dao</name> | |
16 | + <dependencies> | |
17 | + <!-- mybatis --> | |
18 | + <dependency> | |
19 | + <groupId>com.baomidou</groupId> | |
20 | + <artifactId>mybatis-plus-core</artifactId> | |
21 | + <optional>true</optional> | |
22 | + </dependency> | |
23 | + <dependency> | |
24 | + <groupId>com.baomidou</groupId> | |
25 | + <artifactId>mybatis-plus-extension</artifactId> | |
26 | + <optional>true</optional> | |
27 | + </dependency> | |
28 | + <dependency> | |
29 | + <groupId>cn.fw</groupId> | |
30 | + <artifactId>fw-hestia-domain</artifactId> | |
31 | + </dependency> | |
32 | + <dependency> | |
33 | + <groupId>cn.fw</groupId> | |
34 | + <artifactId>fw-hestia-common</artifactId> | |
35 | + </dependency> | |
36 | + </dependencies> | |
37 | + | |
38 | + <build> | |
39 | + <plugins> | |
40 | + <plugin> | |
41 | + <groupId>org.apache.maven.plugins</groupId> | |
42 | + <artifactId>maven-deploy-plugin</artifactId> | |
43 | + <configuration> | |
44 | + <skip>true</skip> | |
45 | + </configuration> | |
46 | + </plugin> | |
47 | + </plugins> | |
48 | + </build> | |
49 | +</project> | |
0 | 50 | \ No newline at end of file | ... | ... |
fw-hestia-dao/src/main/java/Demo.java
0 → 100644
fw-hestia-domain/pom.xml
0 → 100644
1 | +++ a/fw-hestia-domain/pom.xml | |
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 | + <artifactId>fw-hestia</artifactId> | |
7 | + <groupId>cn.fw</groupId> | |
8 | + <version>1.0.0</version> | |
9 | + <relativePath>../pom.xml</relativePath> | |
10 | + </parent> | |
11 | + <modelVersion>4.0.0</modelVersion> | |
12 | + | |
13 | + <artifactId>fw-hestia-domain</artifactId> | |
14 | + <name>fw-hestia-domain</name> | |
15 | + <packaging>jar</packaging> | |
16 | + | |
17 | + <dependencies> | |
18 | + <dependency> | |
19 | + <groupId>org.springframework.boot</groupId> | |
20 | + <artifactId>spring-boot-starter-validation</artifactId> | |
21 | + </dependency> | |
22 | + <dependency> | |
23 | + <groupId>cn.fw</groupId> | |
24 | + <artifactId>fw-data-base</artifactId> | |
25 | + </dependency> | |
26 | + <dependency> | |
27 | + <groupId>org.springframework</groupId> | |
28 | + <artifactId>spring-web</artifactId> | |
29 | + <optional>true</optional> | |
30 | + </dependency> | |
31 | + <dependency> | |
32 | + <groupId>org.projectlombok</groupId> | |
33 | + <artifactId>lombok</artifactId> | |
34 | + <scope>provided</scope> | |
35 | + </dependency> | |
36 | + <dependency> | |
37 | + <groupId>cn.fw</groupId> | |
38 | + <artifactId>fw-common-data</artifactId> | |
39 | + </dependency> | |
40 | + </dependencies> | |
41 | + | |
42 | + <build> | |
43 | + <plugins> | |
44 | + <plugin> | |
45 | + <groupId>org.apache.maven.plugins</groupId> | |
46 | + <artifactId>maven-deploy-plugin</artifactId> | |
47 | + <configuration> | |
48 | + <skip>true</skip> | |
49 | + </configuration> | |
50 | + </plugin> | |
51 | + </plugins> | |
52 | + </build> | |
53 | + | |
54 | +</project> | |
0 | 55 | \ No newline at end of file | ... | ... |
fw-hestia-domain/src/main/java/Demo.java
0 → 100644
fw-hestia-sdk/pom.xml
0 → 100644
1 | +++ a/fw-hestia-sdk/pom.xml | |
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 | + <artifactId>fw-hestia</artifactId> | |
7 | + <groupId>cn.fw</groupId> | |
8 | + <version>1.0.0</version> | |
9 | + <relativePath>../pom.xml</relativePath> | |
10 | + </parent> | |
11 | + <modelVersion>4.0.0</modelVersion> | |
12 | + | |
13 | + <artifactId>fw-hestia-sdk</artifactId> | |
14 | + <packaging>jar</packaging> | |
15 | + <name>fw-hestia-sdk</name> | |
16 | + <version>1.0.0</version> | |
17 | + | |
18 | + <properties> | |
19 | + <hibernate.validator>5.3.6.Final</hibernate.validator> | |
20 | + </properties> | |
21 | + | |
22 | + <dependencies> | |
23 | + <dependency> | |
24 | + <groupId>org.springframework.cloud</groupId> | |
25 | + <artifactId>spring-cloud-openfeign-core</artifactId> | |
26 | + <optional>true</optional> | |
27 | + </dependency> | |
28 | + <dependency> | |
29 | + <groupId>javax.validation</groupId> | |
30 | + <artifactId>validation-api</artifactId> | |
31 | + <optional>true</optional> | |
32 | + </dependency> | |
33 | + <dependency> | |
34 | + <groupId>cn.fw</groupId> | |
35 | + <artifactId>fw-data-base</artifactId> | |
36 | + <optional>true</optional> | |
37 | + </dependency> | |
38 | + <dependency> | |
39 | + <groupId>org.hibernate</groupId> | |
40 | + <artifactId>hibernate-validator</artifactId> | |
41 | + <version>${hibernate.validator}</version> | |
42 | + <scope>provided</scope> | |
43 | + </dependency> | |
44 | + <dependency> | |
45 | + <groupId>cn.fw</groupId> | |
46 | + <artifactId>fw-common-data</artifactId> | |
47 | + </dependency> | |
48 | + </dependencies> | |
49 | + | |
50 | + <build> | |
51 | + <plugins> | |
52 | + <plugin> | |
53 | + <groupId>org.apache.maven.plugins</groupId> | |
54 | + <artifactId>maven-source-plugin</artifactId> | |
55 | + <version>${maven-source-plugin.version}</version> | |
56 | + <executions> | |
57 | + <execution> | |
58 | + <id>attach-sources</id> | |
59 | + <goals> | |
60 | + <goal>jar</goal> | |
61 | + </goals> | |
62 | + </execution> | |
63 | + </executions> | |
64 | + </plugin> | |
65 | + </plugins> | |
66 | + </build> | |
67 | + | |
68 | +</project> | |
0 | 69 | \ No newline at end of file | ... | ... |
fw-hestia-sdk/src/main/java/Demo.java
0 → 100644
fw-hestia-server/pom.xml
0 → 100644
1 | +++ a/fw-hestia-server/pom.xml | |
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 | + <artifactId>fw-hestia</artifactId> | |
7 | + <groupId>cn.fw</groupId> | |
8 | + <version>1.0.0</version> | |
9 | + <relativePath>../pom.xml</relativePath> | |
10 | + </parent> | |
11 | + <modelVersion>4.0.0</modelVersion> | |
12 | + | |
13 | + <artifactId>fw-hestia-server</artifactId> | |
14 | + <packaging>jar</packaging> | |
15 | + <name>fw-hestia-server</name> | |
16 | + <description>C端消息中心server端</description> | |
17 | + | |
18 | + <dependencies> | |
19 | + <dependency> | |
20 | + <groupId>com.nepxion</groupId> | |
21 | + <artifactId>discovery-plugin-starter-nacos</artifactId> | |
22 | + </dependency> | |
23 | + <dependency> | |
24 | + <groupId>com.nepxion</groupId> | |
25 | + <artifactId>discovery-plugin-config-center-starter-nacos</artifactId> | |
26 | + </dependency> | |
27 | + <dependency> | |
28 | + <groupId>com.nepxion</groupId> | |
29 | + <artifactId>discovery-plugin-strategy-starter-service</artifactId> | |
30 | + </dependency> | |
31 | + <!-- spring --> | |
32 | + <dependency> | |
33 | + <groupId>org.springframework.cloud</groupId> | |
34 | + <artifactId>spring-cloud-starter-openfeign</artifactId> | |
35 | + </dependency> | |
36 | + <dependency> | |
37 | + <groupId>org.springframework.boot</groupId> | |
38 | + <artifactId>spring-boot-starter-web</artifactId> | |
39 | + </dependency> | |
40 | + <dependency> | |
41 | + <groupId>org.springframework.boot</groupId> | |
42 | + <artifactId>spring-boot-starter-validation</artifactId> | |
43 | + </dependency> | |
44 | + <dependency> | |
45 | + <groupId>org.springframework.boot</groupId> | |
46 | + <artifactId>spring-boot-starter-actuator</artifactId> | |
47 | + </dependency> | |
48 | + <dependency> | |
49 | + <groupId>org.springframework.boot</groupId> | |
50 | + <artifactId>spring-boot-starter-undertow</artifactId> | |
51 | + </dependency> | |
52 | + <dependency> | |
53 | + <groupId>org.springframework.boot</groupId> | |
54 | + <artifactId>spring-boot-configuration-processor</artifactId> | |
55 | + <optional>true</optional> | |
56 | + </dependency> | |
57 | + <!-- util --> | |
58 | + <dependency> | |
59 | + <groupId>com.zaxxer</groupId> | |
60 | + <artifactId>HikariCP</artifactId> | |
61 | + <scope>compile</scope> | |
62 | + </dependency> | |
63 | + <dependency> | |
64 | + <groupId>mysql</groupId> | |
65 | + <artifactId>mysql-connector-java</artifactId> | |
66 | + </dependency> | |
67 | + <!-- fw-local --> | |
68 | + <dependency> | |
69 | + <groupId>cn.fw</groupId> | |
70 | + <artifactId>fw-pstn-service</artifactId> | |
71 | + </dependency> | |
72 | + <!-- fw-remote --> | |
73 | + <dependency> | |
74 | + <groupId>cn.fw</groupId> | |
75 | + <artifactId>fw-auth-client</artifactId> | |
76 | + </dependency> | |
77 | + <!-- fw-common --> | |
78 | + <dependency> | |
79 | + <groupId>cn.fw</groupId> | |
80 | + <artifactId>fw-common-starter-web</artifactId> | |
81 | + </dependency> | |
82 | + <dependency> | |
83 | + <groupId>cn.fw</groupId> | |
84 | + <artifactId>fw-common-starter-mybatis</artifactId> | |
85 | + </dependency> | |
86 | + <dependency> | |
87 | + <groupId>cn.fw</groupId> | |
88 | + <artifactId>fw-common-starter-cache</artifactId> | |
89 | + </dependency> | |
90 | + <dependency> | |
91 | + <groupId>org.springframework.boot</groupId> | |
92 | + <artifactId>spring-boot-starter-test</artifactId> | |
93 | + <scope>test</scope> | |
94 | + <exclusions> | |
95 | + <exclusion> | |
96 | + <groupId>junit</groupId> | |
97 | + <artifactId>junit</artifactId> | |
98 | + </exclusion> | |
99 | + </exclusions> | |
100 | + </dependency> | |
101 | + <dependency> | |
102 | + <groupId>org.junit.jupiter</groupId> | |
103 | + <artifactId>junit-jupiter-engine</artifactId> | |
104 | + <scope>test</scope> | |
105 | + </dependency> | |
106 | + | |
107 | + <dependency> | |
108 | + <groupId>io.micrometer</groupId> | |
109 | + <artifactId>micrometer-registry-prometheus</artifactId> | |
110 | + </dependency> | |
111 | + <dependency> | |
112 | + <groupId>cn.hutool</groupId> | |
113 | + <artifactId>hutool-all</artifactId> | |
114 | + </dependency> | |
115 | + | |
116 | + </dependencies> | |
117 | + | |
118 | + <build> | |
119 | + <finalName>fw-pstn-server</finalName> | |
120 | + <resources> | |
121 | + <resource> | |
122 | + <directory>src/main/resources</directory> | |
123 | + <filtering>true</filtering> | |
124 | + <includes> | |
125 | + <include>**/*.yml</include> | |
126 | + <include>**/*.properties</include> | |
127 | + <include>**/*.xml</include> | |
128 | + </includes> | |
129 | + </resource> | |
130 | + </resources> | |
131 | + <plugins> | |
132 | + <plugin> | |
133 | + <groupId>org.springframework.boot</groupId> | |
134 | + <artifactId>spring-boot-maven-plugin</artifactId> | |
135 | + <executions> | |
136 | + <execution> | |
137 | + <goals> | |
138 | + <goal>repackage</goal> | |
139 | + </goals> | |
140 | + </execution> | |
141 | + </executions> | |
142 | + <configuration> | |
143 | + <fork>true</fork> | |
144 | + <executable>true</executable> | |
145 | + </configuration> | |
146 | + </plugin> | |
147 | + <plugin> | |
148 | + <groupId>org.apache.maven.plugins</groupId> | |
149 | + <artifactId>maven-deploy-plugin</artifactId> | |
150 | + <configuration> | |
151 | + <skip>true</skip> | |
152 | + </configuration> | |
153 | + </plugin> | |
154 | + </plugins> | |
155 | + </build> | |
156 | + | |
157 | + <profiles> | |
158 | + <profile> | |
159 | + <id>local-dev</id> | |
160 | + <properties> | |
161 | + <activatedProfiles>dev,local</activatedProfiles> | |
162 | + </properties> | |
163 | + <activation> | |
164 | + <activeByDefault>true</activeByDefault> | |
165 | + </activation> | |
166 | + </profile> | |
167 | + <profile> | |
168 | + <id>local-test</id> | |
169 | + <properties> | |
170 | + <activatedProfiles>test,local</activatedProfiles> | |
171 | + </properties> | |
172 | + </profile> | |
173 | + <profile> | |
174 | + <id>dev</id> | |
175 | + <properties> | |
176 | + <activatedProfiles>dev</activatedProfiles> | |
177 | + </properties> | |
178 | + </profile> | |
179 | + <profile> | |
180 | + <id>test</id> | |
181 | + <properties> | |
182 | + <activatedProfiles>test</activatedProfiles> | |
183 | + </properties> | |
184 | + </profile> | |
185 | + <profile> | |
186 | + <id>gray</id> | |
187 | + <properties> | |
188 | + <activatedProfiles>gray</activatedProfiles> | |
189 | + </properties> | |
190 | + </profile> | |
191 | + <profile> | |
192 | + <id>prd</id> | |
193 | + <properties> | |
194 | + <activatedProfiles>prd</activatedProfiles> | |
195 | + <logMaxHistory>7</logMaxHistory> | |
196 | + <logfileMaxSize>1GB</logfileMaxSize> | |
197 | + <logTotalSizeCap>1GB</logTotalSizeCap> | |
198 | + </properties> | |
199 | + </profile> | |
200 | + </profiles> | |
201 | +</project> | |
0 | 202 | \ No newline at end of file | ... | ... |
fw-hestia-server/src/main/java/Demo.java
0 → 100644
fw-hestia-server/src/main/resources/application-dev.yml
0 → 100644
1 | +++ a/fw-hestia-server/src/main/resources/application-dev.yml | |
1 | +server: | |
2 | + port: 8140 | |
3 | +spring: | |
4 | + cloud: | |
5 | + nacos: | |
6 | + discovery: | |
7 | + metadata: | |
8 | + group: discovery-dev-group | |
9 | + region: dev | |
10 | + version: 1.0 | |
11 | + namespace: df959b8c-de58-4d02-b9fb-d65ca3be05f3 | |
12 | +logging: | |
13 | + file: | |
14 | + max-history: 7 | |
15 | + max-size: 1GB | |
16 | + level: | |
17 | + cn: | |
18 | + fw: INFO | |
19 | +nacos: | |
20 | + plugin: | |
21 | + namespace: df959b8c-de58-4d02-b9fb-d65ca3be05f3 | |
0 | 22 | \ No newline at end of file | ... | ... |
fw-hestia-server/src/main/resources/application-gray.yml
0 → 100644
1 | +++ a/fw-hestia-server/src/main/resources/application-gray.yml | |
1 | +spring: | |
2 | + cloud: | |
3 | + nacos: | |
4 | + discovery: | |
5 | + metadata: | |
6 | + group: discovery-gray-group | |
7 | + region: gray | |
8 | + version: 1.0 | |
9 | + server-addr: 192.168.0.91:8848 | |
10 | + datasource: | |
11 | + url: jdbc:mysql://192.168.0.101:3306/fw_hestia?characterEncoding=UTF-8&useSSL=false | |
12 | + username: root | |
13 | + password: Feewee@root123 | |
14 | + redis: | |
15 | + host: 192.168.0.101 | |
16 | + url: | |
17 | + http-file-url: https://gate.feewee.cn/file | |
18 | + | |
19 | +fastdfs: | |
20 | + charset: UTF-8 | |
21 | + connectTimeout: 2 | |
22 | + group: cardfs | |
23 | + networkTimeout: 30 | |
24 | + port: 8080 | |
25 | + secretKey: FastDFS1234567890 | |
26 | + servers: 192.168.0.91:22122 | |
27 | + token: 'no' | |
28 | + | |
29 | +jedis: | |
30 | + pool: | |
31 | + host: 192.168.0.101 | |
32 | +logging: | |
33 | + file: | |
34 | + max-history: 7 | |
35 | + max-size: 1GB | |
36 | + level: | |
37 | + cn: | |
38 | + fw: INFO | |
39 | +nacos: | |
40 | + server-addr: 192.168.0.91:8848 | |
41 | +rocketmq: | |
42 | + name-server: 192.168.0.91:9876 | |
43 | + | |
44 | +task: | |
45 | + switch: 'on' | |
0 | 46 | \ No newline at end of file | ... | ... |
fw-hestia-server/src/main/resources/application-local.yml
0 → 100644
1 | +++ a/fw-hestia-server/src/main/resources/application-local.yml | |
1 | +logging: | |
2 | + file: | |
3 | + max-history: 7 | |
4 | + max-size: 1GB | |
5 | + level: | |
6 | + cn: | |
7 | + fw: DEBUG | |
8 | +nacos: | |
9 | + plugin: | |
10 | + namespace: df959b8c-de58-4b02-b9fb-d65ca3be05f3 | |
11 | +spring: | |
12 | + application: | |
13 | + name: fw-hestia-local | |
14 | + | |
15 | +task: | |
16 | + switch: 'off' | ... | ... |
fw-hestia-server/src/main/resources/application-prd.yml
0 → 100644
1 | +++ a/fw-hestia-server/src/main/resources/application-prd.yml | |
1 | +spring: | |
2 | + cloud: | |
3 | + nacos: | |
4 | + discovery: | |
5 | + metadata: | |
6 | + group: discovery-prd-group | |
7 | + region: prd | |
8 | + version: 1.0 | |
9 | + server-addr: 192.168.0.91:8848 | |
10 | + datasource: | |
11 | + url: jdbc:mysql://192.168.0.101:3306/fw_hestia?characterEncoding=UTF-8&useSSL=false | |
12 | + username: root | |
13 | + password: Feewee@root123 | |
14 | + redis: | |
15 | + host: 192.168.0.101 | |
16 | + url: | |
17 | + http-file-url: https://gate.feewee.cn/file | |
18 | + | |
19 | +fastdfs: | |
20 | + charset: UTF-8 | |
21 | + connectTimeout: 2 | |
22 | + group: cardfs | |
23 | + networkTimeout: 30 | |
24 | + port: 8080 | |
25 | + secretKey: FastDFS1234567890 | |
26 | + servers: 192.168.0.91:22122 | |
27 | + token: 'no' | |
28 | + | |
29 | +jedis: | |
30 | + pool: | |
31 | + host: 192.168.0.101 | |
32 | +logging: | |
33 | + file: | |
34 | + max-history: 15 | |
35 | + max-size: 1GB | |
36 | + level: | |
37 | + cn: | |
38 | + fw: INFO | |
39 | +nacos: | |
40 | + server-addr: 192.168.0.91:8848 | |
41 | +rocketmq: | |
42 | + name-server: 192.168.0.91:9876 | |
43 | + | |
44 | +task: | |
45 | + switch: 'on' | ... | ... |
fw-hestia-server/src/main/resources/application-test.yml
0 → 100644
1 | +++ a/fw-hestia-server/src/main/resources/application-test.yml | |
1 | +spring: | |
2 | + cloud: | |
3 | + nacos: | |
4 | + discovery: | |
5 | + metadata: | |
6 | + group: discovery-test-group | |
7 | + region: test | |
8 | + version: 1.0 | |
9 | + namespace: 0ba6d5d6-2a49-4086-b6c3-dbeec01c61a4 | |
10 | + datasource: | |
11 | + password: mysql@pwd123 | |
12 | + url: jdbc:mysql://192.168.0.9:3306/fw_hestia?characterEncoding=UTF-8&useSSL=false | |
13 | + username: test | |
14 | + redis: | |
15 | + host: 192.168.0.9 | |
16 | + url: | |
17 | + http-file-url: https://testgate.feewee.cn/file | |
18 | + | |
19 | +nacos: | |
20 | + plugin: | |
21 | + namespace: 0ba6d5d6-2a49-4086-b6b3-dbeec01c61a4 | |
22 | + | |
23 | +rocketmq: | |
24 | + name-server: 192.168.0.230:9876 | |
25 | + | |
26 | + | |
27 | +fastdfs: | |
28 | + charset: UTF-8 | |
29 | + connectTimeout: 2 | |
30 | + group: cardfs | |
31 | + networkTimeout: 30 | |
32 | + port: 8080 | |
33 | + secretKey: FastDFS1234567890 | |
34 | + servers: 192.168.0.230:22122 | |
35 | + token: 'no' | |
36 | + | |
37 | +jedis: | |
38 | + pool: | |
39 | + host: 192.168.0.9 | |
40 | +logging: | |
41 | + file: | |
42 | + max-history: 15 | |
43 | + max-size: 1GB | |
44 | + level: | |
45 | + cn: | |
46 | + fw: INFO | |
47 | + | |
48 | +task: | |
49 | + switch: 'on' | ... | ... |
fw-hestia-server/src/main/resources/application.yml
0 → 100644
1 | +++ a/fw-hestia-server/src/main/resources/application.yml | |
1 | +spring: | |
2 | + application: | |
3 | + name: fw-hestia | |
4 | + attachment: | |
5 | + invoker-system: hestia | |
6 | + cache: | |
7 | + locker: | |
8 | + key-prefix: 'hestia:locker' | |
9 | + custom: | |
10 | + global-prefix: 'hestia' | |
11 | + | |
12 | + cloud: | |
13 | + nacos: | |
14 | + discovery: | |
15 | + server-addr: 192.168.0.230:8848 | |
16 | + datasource: | |
17 | + driver-class-name: com.mysql.jdbc.Driver | |
18 | + hikari: | |
19 | + connection-test-query: SELECT 1 FROM DUAL | |
20 | + password: mysql@pwd123 | |
21 | + url: jdbc:mysql://192.168.0.8:3306/fw_hestia?characterEncoding=UTF-8&useSSL=false | |
22 | + username: root | |
23 | + jackson: | |
24 | + default-property-inclusion: non_null | |
25 | + serialization: | |
26 | + write-dates-as-timestamps: true | |
27 | + time-zone: GMT+8 | |
28 | + main: | |
29 | + allow-bean-definition-overriding: true | |
30 | + profiles: | |
31 | + active: cache,${activatedProfiles} | |
32 | + redis: | |
33 | + host: 192.168.0.8 | |
34 | + lettuce: | |
35 | + pool: | |
36 | + max-active: 20 | |
37 | + max-wait: 1S | |
38 | + min-idle: 3 | |
39 | + port: 6379 | |
40 | + database: 3 | |
41 | + rest-result-processor: | |
42 | + enabled: false | |
43 | + servlet: | |
44 | + multipart: | |
45 | + enabled: true | |
46 | + max-file-size: 50MB | |
47 | + max-request-size: 100MB | |
48 | + | |
49 | +auth: | |
50 | + aes: | |
51 | + key: bN7DVjFMJPcoWDcR | |
52 | + ignore: | |
53 | + start-with: /user/*,/role/*,/user/login | |
54 | +fastdfs: | |
55 | + charset: UTF-8 | |
56 | + connectTimeout: 2 | |
57 | + group: pstndfs | |
58 | + networkTimeout: 30 | |
59 | + port: 8080 | |
60 | + secretKey: FastDFS1234567890 | |
61 | + servers: 192.168.0.230:22122 | |
62 | + token: 'no' | |
63 | + | |
64 | +hystrix: | |
65 | + command: | |
66 | + default: | |
67 | + circuitBreaker: | |
68 | + forceClosed: true | |
69 | + sleepWindowInMilliseconds: 100000 | |
70 | + execution: | |
71 | + isolation: | |
72 | + thread: | |
73 | + timeoutInMilliseconds: 3000 | |
74 | + shareSecurityContext: true | |
75 | +info: | |
76 | + build: | |
77 | + artifact: ${project.artifactId} | |
78 | + description: ${project.description} | |
79 | + groupId: ${project.groupId} | |
80 | + name: ${project.name} | |
81 | + version: ${project.version} | |
82 | +jedis: | |
83 | + pool: | |
84 | + config: | |
85 | + max-active: 30 | |
86 | + max-idle: 5 | |
87 | + max-wait-millis: 1000 | |
88 | + min-idle: 3 | |
89 | + test-on-borrow: false | |
90 | + test-on-return: false | |
91 | + test-while-idle: true | |
92 | + host: 192.168.0.8 | |
93 | + port: 6379 | |
94 | + db: 3 | |
95 | +mybatis-plus: | |
96 | + configuration: | |
97 | + cache-enabled: false | |
98 | + local-cache-scope: statement | |
99 | + log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl | |
100 | + map-underscore-to-camel-case: true | |
101 | + mapper-locations: classpath*:mapper/*.xml | |
102 | + type-aliases-package: cn.fw.data.base.db,cn.fw.common.attachment.domain | |
103 | + type-enums-package: cn.fw.hestia.domain.enums.**,cn.fw.hestia.sdk.enums.** | |
104 | + type-handlers-package: cn.fw.common.data.mybatis.handler | |
105 | +nacos: | |
106 | + server-addr: 192.168.0.230:8848 | |
107 | +ribbon: | |
108 | + ConnectTimeout: 30000 | |
109 | + MaxAutoRetries: 0 | |
110 | + MaxAutoRetriesNextServer: 0 | |
111 | + ReadTimeout: 120000 | |
112 | +rocketmq: | |
113 | + name-server: 192.168.0.234:9876 | |
114 | + producer: | |
115 | + group: ${spring.application.name} | |
116 | +server: | |
117 | + port: 8140 | |
118 | + undertow: | |
119 | + worker-threads: 50 | |
120 | + | |
121 | +task: | |
122 | + switch: 'on' | |
0 | 123 | \ No newline at end of file | ... | ... |
fw-hestia-server/src/main/resources/logback-spring.xml
0 → 100644
1 | +++ a/fw-hestia-server/src/main/resources/logback-spring.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<configuration> | |
3 | + <!--引入默认的一些设置--> | |
4 | + <property name="charSet" value="UTF-8"/> | |
5 | + | |
6 | + <springProfile name="prd,gray,test,dev"> | |
7 | + <include resource="logfile.xml"/> | |
8 | + </springProfile> | |
9 | + | |
10 | + <!-- 正式环境 --> | |
11 | + <springProfile name="prd"> | |
12 | + <root level="INFO"> | |
13 | + <appender-ref ref="ASYNC_DEFAULT_FILE"/> | |
14 | + <appender-ref ref="ASYNC_ERROR_FILE"/> | |
15 | + </root> | |
16 | + </springProfile> | |
17 | + | |
18 | + <!-- 正式环境 --> | |
19 | + <springProfile name="gray"> | |
20 | + <root level="INFO"> | |
21 | + <appender-ref ref="ASYNC_DEFAULT_FILE"/> | |
22 | + <appender-ref ref="ASYNC_ERROR_FILE"/> | |
23 | + </root> | |
24 | + </springProfile> | |
25 | + | |
26 | + <!-- 测试环境 --> | |
27 | + <springProfile name="test"> | |
28 | + <root level="INFO"> | |
29 | + <appender-ref ref="ASYNC_DEFAULT_FILE"/> | |
30 | + <appender-ref ref="ASYNC_ERROR_FILE"/> | |
31 | + </root> | |
32 | + </springProfile> | |
33 | + | |
34 | + <!-- 开发环境 --> | |
35 | + <springProfile name="dev"> | |
36 | + <root level="INFO"> | |
37 | + <appender-ref ref="ASYNC_DEFAULT_FILE"/> | |
38 | + <appender-ref ref="ASYNC_ERROR_FILE"/> | |
39 | + </root> | |
40 | + </springProfile> | |
41 | + | |
42 | + <!-- 本地环境 --> | |
43 | + <springProfile name="local"> | |
44 | + <root level="INFO"> | |
45 | + <appender-ref ref="CONSOLE"/> | |
46 | + </root> | |
47 | + </springProfile> | |
48 | +</configuration> | |
0 | 49 | \ No newline at end of file | ... | ... |
fw-hestia-server/src/main/resources/logfile.xml
0 → 100644
1 | +++ a/fw-hestia-server/src/main/resources/logfile.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<included> | |
3 | + <property name="filePrefix" value="fw-pstn"/> | |
4 | + <property name="logMaxHistory" value="2"/> | |
5 | + <property name="logfileMaxSize" value="512MB"/> | |
6 | + <property name="logTotalSizeCap" value="512MB"/> | |
7 | + <!-- 所有日志 --> | |
8 | + <appender name="DEFAULT_FILE" | |
9 | + class="ch.qos.logback.core.rolling.RollingFileAppender"> | |
10 | + <file>${dynamic.log.path}/${filePrefix}_all.log</file> | |
11 | + <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | |
12 | + <fileNamePattern>${dynamic.log.path}/${filePrefix}_all.%d{yyyy-MM-dd}.%i.log</fileNamePattern> | |
13 | + <maxHistory>${logMaxHistory}</maxHistory> | |
14 | + <maxFileSize>${logfileMaxSize}</maxFileSize> | |
15 | + <totalSizeCap>${logTotalSizeCap}</totalSizeCap> | |
16 | + </rollingPolicy> | |
17 | + <encoder> | |
18 | + <pattern>[%-5p] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] [%c] - %m%n</pattern> | |
19 | + <charset>${charSet}</charset> | |
20 | + </encoder> | |
21 | + </appender> | |
22 | + | |
23 | + <!-- 异步:所有日志 --> | |
24 | + <appender name="ASYNC_DEFAULT_FILE" class="ch.qos.logback.classic.AsyncAppender"> | |
25 | + <discardingThreshold>0</discardingThreshold> | |
26 | + <queueSize>500</queueSize> | |
27 | + <appender-ref ref="DEFAULT_FILE"/> | |
28 | + </appender> | |
29 | + | |
30 | + <!-- 错误日志 --> | |
31 | + <appender name="ERROR_FILE" | |
32 | + class="ch.qos.logback.core.rolling.RollingFileAppender"> | |
33 | + <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | |
34 | + <level>ERROR</level> | |
35 | + </filter> | |
36 | + <file>${dynamic.log.path}/${filePrefix}_error.log</file> | |
37 | + <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | |
38 | + <fileNamePattern>${dynamic.log.path}/${filePrefix}_error.%d{yyyy-MM-dd}.%i.log</fileNamePattern> | |
39 | + <maxHistory>${logMaxHistory}</maxHistory> | |
40 | + <maxFileSize>${logfileMaxSize}</maxFileSize> | |
41 | + <totalSizeCap>${logTotalSizeCap}</totalSizeCap> | |
42 | + </rollingPolicy> | |
43 | + <encoder> | |
44 | + <pattern>[%-5p] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] [%c] - %m%n</pattern> | |
45 | + <charset>${charSet}</charset> | |
46 | + </encoder> | |
47 | + </appender> | |
48 | + | |
49 | + <!-- 异步:错误日志 --> | |
50 | + <appender name="ASYNC_ERROR_FILE" class="ch.qos.logback.classic.AsyncAppender"> | |
51 | + <discardingThreshold>0</discardingThreshold> | |
52 | + <queueSize>500</queueSize> | |
53 | + <appender-ref ref="ERROR_FILE"/> | |
54 | + </appender> | |
55 | + | |
56 | + <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> | |
57 | + <encoder> | |
58 | + <pattern>%highlight([%-1p]) %highlight(%d{yyyy-MM-dd HH:mm:ss}) %green([%thread]) %boldMagenta(%logger) %cyan(%msg%n)</pattern> | |
59 | + <charset>${charSet}</charset> | |
60 | + </encoder> | |
61 | + </appender> | |
62 | +</included> | ... | ... |
fw-hestia-service/pom.xml
0 → 100644
1 | +++ a/fw-hestia-service/pom.xml | |
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 | + <artifactId>fw-hestia</artifactId> | |
7 | + <groupId>cn.fw</groupId> | |
8 | + <version>1.0.0</version> | |
9 | + </parent> | |
10 | + <modelVersion>4.0.0</modelVersion> | |
11 | + | |
12 | + <artifactId>fw-hestia-service</artifactId> | |
13 | + | |
14 | + <dependencies> | |
15 | + <dependency> | |
16 | + <groupId>org.springframework</groupId> | |
17 | + <artifactId>spring-tx</artifactId> | |
18 | + <optional>true</optional> | |
19 | + </dependency> | |
20 | + <dependency> | |
21 | + <groupId>org.springframework.data</groupId> | |
22 | + <artifactId>spring-data-redis</artifactId> | |
23 | + <optional>true</optional> | |
24 | + </dependency> | |
25 | + <dependency> | |
26 | + <groupId>org.springframework.boot</groupId> | |
27 | + <artifactId>spring-boot-configuration-processor</artifactId> | |
28 | + <optional>true</optional> | |
29 | + </dependency> | |
30 | + <dependency> | |
31 | + <groupId>org.springframework.retry</groupId> | |
32 | + <artifactId>spring-retry</artifactId> | |
33 | + </dependency> | |
34 | + <!-- fw common --> | |
35 | + <dependency> | |
36 | + <groupId>cn.fw</groupId> | |
37 | + <artifactId>fw-common-core</artifactId> | |
38 | + <optional>true</optional> | |
39 | + </dependency> | |
40 | + <dependency> | |
41 | + <groupId>cn.fw</groupId> | |
42 | + <artifactId>fw-dfs-sdk</artifactId> | |
43 | + </dependency> | |
44 | + <dependency> | |
45 | + <groupId>cn.fw</groupId> | |
46 | + <artifactId>fw-common-cache</artifactId> | |
47 | + <optional>true</optional> | |
48 | + </dependency> | |
49 | + <dependency> | |
50 | + <groupId>cn.fw</groupId> | |
51 | + <artifactId>fw-pstn-dao</artifactId> | |
52 | + </dependency> | |
53 | + <dependency> | |
54 | + <groupId>org.slf4j</groupId> | |
55 | + <artifactId>slf4j-api</artifactId> | |
56 | + </dependency> | |
57 | + <dependency> | |
58 | + <groupId>ch.qos.logback</groupId> | |
59 | + <artifactId>logback-core</artifactId> | |
60 | + </dependency> | |
61 | + <dependency> | |
62 | + <groupId>cn.fw</groupId> | |
63 | + <artifactId>fw-auth-client</artifactId> | |
64 | + </dependency> | |
65 | + <dependency> | |
66 | + <groupId>cn.fw</groupId> | |
67 | + <artifactId>fw-common-web</artifactId> | |
68 | + </dependency> | |
69 | + <dependency> | |
70 | + <groupId>cn.fw</groupId> | |
71 | + <artifactId>fw-pstn-sdk</artifactId> | |
72 | + </dependency> | |
73 | + <dependency> | |
74 | + <groupId>org.apache.rocketmq</groupId> | |
75 | + <artifactId>rocketmq-spring-boot-starter</artifactId> | |
76 | + <exclusions> | |
77 | + <exclusion> | |
78 | + <groupId>io.netty</groupId> | |
79 | + <artifactId>netty-all</artifactId> | |
80 | + </exclusion> | |
81 | + </exclusions> | |
82 | + </dependency> | |
83 | + <dependency> | |
84 | + <groupId>cn.fw</groupId> | |
85 | + <artifactId>redis-spring-boot-starter</artifactId> | |
86 | + </dependency> | |
87 | + <dependency> | |
88 | + <groupId>org.redisson</groupId> | |
89 | + <artifactId>redisson</artifactId> | |
90 | + </dependency> | |
91 | + <dependency> | |
92 | + <groupId>com.google.zxing</groupId> | |
93 | + <artifactId>javase</artifactId> | |
94 | + </dependency> | |
95 | + </dependencies> | |
96 | + | |
97 | + <build> | |
98 | + <plugins> | |
99 | + <plugin> | |
100 | + <groupId>org.apache.maven.plugins</groupId> | |
101 | + <artifactId>maven-deploy-plugin</artifactId> | |
102 | + <configuration> | |
103 | + <skip>true</skip> | |
104 | + </configuration> | |
105 | + </plugin> | |
106 | + </plugins> | |
107 | + </build> | |
108 | + | |
109 | +</project> | |
0 | 110 | \ No newline at end of file | ... | ... |
fw-hestia-service/src/main/java/Demo.java
0 → 100644
pom.xml
0 → 100644
1 | +++ a/pom.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
3 | + xmlns="http://maven.apache.org/POM/4.0.0" | |
4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
5 | + <modelVersion>4.0.0</modelVersion> | |
6 | + <artifactId>fw-hestia</artifactId> | |
7 | + <version>1.0.0</version> | |
8 | + <packaging>pom</packaging> | |
9 | + <name>fw-hestia</name> | |
10 | + <description>消息中心</description> | |
11 | + | |
12 | + <parent> | |
13 | + <groupId>cn.fw</groupId> | |
14 | + <artifactId>fw-common-dependencies</artifactId> | |
15 | + <version>3.2.0</version> | |
16 | + </parent> | |
17 | + | |
18 | + <modules> | |
19 | + <module>fw-hestia-common</module> | |
20 | + <module>fw-hestia-service</module> | |
21 | + <module>fw-hestia-server</module> | |
22 | + <module>fw-hestia-dao</module> | |
23 | + <module>fw-hestia-domain</module> | |
24 | + <module>fw-hestia-sdk</module> | |
25 | + </modules> | |
26 | + | |
27 | + <properties> | |
28 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
29 | + <java.version>1.8</java.version> | |
30 | + <spring-retry.version>1.2.4.RELEASE</spring-retry.version> | |
31 | + <mysql-connector-java.version>5.1.47</mysql-connector-java.version> | |
32 | + <HikariCP.version>3.3.1</HikariCP.version> | |
33 | + <!-- fw --> | |
34 | + <fw.hestia.sdk.version>1.0.0</fw.hestia.sdk.version> | |
35 | + <rocketmq-spring-boot-starter.version>2.1.0</rocketmq-spring-boot-starter.version> | |
36 | + <redis.spring.boot.starter>1.0</redis.spring.boot.starter> | |
37 | + <javase>3.0.0</javase> | |
38 | + <hutool.all>5.2.5</hutool.all> | |
39 | + </properties> | |
40 | + | |
41 | + <dependencyManagement> | |
42 | + <dependencies> | |
43 | + <!-- database --> | |
44 | + <dependency> | |
45 | + <groupId>mysql</groupId> | |
46 | + <artifactId>mysql-connector-java</artifactId> | |
47 | + <version>${mysql-connector-java.version}</version> | |
48 | + </dependency> | |
49 | + <dependency> | |
50 | + <groupId>com.zaxxer</groupId> | |
51 | + <artifactId>HikariCP</artifactId> | |
52 | + <version>${HikariCP.version}</version> | |
53 | + </dependency> | |
54 | + <!-- util --> | |
55 | + <dependency> | |
56 | + <groupId>org.springframework.retry</groupId> | |
57 | + <artifactId>spring-retry</artifactId> | |
58 | + <version>${spring-retry.version}</version> | |
59 | + </dependency> | |
60 | + <!-- fw local --> | |
61 | + <dependency> | |
62 | + <groupId>cn.fw</groupId> | |
63 | + <artifactId>fw-hestia-common</artifactId> | |
64 | + <version>${project.version}</version> | |
65 | + </dependency> | |
66 | + <dependency> | |
67 | + <groupId>cn.fw</groupId> | |
68 | + <artifactId>fw-hestia-domain</artifactId> | |
69 | + <version>${project.version}</version> | |
70 | + </dependency> | |
71 | + <dependency> | |
72 | + <groupId>cn.fw</groupId> | |
73 | + <artifactId>fw-hestia-dao</artifactId> | |
74 | + <version>${project.version}</version> | |
75 | + </dependency> | |
76 | + <dependency> | |
77 | + <groupId>cn.fw</groupId> | |
78 | + <artifactId>fw-hestia-service</artifactId> | |
79 | + <version>${project.version}</version> | |
80 | + </dependency> | |
81 | + <!-- fw remote --> | |
82 | + <dependency> | |
83 | + <groupId>cn.fw</groupId> | |
84 | + <artifactId>fw-auth-client</artifactId> | |
85 | + <version>${fw-auth-client.version}</version> | |
86 | + </dependency> | |
87 | + <dependency> | |
88 | + <groupId>cn.fw</groupId> | |
89 | + <artifactId>fw-hestia-sdk</artifactId> | |
90 | + <version>${fw.hestia.sdk.version}</version> | |
91 | + </dependency> | |
92 | + <dependency> | |
93 | + <groupId>org.apache.rocketmq</groupId> | |
94 | + <artifactId>rocketmq-spring-boot-starter</artifactId> | |
95 | + <version>${rocketmq-spring-boot-starter.version}</version> | |
96 | + </dependency> | |
97 | + <dependency> | |
98 | + <groupId>cn.fw</groupId> | |
99 | + <artifactId>redis-spring-boot-starter</artifactId> | |
100 | + <version>${redis.spring.boot.starter}</version> | |
101 | + </dependency> | |
102 | + <dependency> | |
103 | + <groupId>com.google.zxing</groupId> | |
104 | + <artifactId>javase</artifactId> | |
105 | + <version>${javase}</version> | |
106 | + </dependency> | |
107 | + <dependency> | |
108 | + <groupId>cn.hutool</groupId> | |
109 | + <artifactId>hutool-all</artifactId> | |
110 | + <version>${hutool.all}</version> | |
111 | + </dependency> | |
112 | + </dependencies> | |
113 | + </dependencyManagement> | |
114 | + | |
115 | + <dependencies> | |
116 | + <dependency> | |
117 | + <groupId>org.projectlombok</groupId> | |
118 | + <artifactId>lombok</artifactId> | |
119 | + <scope>provided</scope> | |
120 | + </dependency> | |
121 | + <dependency> | |
122 | + <groupId>junit</groupId> | |
123 | + <artifactId>junit</artifactId> | |
124 | + <scope>test</scope> | |
125 | + </dependency> | |
126 | + </dependencies> | |
127 | + | |
128 | + <build> | |
129 | + <plugins> | |
130 | + <plugin> | |
131 | + <groupId>org.apache.maven.plugins</groupId> | |
132 | + <artifactId>maven-compiler-plugin</artifactId> | |
133 | + <configuration> | |
134 | + <source>${java.version}</source> | |
135 | + <target>${java.version}</target> | |
136 | + </configuration> | |
137 | + </plugin> | |
138 | + <plugin> | |
139 | + <groupId>org.codehaus.mojo</groupId> | |
140 | + <artifactId>versions-maven-plugin</artifactId> | |
141 | + </plugin> | |
142 | + </plugins> | |
143 | + </build> | |
144 | + | |
145 | + <repositories> | |
146 | + <repository> | |
147 | + <id>feewee-maven-public</id> | |
148 | + <name>feewee maven public</name> | |
149 | + <url>http://nexus.feewee.cn/nexus/content/groups/public/</url> | |
150 | + </repository> | |
151 | + </repositories> | |
152 | + | |
153 | + <distributionManagement> | |
154 | + <repository> | |
155 | + <id>feewee-maven-releases</id> | |
156 | + <name>Nexus Release Repository</name> | |
157 | + <url>http://nexus.feewee.cn/nexus/content/repositories/releases/</url> | |
158 | + </repository> | |
159 | + <snapshotRepository> | |
160 | + <id>feewee-maven-snapshots</id> | |
161 | + <name>Nexus Snapshot Repository</name> | |
162 | + <url>http://nexus.feewee.cn/nexus/content/repositories/snapshots/</url> | |
163 | + <uniqueVersion>true</uniqueVersion> | |
164 | + </snapshotRepository> | |
165 | + </distributionManagement> | |
166 | +</project> | |
0 | 167 | \ No newline at end of file | ... | ... |