Qualitis icon indicating copy to clipboard operation
Qualitis copied to clipboard

构建时报找不到jar包的错误

Open s19870620i opened this issue 2 years ago • 2 comments

Describe the bug 构建时报找不到jar包的错误

To Reproduce Steps to reproduce the behavior: 1.run:“gradle clean distZip” 2. see error: FAILURE: Build failed with an exception.

  • What went wrong: Could not resolve all files for configuration ':web/user:compileClasspath'.

Could not find org.forgerock.opendj:opendj-core:3.0.0-SNAPSHOT. Searched in the following locations: file:/C:/Users/sunzw/.m2/repository/org/forgerock/opendj/opendj-core/3.0.0-SNAPSHOT/maven-metadata.xml file:/C:/Users/sunzw/.m2/repository/org/forgerock/opendj/opendj-core/3.0.0-SNAPSHOT/opendj-core-3.0.0-SNAPSHOT.pom file:/C:/Users/sunzw/.m2/repository/org/forgerock/opendj/opendj-core/3.0.0-SNAPSHOT/opendj-core-3.0.0-SNAPSHOT.jar http://maven.aliyun.com/nexus/content/groups/public/org/forgerock/opendj/opendj-core/3.0.0-SNAPSHOT/maven-metadata.xml http://maven.aliyun.com/nexus/content/groups/public/org/forgerock/opendj/opendj-core/3.0.0-SNAPSHOT/opendj-core-3.0.0-SNAPSHOT.pom http://maven.aliyun.com/nexus/content/groups/public/org/forgerock/opendj/opendj-core/3.0.0-SNAPSHOT/opendj-core-3.0.0-SNAPSHOT.jar Required by: project :web/user Could not find org.forgerock.opendj:opendj-grizzly:3.0.0-SNAPSHOT. Searched in the following locations: file:/C:/Users/sunzw/.m2/repository/org/forgerock/opendj/opendj-grizzly/3.0.0-SNAPSHOT/maven-metadata.xml file:/C:/Users/sunzw/.m2/repository/org/forgerock/opendj/opendj-grizzly/3.0.0-SNAPSHOT/opendj-grizzly-3.0.0-SNAPSHOT.pom file:/C:/Users/sunzw/.m2/repository/org/forgerock/opendj/opendj-grizzly/3.0.0-SNAPSHOT/opendj-grizzly-3.0.0-SNAPSHOT.jar http://maven.aliyun.com/nexus/content/groups/public/org/forgerock/opendj/opendj-grizzly/3.0.0-SNAPSHOT/maven-metadata.xml http://maven.aliyun.com/nexus/content/groups/public/org/forgerock/opendj/opendj-grizzly/3.0.0-SNAPSHOT/opendj-grizzly-3.0.0-SNAPSHOT.pom http://maven.aliyun.com/nexus/content/groups/public/org/forgerock/opendj/opendj-grizzly/3.0.0-SNAPSHOT/opendj-grizzly-3.0.0-SNAPSHOT.jar Required by: project :web/user Could not find org.forgerock.commons:forgerock-util:2.0.0-SNAPSHOT. Searched in the following locations: file:/C:/Users/sunzw/.m2/repository/org/forgerock/commons/forgerock-util/2.0.0-SNAPSHOT/maven-metadata.xml file:/C:/Users/sunzw/.m2/repository/org/forgerock/commons/forgerock-util/2.0.0-SNAPSHOT/forgerock-util-2.0.0-SNAPSHOT.pom file:/C:/Users/sunzw/.m2/repository/org/forgerock/commons/forgerock-util/2.0.0-SNAPSHOT/forgerock-util-2.0.0-SNAPSHOT.jar http://maven.aliyun.com/nexus/content/groups/public/org/forgerock/commons/forgerock-util/2.0.0-SNAPSHOT/maven-metadata.xml http://maven.aliyun.com/nexus/content/groups/public/org/forgerock/commons/forgerock-util/2.0.0-SNAPSHOT/forgerock-util-2.0.0-SNAPSHOT.pom http://maven.aliyun.com/nexus/content/groups/public/org/forgerock/commons/forgerock-util/2.0.0-SNAPSHOT/forgerock-util-2.0.0-SNAPSHOT.jar Required by: project :web/user Could not find org.forgerock.commons:i18n-core:1.4.2-SNAPSHOT. Searched in the following locations: file:/C:/Users/sunzw/.m2/repository/org/forgerock/commons/i18n-core/1.4.2-SNAPSHOT/maven-metadata.xml file:/C:/Users/sunzw/.m2/repository/org/forgerock/commons/i18n-core/1.4.2-SNAPSHOT/i18n-core-1.4.2-SNAPSHOT.pom file:/C:/Users/sunzw/.m2/repository/org/forgerock/commons/i18n-core/1.4.2-SNAPSHOT/i18n-core-1.4.2-SNAPSHOT.jar http://maven.aliyun.com/nexus/content/groups/public/org/forgerock/commons/i18n-core/1.4.2-SNAPSHOT/maven-metadata.xml http://maven.aliyun.com/nexus/content/groups/public/org/forgerock/commons/i18n-core/1.4.2-SNAPSHOT/i18n-core-1.4.2-SNAPSHOT.pom http://maven.aliyun.com/nexus/content/groups/public/org/forgerock/commons/i18n-core/1.4.2-SNAPSHOT/i18n-core-1.4.2-SNAPSHOT.jar Required by: project :web/user Could not find org.forgerock.commons:i18n-slf4j:1.4.2-SNAPSHOT. Searched in the following locations: file:/C:/Users/sunzw/.m2/repository/org/forgerock/commons/i18n-slf4j/1.4.2-SNAPSHOT/maven-metadata.xml file:/C:/Users/sunzw/.m2/repository/org/forgerock/commons/i18n-slf4j/1.4.2-SNAPSHOT/i18n-slf4j-1.4.2-SNAPSHOT.pom file:/C:/Users/sunzw/.m2/repository/org/forgerock/commons/i18n-slf4j/1.4.2-SNAPSHOT/i18n-slf4j-1.4.2-SNAPSHOT.jar http://maven.aliyun.com/nexus/content/groups/public/org/forgerock/commons/i18n-slf4j/1.4.2-SNAPSHOT/maven-metadata.xml http://maven.aliyun.com/nexus/content/groups/public/org/forgerock/commons/i18n-slf4j/1.4.2-SNAPSHOT/i18n-slf4j-1.4.2-SNAPSHOT.pom http://maven.aliyun.com/nexus/content/groups/public/org/forgerock/commons/i18n-slf4j/1.4.2-SNAPSHOT/i18n-slf4j-1.4.2-SNAPSHOT.jar Required by: project :web/user

  • 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 5.0. See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 10s 55 actionable tasks: 46 executed, 9 up-to-date

s19870620i avatar Mar 10 '23 02:03 s19870620i

https://github.com/WeBankFinTech/Qualitis/releases release-0.9.1 上有解决方案,下载forgerock.zip,在本地.m2\repository\org解压,解决代码仓库拉取不到的问题。 参考:https://github.com/WeBankFinTech/Qualitis/issues/132

yiyufxst avatar Mar 22 '23 06:03 yiyufxst

在build.gradle加入gluu的仓库就可以拉取成功了:

repositories {
  mavenLocal()
  maven {
    url "https://ox.gluu.org/maven/"
  }
  maven {
    url "http://maven.aliyun.com/nexus/content/groups/public/"
  }
}

zhjdotxmsme avatar May 25 '23 06:05 zhjdotxmsme