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 postgresql插件jar包,编译打包报错 #60

Open
hucongwei opened this issue Dec 3, 2024 · 1 comment

Comments

@hucongwei
Copy link

参考如下文档编译打包postgres插件jar包,编译打包出现报错,请问该怎么解决,或者社区能提供打包好的jar包插件吗
https://github.com/nacos-group/nacos-plugin/blob/develop/nacos-datasource-plugin-ext/README.md

方式二:下载当前插件项目源码,打包为jar包,将该文件的路径配置到startup.sh文件中,使用Nacos的loader.path机制指定该插件的路径,可修改startup.sh中的loader.path参数的位置进行指定。

在目录~/nacos-plugin/nacos-plugin/nacos-datasource-plugin-ext/nacos-postgresql-datasource-plugin-ext下使用如下命令编译打包:
/apps/maven/apache-maven-3.8.2/bin/mvn clean package -DskipTests=true
报如下错误:
[ERROR] Failed to execute goal on project nacos-datasource-plugin-ext: Could not resolve dependencies for project com.alibaba.nacos:nacos-datasource-plugin-ext:pom:1.0.0-SNAPSHOT: The following artifacts could not be resolved: com.alibaba.nacos:nacos-datasource-plugin:jar:2.3.0-SNAPSHOT, com.alibaba.nacos:nacos-common:jar:2.3.0-SNAPSHOT: Could not find artifact com.alibaba.nacos:nacos-datasource-plugin:jar:2.3.0-SNAPSHOT -> [Help 1]

[ERROR] Failed to execute goal on project nacos-postgresql-datasource-plugin-ext: Could not resolve dependencies for project com.alibaba.nacos:nacos-postgresql-datasource-plugin-ext:jar:1.0.0-SNAPSHOT: The following artifacts could not be resolved: com.alibaba.nacos:nacos-datasource-plugin-ext-base:jar:1.0.0-SNAPSHOT, com.alibaba.nacos:nacos-datasource-plugin:jar:2.3.0-SNAPSHOT, com.alibaba.nacos:nacos-common:jar:2.3.0-SNAPSHOT: Could not find artifact com.alibaba.nacos:nacos-datasource-plugin-ext-base:jar:1.0.0-SNAPSHOT -> [Help 1]

screenshot-20241203-110452

@silentmoooon
Copy link

你要在项目根目录下编译, 最好把nacos-datasource-plugin-ext/pom.xml中不需要的插件去掉,比如oracle dm mssql那些,不然可能会导致其他问题.

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

2 participants