Skip to content

编译release-3.3.0版本报错 #175

@YuaaCindy

Description

@YuaaCindy

您好,我在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版本,可以成功编译,没有问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions