Skip to content

Commit 62aa6af

Browse files
authored
optimize: add dependency-check-maven plugin to detect potential vulnerabilities (#7187)
1 parent efa341a commit 62aa6af

File tree

5 files changed

+21
-2
lines changed

5 files changed

+21
-2
lines changed

.mvn/wrapper/maven-wrapper.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
18-
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar
17+
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar

build/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
<mojo-license-maven-plugin.version>1.20</mojo-license-maven-plugin.version>
111111
<maven-checkstyle-plugin.version>3.1.1</maven-checkstyle-plugin.version>
112112
<maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version>
113+
<dependency-check-maven.version>12.1.0</dependency-check-maven.version>
113114
<!-- Test -->
114115
<maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
115116
<jacoco-maven-plugin.version>0.8.7</jacoco-maven-plugin.version>

changes/en-us/2.x.md

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Add changes here for all PR submitted to the 2.x branch.
4747
- [[#7142](https://github.com/apache/incubator-seata/pull/7142)] upgrade commons-compress to 1.27.1
4848
- [[#7149](https://github.com/apache/incubator-seata/pull/7149)] Fix abnormal character display issues in ./distribution/NOTICE.md
4949
- [[#7170](https://github.com/apache/incubator-seata/pull/7170)] Optimize seata client I/O processing by adjusting thread count
50+
- [[#7187](https://github.com/apache/incubator-seata/pull/7187)] Add dependency-check-maven plugin to detect potential vulnerabilities
5051
- [[#7179](https://github.com/apache/incubator-seata/pull/7179)] Use shared EventLoop for TM and RM clients to reduce thread overhead and improve performance
5152
- [[#7194](https://github.com/apache/incubator-seata/pull/7194)] automatically skipping proxy for datasource of type AbstractRoutingDataSource
5253

changes/zh-cn/2.x.md

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
- [[#7142](https://github.com/apache/incubator-seata/pull/7142)] 升级 commons-compress 至 1.27.1 版本
4949
- [[#7149](https://github.com/apache/incubator-seata/pull/7149)] 修复./distribution/NOTICE.md文件中的异常字符串显示问题
5050
- [[#7170](https://github.com/apache/incubator-seata/pull/7170)] 通过调整线程数优化 Seata 客户端 I/O 处理
51+
- [[#7187](https://github.com/apache/incubator-seata/pull/7187)] 增加dependency-check-maven 插件来检测潜在的漏洞
5152
- [[#7179](https://github.com/apache/incubator-seata/pull/7179)] 使用共享的 EventLoop 来减少 TM 和 RM 客户端的线程开销并提高性能
5253
- [[#7194](https://github.com/apache/incubator-seata/pull/7194)] 自动跳过对AbstractRoutingDataSource类型数据源的代理
5354

pom.xml

+16
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,22 @@
394394
<excludes>${maven.surefire.excludes}</excludes>
395395
</configuration>
396396
</plugin>
397+
<!-- dependency-check-maven -->
398+
<plugin>
399+
<groupId>org.owasp</groupId>
400+
<artifactId>dependency-check-maven</artifactId>
401+
<version>${dependency-check-maven.version}</version>
402+
<configuration>
403+
<skip>true</skip>
404+
</configuration>
405+
<executions>
406+
<execution>
407+
<goals>
408+
<goal>check</goal>
409+
</goals>
410+
</execution>
411+
</executions>
412+
</plugin>
397413
</plugins>
398414
</build>
399415
</project>

0 commit comments

Comments
 (0)