萨克森似乎不在
gradle
正在尝试发送:
Not Found
For request 'GET /artifact/net/sf/saxon/saxon-HE/9.9.0-2/saxon-HE-9.9.0-2.pom'
实际
URL
是,或
looks
成为,
../artifact/net.sf.saxon/..
而不是
..artifact/net/saxon..
这导致了一个问题。
我怎么说
kotlin-gradle-dsl
具体来说,要查找哪个回购以及如何查找该回购?
Kotlin生成文件:
compile group: 'net.sf.saxon', name: 'Saxon-HE', version: '9.9.0-2'
plugins {
java
application
}
repositories {
jcenter()
mavenCentral()
maven {
setUrl("https://mvnrepository.com/artifact/")
}
maven {
setUrl("http://repo.spring.io/plugins-release/")
}
}
dependencies {
implementation("com.google.guava:guava:26.0-jre")
compile (group = "org.ccil.cowan.tagsoup" , name = "tagsoup" , version = "1.2.1")
compile (group = "net.sf.saxon" , name = "saxon-HE" , version = "9.9.0-2")
testImplementation("org.testng:testng:6.14.3")
}
application {
mainClassName = "helloWorldSaxon.App"
}
val test by tasks.getting(Test::class) {
useTestNG()
}
Executing: gradle clean build
Arguments: [-c, /home/thufir/NetBeansProjects/helloWorldSaxon/settings.gradle.kts]
> Task :clean UP-TO-DATE
> 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 net.sf.saxon:saxon-HE:9.9.0-2.
Searched in the following locations:
- https:
- https:
- https:
- https:
- https:
- https:
- http:
- http:
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:
BUILD FAILED in 8s
2 actionable tasks: 1 executed, 1 up-to-date
Build failure (see the Notifications window for stacktrace): gradle clean build