This commit is contained in:
retanoj
2020-08-11 13:41:25 +08:00
parent 578a677abb
commit ff1e542db5

View File

@@ -4,6 +4,8 @@
该项目是基于 [snyk-maven-plugin](https://github.com/snyk/snyk-maven-plugin.git) 的二次开发。
## 关于我们
Websitehttps://security.immomo.com
@@ -12,10 +14,14 @@ WeChat:
<img src="https://momo-mmsrc.oss-cn-hangzhou.aliyuncs.com/img-1c96a083-7392-3b72-8aec-bad201a6abab.jpeg" width="200" hegiht="200" align="center" /><br>
## 版本要求
Maven >= 3.1
## 安装
#### 向pom.xml中添加plugin仓库 (项目级安装)
@@ -58,6 +64,8 @@ Maven >= 3.1
</activeProfiles>
```
## 使用
首先运行 [MOSEC-X-PLUGIN Backend](https://github.com/momosecurity/mosec-x-plugin-backend.git)
@@ -104,6 +112,8 @@ Maven >= 3.1
</plugins>
```
## 帮助
```shell script
@@ -134,6 +144,8 @@ mosec:test
User property: severity
```
## 使用效果
以 src/test/resources/projects/vuln-project 项目为例。
@@ -144,6 +156,8 @@ mosec:test
![usage](https://github.com/momosecurity/mosec-maven-plugin/blob/master/static/usage.jpg)
## 检测原理
MOSEC-MAVEN-PLUGIN使用`org.apache.maven:maven-core`组件中提供的`aether-api`提取依赖并构建依赖树。
@@ -154,6 +168,8 @@ MOSEC-MAVEN-PLUGIN使用`org.apache.maven:maven-core`组件中提供的`aether-a
相关数据结构请参考 MOSEC-X-PLUGIN-BACKEND [README.md](https://github.com/momosecurity/mosec-x-plugin-backend/blob/master/README.md).
## 开发
#### Intellij 远程调试 Maven 插件
@@ -172,4 +188,4 @@ MOSEC-MAVEN-PLUGIN使用`org.apache.maven:maven-core`组件中提供的`aether-a
> mvnDebug com.immomo.momosec:mosec-maven-plugin:1.0.6:test
```
5.回到Intellij中下断点开始Debug
5.回到Intellij中下断点开始Debug