Skip to content

Commit

Permalink
[Fix][Development] Add step to create a new metric plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyDong-code authored Feb 22, 2024
1 parent 2de5950 commit 950868b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,14 @@ public class ColumnInEnums extends BaseSingleTableColumn {
- 在 resources 目录下创建`META-INF/plugins`目录。
- 在 plugins 目录下创建文件并且命名为`io.datavines.metric.api.SqlMetric`
- 在文件中添加`column_in_enums=io.datavines.metric.plugin.ColumnInEnums`
- 在datavines-metric-all模块下的pom.xml文件中添加新建的插件模块的依赖。
```
<dependency>
<groupId>io.datavines</groupId>
<artifactId>datavines-metric-column-in-enums</artifactId>
<version>${project.version}</version>
</dependency>
```

### 第四步
打包成`jar`放到 datavines 目录下的`libs`目录下,重启服务即可。

0 comments on commit 950868b

Please sign in to comment.