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

编译release-3.3.0版本报错 #175

Open
CindyZhouYH opened this issue Aug 23, 2023 · 1 comment
Open

编译release-3.3.0版本报错 #175

CindyZhouYH opened this issue Aug 23, 2023 · 1 comment
Labels

Comments

@CindyZhouYH
Copy link

您好,我在ubuntu 22.04环境中下载了java-sdk-demo源码,并切换到release-3.3.0版本进行编译,出现如下报错:

> Configure project :
Notice: current gradle version is 6.3

> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not resolve org.fisco-bcos.java-sdk:fisco-bcos-java-sdk:3.3.0-SNAPSHOT.
     Required by:
         project :
      > Could not resolve org.fisco-bcos.java-sdk:fisco-bcos-java-sdk:3.3.0-SNAPSHOT.
         > Unable to load Maven meta-data from https://oss.sonatype.org/service/local/staging/deploy/maven2/org/fisco-bcos/java-sdk/fisco-bcos-java-sdk/3.3.0-SNAPSHOT/maven-metadata.xml.
            > Could not get resource 'https://oss.sonatype.org/service/local/staging/deploy/maven2/org/fisco-bcos/java-sdk/fisco-bcos-java-sdk/3.3.0-SNAPSHOT/maven-metadata.xml'.
               > Could not GET 'https://oss.sonatype.org/service/local/staging/deploy/maven2/org/fisco-bcos/java-sdk/fisco-bcos-java-sdk/3.3.0-SNAPSHOT/maven-metadata.xml'. Received status code 401 from server: Unauthorized

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 8s
1 actionable task: 1 executed
截屏2023-08-23 18 22 51

另外,我尝试了3.4.0版本,可以成功编译,没有问题

@CindyZhouYH CindyZhouYH changed the title 编译3.4.0版本出现 编译3.3.0版本报错 Aug 23, 2023
@CindyZhouYH CindyZhouYH changed the title 编译3.3.0版本报错 编译release-3.3.0版本报错 Aug 23, 2023
@bxq2011hust
Copy link
Member

请使用v3.3.0的tag,有些snapshot的包可能已经过期了

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

No branches or pull requests

3 participants