Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问编写完插件后,如何打到nacos-server中 #23

Open
buruoyanyang opened this issue Apr 14, 2023 · 4 comments
Open

请问编写完插件后,如何打到nacos-server中 #23

buruoyanyang opened this issue Apr 14, 2023 · 4 comments

Comments

@buruoyanyang
Copy link

我这边支持了一下Sqlserver数据源,完成了plugin的编写,是需要将实现复制到nacos/plugin项目中,还是有其他方式?官网说明中是先编译nacos本体,然后install插件就没了。请大佬们赐教~

@xiaoyonghaoe
Copy link
Contributor

如果代码启动直接 install 到本地 然后再pom中添加依赖即可
如果startup.sh启动将jar放在${BASE_DIR}/plugins文件夹下面 或者添加在classPath里
image

@john1337
Copy link

我在nacos-datasource-plugin module中添加了如下依赖:

com.alibaba.nacos
nacos-postgresql-datasource-plugin-ext
1.0.0-SNAPSHOT

发现不能正常工作,因为在nacos-datasource-plugin模块 ExternalDataSourceProperties里面默认的数据库驱动就是com.mysql.cj.jdbc.Driver

@john1337
Copy link

我在nacos-datasource-plugin module中添加了如下依赖: com.alibaba.nacos nacos-postgresql-datasource-plugin-ext 1.0.0-SNAPSHOT 发现不能正常工作,因为在nacos-datasource-plugin模块 ExternalDataSourceProperties里面默认的数据库驱动就是com.mysql.cj.jdbc.Driver
参考下面的文章就可以解决:
https://github.com/nacos-group/nacos-plugin/tree/develop/nacos-datasource-plugin-ext

@farmer-it-1024
Copy link

farmer-it-1024 commented Apr 9, 2024

我这边支持了一下Sqlserver数据源,完成了plugin的编写,是需要将实现复制到nacos/plugin项目中,还是有其他方式?官网说明中是先编译nacos本体,然后install插件就没了。请大佬们赐教~

@buruoyanyang :代码是否可以分享一下呢?感谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants