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

polardbx-sql无法编译安装 #208

Open
cxgyyx opened this issue Apr 30, 2024 · 1 comment
Open

polardbx-sql无法编译安装 #208

cxgyyx opened this issue Apr 30, 2024 · 1 comment

Comments

@cxgyyx
Copy link

cxgyyx commented Apr 30, 2024

apt install maven

下载分支

git clone https://github.com/polardb/polardbx-sql.git

git clone https://github.com/polardb/polardbx-glue.git
cp -a polardbx-glue/* polardbx-sql/polardbx-rpc/

编译打包

mvn install -D maven.test.skip=true -D env=release
......
Downloaded from central: https://repo.maven.apache.org/maven2/mysql/mysql-connector-java/5.1.49/mysql-connector-java-5.1.49.jar (1.0 MB at 117 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java/3.11.1/protobuf-java-3.11.1.jar (1.7 MB at 148 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 46.502 s
[INFO] Finished at: 2024-04-30T08:51:18Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project polardbx-rpc: Could not resolve dependencies for project com.alibaba.polardbx:polardbx-rpc:jar:5.4.19-SNAPSHOT: Could not find artifact com.alibaba.polardbx:polardbx-common:jar:5.4.19-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

使用系统为Ubuntu2004,试了好多次无法编译安装,有知道原因的 麻烦告知下 多谢!

@ZSYTY
Copy link
Collaborator

ZSYTY commented May 6, 2024

试试 git submodule update --init 呢,不要手动 copy 代码仓库目录,可能导致模块的版本匹配

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