找不到javax.xml.xquery:xqj-api:1.0

时间:2019-01-01 20:27:00

标签: java gradle kotlin classpath gradle-kotlin-dsl

Maven存储库正确added,并且是必需的吗?

如果是,添加# Make the Data Actually Useable a<- c("1 8.2 JAN-1990", "2 5.3 JAN-1991", "3 6.2 JAN-1992", "4 7.8 JAN-1993", "5 6.7 JAN-1994") %>% as_data_frame() %>% separate(value, c("number", "temp", "month"), sep = " ") %>% mutate(temp = as.numeric(temp), # Now Convert the Date- Assuming First of Month? month = lubridate::dmy(paste0("1-",month))) # Base Way plot(a$month, a$temp, xlab = "Month", ylab= "Temperature") # Make the Chart in ggplot2 ggplot(a, aes(month, temp))+ geom_point()+ scale_x_date() 的语法是什么?

例外:

xqj

构建文件:

thufir@dur:~/NetBeansProjects/helloWorldBaseX$ 
thufir@dur:~/NetBeansProjects/helloWorldBaseX$ gradle clean run
> 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 javax.xml.xquery:xqj-api:1.0.
     Searched in the following locations:
       - https://jcenter.bintray.com/javax/xml/xquery/xqj-api/1.0/xqj-api-1.0.pom
       - https://jcenter.bintray.com/javax/xml/xquery/xqj-api/1.0/xqj-api-1.0.jar
       - https://repo.maven.apache.org/maven2/javax/xml/xquery/xqj-api/1.0/xqj-api-1.0.pom
       - https://repo.maven.apache.org/maven2/javax/xml/xquery/xqj-api/1.0/xqj-api-1.0.jar
     Required by:
         project :

* 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 2s
2 actionable tasks: 1 executed, 1 up-to-date
thufir@dur:~/NetBeansProjects/helloWorldBaseX$ 

1 个答案:

答案 0 :(得分:1)

查看此处:https://mvnrepository.com/artifact/javax.xml.xquery/xqj-api/1.0

此模块既不在Maven Central也不在JCenter存储库上托管,但是可以在其他一些存储库中找到,例如:https://mvnrepository.com/repos/springio-plugins-release

如果要向此模块添加依赖项,只需声明一个可用的托管存储库,例如:

在Groovy DSL中:

repositories {
    jcenter()
    mavenCentral()
    maven{            
        url "http://repo.spring.io/plugins-release/"
    }
}

编辑(来自下面的评论)

科特林DSL

repositories {
    mavenCentral()
    jcenter()
    maven {
        setUrl("http://repo.spring.io/plugins-release/")
    }
}