README
This commit is contained in:
18
README.md
18
README.md
@@ -4,6 +4,8 @@
|
||||
|
||||
该项目是基于 [snyk-maven-plugin](https://github.com/snyk/snyk-maven-plugin.git) 的二次开发。
|
||||
|
||||
|
||||
|
||||
## 关于我们
|
||||
|
||||
Website:https://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
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
## 检测原理
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user