首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >哪个存储库有eXist,它是如何添加到带gradle的类路径中的?

哪个存储库有eXist,它是如何添加到带gradle的类路径中的?
EN

Stack Overflow用户
提问于 2020-01-30 10:31:01
回答 1查看 180关注 0票数 0

查找导入 eXist数据库,以及其他依赖项。

哪个存储库可用于此需求的最好的

用于生成的堆栈跟踪:

代码语言:javascript
复制
thufir@dur:~/NetBeansProjects/twitterBaseX$ 
thufir@dur:~/NetBeansProjects/twitterBaseX$ gradle clean build 
> 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 find org.exist-db.thirdparty.com.thaiopensource:jing:20151127.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/org/exist-db/thirdparty/com/thaiopensource/jing/20151127/jing-20151127.pom
       - https://repo.maven.apache.org/maven2/org/exist-db/thirdparty/com/thaiopensource/jing/20151127/jing-20151127.jar
       - https://mvnrepository.com/org/exist-db/thirdparty/com/thaiopensource/jing/20151127/jing-20151127.pom
       - https://mvnrepository.com/org/exist-db/thirdparty/com/thaiopensource/jing/20151127/jing-20151127.jar
       - https://jcenter.bintray.com/org/exist-db/thirdparty/com/thaiopensource/jing/20151127/jing-20151127.pom
       - https://jcenter.bintray.com/org/exist-db/thirdparty/com/thaiopensource/jing/20151127/jing-20151127.jar
     Required by:
         project : > org.exist-db:exist-core:5.2.0
   > Could not find org.exist-db.thirdparty.javax.xml.xquery:xqjapi:1.0-fr.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/org/exist-db/thirdparty/javax/xml/xquery/xqjapi/1.0-fr/xqjapi-1.0-fr.pom
       - https://repo.maven.apache.org/maven2/org/exist-db/thirdparty/javax/xml/xquery/xqjapi/1.0-fr/xqjapi-1.0-fr.jar
       - https://mvnrepository.com/org/exist-db/thirdparty/javax/xml/xquery/xqjapi/1.0-fr/xqjapi-1.0-fr.pom
       - https://mvnrepository.com/org/exist-db/thirdparty/javax/xml/xquery/xqjapi/1.0-fr/xqjapi-1.0-fr.jar
       - https://jcenter.bintray.com/org/exist-db/thirdparty/javax/xml/xquery/xqjapi/1.0-fr/xqjapi-1.0-fr.pom
       - https://jcenter.bintray.com/org/exist-db/thirdparty/javax/xml/xquery/xqjapi/1.0-fr/xqjapi-1.0-fr.jar
     Required by:
         project : > org.exist-db:exist-core:5.2.0

* 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

BUILD FAILED in 3s
2 actionable tasks: 2 executed
thufir@dur:~/NetBeansProjects/twitterBaseX$                                       

似乎正在给exist-db带来麻烦的只是它的导入:

代码语言:javascript
复制
/*
 * This file was generated by the Gradle 'init' task.
 *
 * This generated file contains a sample Java project to get you started.
 * For more details take a look at the Java Quickstart chapter in the Gradle
 * User Manual available at https://docs.gradle.org/5.4.1/userguide/tutorial_java_projects.html
 */

plugins {
    // Apply the java plugin to add support for Java
    id 'java'

    // Apply the application plugin to add support for building an application
    id 'application'
}

repositories {
    // Use jcenter for resolving your dependencies.
    // You can declare any Maven/Ivy/file repository here.

    mavenCentral()
    //
    //maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    maven { url "https://mvnrepository.com/" }
    jcenter()
}

dependencies {
    // This dependency is found on compile classpath of this component and consumers.
    implementation 'com.google.guava:guava:27.0.1-jre'

    // Use TestNG framework, also requires calling test.useTestNG() below
    testImplementation 'org.testng:testng:6.14.3'

    compile group: 'org.twitter4j', name: 'twitter4j-core', version: '4.0.1'
    compile group: 'org.basex', name: 'basex', version: '9.2.4'
    compile group: 'net.sf.xmldb-org', name: 'xmldb-api', version: '1.7.0'
    // https://mvnrepository.com/artifact/org.exist-db/exist-core
    compile group: 'org.exist-db', name: 'exist-core', version: '5.2.0'



}

// Define the main class for the application
mainClassName = 'twitterBaseX.App'

test {
    // Use TestNG for unit tests
    useTestNG()
}

作为注释,该编译组允许一个干净的构建。这大概是一个正确添加正确回购的问题吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-01-30 11:21:46

对于eXist-db 5.x.x,需要两个存储库:

  1. Maven Central用于eXist-db构件本身。
  2. 一些第三方构件的eXist存储库(http://repo.evolvedbinary.com/repository/exist-db/)不能发布到Maven Central,因为它们不满足Maven Central的要求。
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59983939

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档