-
Notifications
You must be signed in to change notification settings - Fork 223
/
pom.xml
269 lines (259 loc) · 9.74 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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (C) 2020-2024 Huawei Technologies Co., Ltd. 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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-build</artifactId>
<!-- This version should match spring-cloud-dependencies 'spring-cloud-build.version' -->
<version>4.0.2</version>
</parent>
<groupId>com.huaweicloud</groupId>
<artifactId>spring-cloud-huawei</artifactId>
<version>1.12.0-2023.0.x-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Spring Cloud Huawei</name>
<properties>
<!-- spring-cloud-dependencies do not import spring-boot-dependencies, spring-boot-dependencies
import spring-framework-bom. No need configure spring version. -->
<spring-cloud.version>2023.0.3</spring-cloud.version>
<spring-boot.version>3.3.5</spring-boot.version>
<servicecomb.version>2.8.21</servicecomb.version>
</properties>
<modules>
<!-- modules sorted by logic dependency -->
<module>spring-cloud-huawei-bom</module>
<module>spring-cloud-huawei-dependencies</module>
<module>spring-cloud-huawei-parents</module>
<module>spring-cloud-huawei-common</module>
<module>spring-cloud-huawei-governance</module>
<module>spring-cloud-huawei-router</module>
<module>spring-cloud-huawei-swagger</module>
<module>spring-cloud-huawei-service-engine</module>
<module>spring-cloud-huawei-mesh</module>
<module>spring-cloud-huawei-nacos</module>
<module>spring-cloud-starter-huawei</module>
</modules>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/huaweicloud/spring-cloud-huawei</url>
<connection>scm:git:git://github.com/huaweicloud/spring-cloud-huawei.git</connection>
<developerConnection>scm:git:ssh://[email protected]/huaweicloud/spring-cloud-huawei.git
</developerConnection>
<tag>HEAD</tag>
</scm>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<distributionManagement>
<snapshotRepository>
<id>oss</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>oss</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</profile>
<profile>
<id>it</id>
<modules>
<module>integration-tests</module>
<module>coverage-reports</module>
</modules>
</profile>
</profiles>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.16.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.13</version>
<configuration>
<excludes>
<exclude>DISCLAIMER</exclude>
<exclude>.travis.yml</exclude>
<exclude>**/cert_pwd</exclude>
<exclude>**/*.cer</exclude>
<exclude>**/*.md</exclude>
<excldue>**/*.MD</excldue>
<excldue>**/*.iml</excldue>
<excldue>.github/**</excldue>
<!-- Skip the code style configuration file -->
<exclude>**/etc/eclipse-java-google-style.xml</exclude>
<exclude>**/etc/intellij-java-google-style.xml</exclude>
<!-- Skip the ssl configuration files -->
<exculde>**/resources/ssl/**</exculde>
<!-- SKip the licenses files -->
<exclude>**/src/release/licenses/**</exclude>
<!-- Skip the demo log files -->
<exclude>**/logs/**.log</exclude>
<exclude>**/**.log</exclude>
<!-- Skip the target files -->
<exclude>**/target/**</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.16.0</version>
<configuration>
<rulesets>
<!-- A rule set, that comes bundled with PMD -->
<ruleset>pmd/rulesets/bestpractices.xml</ruleset>
</rulesets>
<!-- failOnViolation is actually true by default, but can be disabled -->
<failOnViolation>true</failOnViolation>
<!-- printFailingErrors is pretty useful -->
<printFailingErrors>true</printFailingErrors>
<!-- enable incremental analysis -->
<analysisCache>false</analysisCache>
<!--It is possible to exclude some sources from PMD check to prevent failures.-->
<excludeFromFailureFile>pmd/violationExclusions/exclude-pmd.properties</excludeFromFailureFile>
<excludes>
<!--Exclude the directories you don't want to check, but it only works for sub modules. Please refer to the following example-->
<exclude>**/com/huaweicloud/sample/**</exclude>
<exclude>**/com/huaweicloud/samples/**</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
<execution>
<id>aggregate</id>
<goals>
<goal>aggregate-pmd</goal>
<goal>aggregate-cpd</goal>
</goals>
<configuration>
<excludeFromFailureFile>pmd/violationExclusions/exclude-pmd.properties</excludeFromFailureFile>
</configuration>
<phase>site</phase>
</execution>
</executions>
</plugin>
<!--SpotBugs-->
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.5.2.0</version>
<dependencies>
<!-- overwrite dependency on spotbugs if you want to specify the version of spotbugs -->
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs</artifactId>
<version>4.5.3</version>
</dependency>
</dependencies>
<configuration>
<!--Analysis Effort-->
<effort>Max</effort>
<!--Minimun Condidence-->
<threshold>Medium</threshold>
<!--Minimum Rank-->
<maxRank>20</maxRank>
<!-- <includeFilterFile>spotbugs-security/spotbugs-security-include.xml</includeFilterFile>-->
<excludeFilterFile>spotbugs-security/spotbugs-security-exclude.xml</excludeFilterFile>
<includeTests>false</includeTests>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.16.0</version>
<configuration>
<rulesets>
<ruleset>pmd/rulesets/bestpractices.xml</ruleset>
</rulesets>
<!-- failOnViolation is actually true by default, but can be disabled -->
<failOnViolation>true</failOnViolation>
<!-- printFailingErrors is pretty useful -->
<printFailingErrors>true</printFailingErrors>
<!-- enable incremental analysis -->
<analysisCache>false</analysisCache>
<excludeFromFailureFile>pmd/violationExclusions/exclude-pmd.properties</excludeFromFailureFile>
</configuration>
<reportSets>
<reportSet><!-- by default, id = "default" -->
<reports><!-- select non-aggregate reports -->
<report>pmd</report>
<report>cpd</report>
</reports>
</reportSet>
<reportSet><!-- aggregate reportSet, to define in poms having modules -->
<id>aggregate</id>
<inherited>false</inherited> <!-- don't run aggregate in child modules -->
<reports>
<report>aggregate-pmd</report>
<report>aggregate-cpd</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
</project>