Could not find javax.xml.xquery:xqj-api:1.0
The maven repo is added correctly, and is required?
If so, what's the syntax to add xqj
?
exception:
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$
build file:
/*
* 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 guide available at https://docs.gradle.org/5.0/userguide/tutorial_java_projects.html
*/
plugins {
// Apply the java plugin to add support for Java
java
// Apply the application plugin to add support for building an application
application
}
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
mavenCentral()
}
dependencies {
// This dependency is found on compile classpath of this component and consumers.
implementation("com.google.guava:guava:26.0-jre")
// https://mvnrepository.com/artifact/org.basex/basex
compile (group= "org.basex", name = "basex" , version = "7.3.1")
compile (group = "javax.xml.xquery" , name = "xqj-api" , version = "1.0")
// Use TestNG framework, also requires calling test.useTestNG() below
testImplementation("org.testng:testng:6.14.3")
}
application {
// Define the main class for the application
mainClassName = "org.basex.examples.local.App"
}
val test by tasks.getting(Test::class) {
// Use TestNG for unit tests
useTestNG()
}
java gradle kotlin classpath gradle-kotlin-dsl
add a comment |
The maven repo is added correctly, and is required?
If so, what's the syntax to add xqj
?
exception:
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$
build file:
/*
* 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 guide available at https://docs.gradle.org/5.0/userguide/tutorial_java_projects.html
*/
plugins {
// Apply the java plugin to add support for Java
java
// Apply the application plugin to add support for building an application
application
}
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
mavenCentral()
}
dependencies {
// This dependency is found on compile classpath of this component and consumers.
implementation("com.google.guava:guava:26.0-jre")
// https://mvnrepository.com/artifact/org.basex/basex
compile (group= "org.basex", name = "basex" , version = "7.3.1")
compile (group = "javax.xml.xquery" , name = "xqj-api" , version = "1.0")
// Use TestNG framework, also requires calling test.useTestNG() below
testImplementation("org.testng:testng:6.14.3")
}
application {
// Define the main class for the application
mainClassName = "org.basex.examples.local.App"
}
val test by tasks.getting(Test::class) {
// Use TestNG for unit tests
useTestNG()
}
java gradle kotlin classpath gradle-kotlin-dsl
add a comment |
The maven repo is added correctly, and is required?
If so, what's the syntax to add xqj
?
exception:
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$
build file:
/*
* 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 guide available at https://docs.gradle.org/5.0/userguide/tutorial_java_projects.html
*/
plugins {
// Apply the java plugin to add support for Java
java
// Apply the application plugin to add support for building an application
application
}
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
mavenCentral()
}
dependencies {
// This dependency is found on compile classpath of this component and consumers.
implementation("com.google.guava:guava:26.0-jre")
// https://mvnrepository.com/artifact/org.basex/basex
compile (group= "org.basex", name = "basex" , version = "7.3.1")
compile (group = "javax.xml.xquery" , name = "xqj-api" , version = "1.0")
// Use TestNG framework, also requires calling test.useTestNG() below
testImplementation("org.testng:testng:6.14.3")
}
application {
// Define the main class for the application
mainClassName = "org.basex.examples.local.App"
}
val test by tasks.getting(Test::class) {
// Use TestNG for unit tests
useTestNG()
}
java gradle kotlin classpath gradle-kotlin-dsl
The maven repo is added correctly, and is required?
If so, what's the syntax to add xqj
?
exception:
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$
build file:
/*
* 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 guide available at https://docs.gradle.org/5.0/userguide/tutorial_java_projects.html
*/
plugins {
// Apply the java plugin to add support for Java
java
// Apply the application plugin to add support for building an application
application
}
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
mavenCentral()
}
dependencies {
// This dependency is found on compile classpath of this component and consumers.
implementation("com.google.guava:guava:26.0-jre")
// https://mvnrepository.com/artifact/org.basex/basex
compile (group= "org.basex", name = "basex" , version = "7.3.1")
compile (group = "javax.xml.xquery" , name = "xqj-api" , version = "1.0")
// Use TestNG framework, also requires calling test.useTestNG() below
testImplementation("org.testng:testng:6.14.3")
}
application {
// Define the main class for the application
mainClassName = "org.basex.examples.local.App"
}
val test by tasks.getting(Test::class) {
// Use TestNG for unit tests
useTestNG()
}
java gradle kotlin classpath gradle-kotlin-dsl
java gradle kotlin classpath gradle-kotlin-dsl
asked Jan 1 at 20:26
ThufirThufir
3,1761771163
3,1761771163
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
See here : https://mvnrepository.com/artifact/javax.xml.xquery/xqj-api/1.0
This module is not hosted on Maven central nor JCenter repositories, but it can be found in some other repositories like: https://mvnrepository.com/repos/springio-plugins-release.
If you want to add dependency to this module, just declare one the available hosting repositories, for example:
In Groovy DSL:
repositories {
jcenter()
mavenCentral()
maven{
url "http://repo.spring.io/plugins-release/"
}
}
EDIT (from comment below)
Kotlin DSL
repositories {
mavenCentral()
jcenter()
maven {
setUrl("http://repo.spring.io/plugins-release/")
}
}
Thanks. Excellent. I'm looking up how to adapt to Kotlin DSL syntax.
– Thufir
Jan 1 at 20:47
1
I updated my answer.
– M.Ricciuti
Jan 1 at 20:56
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53998702%2fcould-not-find-javax-xml-xqueryxqj-api1-0%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
See here : https://mvnrepository.com/artifact/javax.xml.xquery/xqj-api/1.0
This module is not hosted on Maven central nor JCenter repositories, but it can be found in some other repositories like: https://mvnrepository.com/repos/springio-plugins-release.
If you want to add dependency to this module, just declare one the available hosting repositories, for example:
In Groovy DSL:
repositories {
jcenter()
mavenCentral()
maven{
url "http://repo.spring.io/plugins-release/"
}
}
EDIT (from comment below)
Kotlin DSL
repositories {
mavenCentral()
jcenter()
maven {
setUrl("http://repo.spring.io/plugins-release/")
}
}
Thanks. Excellent. I'm looking up how to adapt to Kotlin DSL syntax.
– Thufir
Jan 1 at 20:47
1
I updated my answer.
– M.Ricciuti
Jan 1 at 20:56
add a comment |
See here : https://mvnrepository.com/artifact/javax.xml.xquery/xqj-api/1.0
This module is not hosted on Maven central nor JCenter repositories, but it can be found in some other repositories like: https://mvnrepository.com/repos/springio-plugins-release.
If you want to add dependency to this module, just declare one the available hosting repositories, for example:
In Groovy DSL:
repositories {
jcenter()
mavenCentral()
maven{
url "http://repo.spring.io/plugins-release/"
}
}
EDIT (from comment below)
Kotlin DSL
repositories {
mavenCentral()
jcenter()
maven {
setUrl("http://repo.spring.io/plugins-release/")
}
}
Thanks. Excellent. I'm looking up how to adapt to Kotlin DSL syntax.
– Thufir
Jan 1 at 20:47
1
I updated my answer.
– M.Ricciuti
Jan 1 at 20:56
add a comment |
See here : https://mvnrepository.com/artifact/javax.xml.xquery/xqj-api/1.0
This module is not hosted on Maven central nor JCenter repositories, but it can be found in some other repositories like: https://mvnrepository.com/repos/springio-plugins-release.
If you want to add dependency to this module, just declare one the available hosting repositories, for example:
In Groovy DSL:
repositories {
jcenter()
mavenCentral()
maven{
url "http://repo.spring.io/plugins-release/"
}
}
EDIT (from comment below)
Kotlin DSL
repositories {
mavenCentral()
jcenter()
maven {
setUrl("http://repo.spring.io/plugins-release/")
}
}
See here : https://mvnrepository.com/artifact/javax.xml.xquery/xqj-api/1.0
This module is not hosted on Maven central nor JCenter repositories, but it can be found in some other repositories like: https://mvnrepository.com/repos/springio-plugins-release.
If you want to add dependency to this module, just declare one the available hosting repositories, for example:
In Groovy DSL:
repositories {
jcenter()
mavenCentral()
maven{
url "http://repo.spring.io/plugins-release/"
}
}
EDIT (from comment below)
Kotlin DSL
repositories {
mavenCentral()
jcenter()
maven {
setUrl("http://repo.spring.io/plugins-release/")
}
}
edited Jan 1 at 20:56
answered Jan 1 at 20:39


M.RicciutiM.Ricciuti
3,6852420
3,6852420
Thanks. Excellent. I'm looking up how to adapt to Kotlin DSL syntax.
– Thufir
Jan 1 at 20:47
1
I updated my answer.
– M.Ricciuti
Jan 1 at 20:56
add a comment |
Thanks. Excellent. I'm looking up how to adapt to Kotlin DSL syntax.
– Thufir
Jan 1 at 20:47
1
I updated my answer.
– M.Ricciuti
Jan 1 at 20:56
Thanks. Excellent. I'm looking up how to adapt to Kotlin DSL syntax.
– Thufir
Jan 1 at 20:47
Thanks. Excellent. I'm looking up how to adapt to Kotlin DSL syntax.
– Thufir
Jan 1 at 20:47
1
1
I updated my answer.
– M.Ricciuti
Jan 1 at 20:56
I updated my answer.
– M.Ricciuti
Jan 1 at 20:56
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53998702%2fcould-not-find-javax-xml-xqueryxqj-api1-0%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown