Trouble building thorntail-examples/gradle-examples/jaxrs-cdi due to 'Could not find bom-all.jar'












1















From the thorntail git-hub site:
https://github.com/thorntail/thorntail-examples/blob/master/gradle-examples/jaxrs-cdi/



I tried building this example example project. However, I keep getting this error:



$ gradle build

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':thorntail-package'.
> Could not find bom-all.jar (io.thorntail:bom-all:2.3.0.Final).
Searched in the following locations:
file:/home/wsi/.m2/repository/io/thorntail/bom-all/2.3.0.Final/bom-all-2.3.0.Final.jar

* 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 6s
6 actionable tasks: 6 executed


My system is Ubuntu 18.04:



$ gradle --version

------------------------------------------------------------
Gradle 5.0
------------------------------------------------------------

Build time: 2018-11-26 11:48:43 UTC
Revision: 7fc6e5abf2fc5fe0824aec8a0f5462664dbcd987

Kotlin DSL: 1.0.4
Kotlin: 1.3.10
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM: 10.0.2 (Oracle Corporation 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OS: Linux 4.15.0-43-generic amd64


Note using VERSION_THORNTAIL = 2.3.0.Final or 2.2.1.Final gives the same results



Any help would be appreciated, I'd like to use gradle to build my project, but if I can't get this to work, then I'll have to fall back to maven. I'm guessing there is a bug either in their build.gradle file or in the thorntail plugin and or the way the dependencies are configured. I guess if no one knows the answer I'll have to make a JIRA issue for this.



EDIT: I'm adding more information in response to comments below:
First with Java 10:



12:45 wsi@ubuntu ~/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi [master]: Up-to-date
$ java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

12:45 wsi@ubuntu ~/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi [master]: Up-to-date
$ ./gradlew clean build -DthorntailVersion=2.2.1.Final

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'example-gradle'.
> Could not resolve all dependencies for configuration ':classpath'.
> Multiple build operations failed.
Could not initialize class org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomReader
Could not initialize class org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomReader
Could not initialize class org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomReader
Could not initialize class org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomReader

* 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 1s


With Java 8 it builds, but the tests fail



$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

12:47 wsi@ubuntu ~/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi [master]: Up-to-date
$ ./gradlew clean build -DthorntailVersion=2.2.1.Final

> Task :test

org.wildfly.swarm.examples.gradle.ArqWarDeploymentTest > classMethod FAILED
org.jboss.arquillian.container.spi.client.container.DeploymentException
Caused by: org.jboss.shrinkwrap.resolver.api.NoResolvedResultException
Caused by: org.eclipse.aether.resolution.DependencyResolutionException
Caused by: org.eclipse.aether.collection.DependencyCollectionException
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException
Caused by: org.eclipse.aether.transfer.ArtifactTransferException
Caused by: org.apache.maven.wagon.authorization.AuthorizationException

org.wildfly.swarm.examples.gradle.ArqContainerTest > classMethod FAILED
org.jboss.arquillian.container.spi.client.container.DeploymentException
Caused by: org.jboss.shrinkwrap.resolver.api.NoResolvedResultException
Caused by: org.eclipse.aether.resolution.DependencyResolutionException
Caused by: org.eclipse.aether.collection.DependencyCollectionException
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException
Caused by: org.eclipse.aether.transfer.ArtifactTransferException
Caused by: org.apache.maven.wagon.authorization.AuthorizationException

2 tests completed, 2 failed

> Task :test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/wsi/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi/build/reports/tests/test/index.html

* 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 2m 51s
9 actionable tasks: 9 executed


Edit 2: Adding more details from the
file:///home/wsi/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi/build/reports/tests/test/index.html
report



The stack trace is quite long, but here's the cause of the 2 failing tests:





  1. org.wildfly.swarm.examples.gradle > ArqContainerTest



    Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://maven-server:8081/nexus/content/groups/releases/com/fasterxml/classmate/1.3.3/classmate-1.3.3.pom



  2. org.wildfly.swarm.examples.gradle > ArqWarDeploymentTest



    Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://maven-server:8081/nexus/content/groups/releases/io/thorntail/msc/2.2.1.Final/msc-2.2.1.Final.pom











share|improve this question




















  • 1





    For all practical purposes, the Gradle plugin is maintained by a community member. If you can file a JIRA with steps to reproduce, I can assign it to him.

    – Ladicek
    Jan 17 at 12:30






  • 1





    It's also highly possible that 2.3.0.Final wasn't available in Maven Central when you tried the build. Can you try again?

    – Ken
    Jan 17 at 14:06











  • Hi Ken, I tried it both with 2.2.1.Final and 2.3.0.Final so its not that, I think. I can see both of their pom files in my repo. Looking at the pom files, they're both using packaging of 'pom' therefore, it looks like its a problem with the gradle plugin more than likely.

    – Craig
    Jan 17 at 23:11






  • 1





    @Craig .. Looks 'bom-all' is not available for 2.3.0.Final. Let me check with the Thorntail team. In the meantime, can you please confirm if the following command is working well for you? $> ./gradlew clean build -DthorntailVersion=2.2.1.Final

    – Harsha R
    Jan 18 at 18:07













  • @HarshaR I tried it using your suggestions and updated the question with the details.

    – Craig
    Jan 19 at 18:03
















1















From the thorntail git-hub site:
https://github.com/thorntail/thorntail-examples/blob/master/gradle-examples/jaxrs-cdi/



I tried building this example example project. However, I keep getting this error:



$ gradle build

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':thorntail-package'.
> Could not find bom-all.jar (io.thorntail:bom-all:2.3.0.Final).
Searched in the following locations:
file:/home/wsi/.m2/repository/io/thorntail/bom-all/2.3.0.Final/bom-all-2.3.0.Final.jar

* 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 6s
6 actionable tasks: 6 executed


My system is Ubuntu 18.04:



$ gradle --version

------------------------------------------------------------
Gradle 5.0
------------------------------------------------------------

Build time: 2018-11-26 11:48:43 UTC
Revision: 7fc6e5abf2fc5fe0824aec8a0f5462664dbcd987

Kotlin DSL: 1.0.4
Kotlin: 1.3.10
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM: 10.0.2 (Oracle Corporation 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OS: Linux 4.15.0-43-generic amd64


Note using VERSION_THORNTAIL = 2.3.0.Final or 2.2.1.Final gives the same results



Any help would be appreciated, I'd like to use gradle to build my project, but if I can't get this to work, then I'll have to fall back to maven. I'm guessing there is a bug either in their build.gradle file or in the thorntail plugin and or the way the dependencies are configured. I guess if no one knows the answer I'll have to make a JIRA issue for this.



EDIT: I'm adding more information in response to comments below:
First with Java 10:



12:45 wsi@ubuntu ~/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi [master]: Up-to-date
$ java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

12:45 wsi@ubuntu ~/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi [master]: Up-to-date
$ ./gradlew clean build -DthorntailVersion=2.2.1.Final

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'example-gradle'.
> Could not resolve all dependencies for configuration ':classpath'.
> Multiple build operations failed.
Could not initialize class org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomReader
Could not initialize class org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomReader
Could not initialize class org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomReader
Could not initialize class org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomReader

* 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 1s


With Java 8 it builds, but the tests fail



$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

12:47 wsi@ubuntu ~/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi [master]: Up-to-date
$ ./gradlew clean build -DthorntailVersion=2.2.1.Final

> Task :test

org.wildfly.swarm.examples.gradle.ArqWarDeploymentTest > classMethod FAILED
org.jboss.arquillian.container.spi.client.container.DeploymentException
Caused by: org.jboss.shrinkwrap.resolver.api.NoResolvedResultException
Caused by: org.eclipse.aether.resolution.DependencyResolutionException
Caused by: org.eclipse.aether.collection.DependencyCollectionException
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException
Caused by: org.eclipse.aether.transfer.ArtifactTransferException
Caused by: org.apache.maven.wagon.authorization.AuthorizationException

org.wildfly.swarm.examples.gradle.ArqContainerTest > classMethod FAILED
org.jboss.arquillian.container.spi.client.container.DeploymentException
Caused by: org.jboss.shrinkwrap.resolver.api.NoResolvedResultException
Caused by: org.eclipse.aether.resolution.DependencyResolutionException
Caused by: org.eclipse.aether.collection.DependencyCollectionException
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException
Caused by: org.eclipse.aether.transfer.ArtifactTransferException
Caused by: org.apache.maven.wagon.authorization.AuthorizationException

2 tests completed, 2 failed

> Task :test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/wsi/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi/build/reports/tests/test/index.html

* 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 2m 51s
9 actionable tasks: 9 executed


Edit 2: Adding more details from the
file:///home/wsi/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi/build/reports/tests/test/index.html
report



The stack trace is quite long, but here's the cause of the 2 failing tests:





  1. org.wildfly.swarm.examples.gradle > ArqContainerTest



    Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://maven-server:8081/nexus/content/groups/releases/com/fasterxml/classmate/1.3.3/classmate-1.3.3.pom



  2. org.wildfly.swarm.examples.gradle > ArqWarDeploymentTest



    Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://maven-server:8081/nexus/content/groups/releases/io/thorntail/msc/2.2.1.Final/msc-2.2.1.Final.pom











share|improve this question




















  • 1





    For all practical purposes, the Gradle plugin is maintained by a community member. If you can file a JIRA with steps to reproduce, I can assign it to him.

    – Ladicek
    Jan 17 at 12:30






  • 1





    It's also highly possible that 2.3.0.Final wasn't available in Maven Central when you tried the build. Can you try again?

    – Ken
    Jan 17 at 14:06











  • Hi Ken, I tried it both with 2.2.1.Final and 2.3.0.Final so its not that, I think. I can see both of their pom files in my repo. Looking at the pom files, they're both using packaging of 'pom' therefore, it looks like its a problem with the gradle plugin more than likely.

    – Craig
    Jan 17 at 23:11






  • 1





    @Craig .. Looks 'bom-all' is not available for 2.3.0.Final. Let me check with the Thorntail team. In the meantime, can you please confirm if the following command is working well for you? $> ./gradlew clean build -DthorntailVersion=2.2.1.Final

    – Harsha R
    Jan 18 at 18:07













  • @HarshaR I tried it using your suggestions and updated the question with the details.

    – Craig
    Jan 19 at 18:03














1












1








1








From the thorntail git-hub site:
https://github.com/thorntail/thorntail-examples/blob/master/gradle-examples/jaxrs-cdi/



I tried building this example example project. However, I keep getting this error:



$ gradle build

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':thorntail-package'.
> Could not find bom-all.jar (io.thorntail:bom-all:2.3.0.Final).
Searched in the following locations:
file:/home/wsi/.m2/repository/io/thorntail/bom-all/2.3.0.Final/bom-all-2.3.0.Final.jar

* 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 6s
6 actionable tasks: 6 executed


My system is Ubuntu 18.04:



$ gradle --version

------------------------------------------------------------
Gradle 5.0
------------------------------------------------------------

Build time: 2018-11-26 11:48:43 UTC
Revision: 7fc6e5abf2fc5fe0824aec8a0f5462664dbcd987

Kotlin DSL: 1.0.4
Kotlin: 1.3.10
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM: 10.0.2 (Oracle Corporation 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OS: Linux 4.15.0-43-generic amd64


Note using VERSION_THORNTAIL = 2.3.0.Final or 2.2.1.Final gives the same results



Any help would be appreciated, I'd like to use gradle to build my project, but if I can't get this to work, then I'll have to fall back to maven. I'm guessing there is a bug either in their build.gradle file or in the thorntail plugin and or the way the dependencies are configured. I guess if no one knows the answer I'll have to make a JIRA issue for this.



EDIT: I'm adding more information in response to comments below:
First with Java 10:



12:45 wsi@ubuntu ~/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi [master]: Up-to-date
$ java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

12:45 wsi@ubuntu ~/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi [master]: Up-to-date
$ ./gradlew clean build -DthorntailVersion=2.2.1.Final

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'example-gradle'.
> Could not resolve all dependencies for configuration ':classpath'.
> Multiple build operations failed.
Could not initialize class org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomReader
Could not initialize class org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomReader
Could not initialize class org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomReader
Could not initialize class org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomReader

* 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 1s


With Java 8 it builds, but the tests fail



$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

12:47 wsi@ubuntu ~/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi [master]: Up-to-date
$ ./gradlew clean build -DthorntailVersion=2.2.1.Final

> Task :test

org.wildfly.swarm.examples.gradle.ArqWarDeploymentTest > classMethod FAILED
org.jboss.arquillian.container.spi.client.container.DeploymentException
Caused by: org.jboss.shrinkwrap.resolver.api.NoResolvedResultException
Caused by: org.eclipse.aether.resolution.DependencyResolutionException
Caused by: org.eclipse.aether.collection.DependencyCollectionException
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException
Caused by: org.eclipse.aether.transfer.ArtifactTransferException
Caused by: org.apache.maven.wagon.authorization.AuthorizationException

org.wildfly.swarm.examples.gradle.ArqContainerTest > classMethod FAILED
org.jboss.arquillian.container.spi.client.container.DeploymentException
Caused by: org.jboss.shrinkwrap.resolver.api.NoResolvedResultException
Caused by: org.eclipse.aether.resolution.DependencyResolutionException
Caused by: org.eclipse.aether.collection.DependencyCollectionException
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException
Caused by: org.eclipse.aether.transfer.ArtifactTransferException
Caused by: org.apache.maven.wagon.authorization.AuthorizationException

2 tests completed, 2 failed

> Task :test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/wsi/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi/build/reports/tests/test/index.html

* 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 2m 51s
9 actionable tasks: 9 executed


Edit 2: Adding more details from the
file:///home/wsi/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi/build/reports/tests/test/index.html
report



The stack trace is quite long, but here's the cause of the 2 failing tests:





  1. org.wildfly.swarm.examples.gradle > ArqContainerTest



    Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://maven-server:8081/nexus/content/groups/releases/com/fasterxml/classmate/1.3.3/classmate-1.3.3.pom



  2. org.wildfly.swarm.examples.gradle > ArqWarDeploymentTest



    Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://maven-server:8081/nexus/content/groups/releases/io/thorntail/msc/2.2.1.Final/msc-2.2.1.Final.pom











share|improve this question
















From the thorntail git-hub site:
https://github.com/thorntail/thorntail-examples/blob/master/gradle-examples/jaxrs-cdi/



I tried building this example example project. However, I keep getting this error:



$ gradle build

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':thorntail-package'.
> Could not find bom-all.jar (io.thorntail:bom-all:2.3.0.Final).
Searched in the following locations:
file:/home/wsi/.m2/repository/io/thorntail/bom-all/2.3.0.Final/bom-all-2.3.0.Final.jar

* 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 6s
6 actionable tasks: 6 executed


My system is Ubuntu 18.04:



$ gradle --version

------------------------------------------------------------
Gradle 5.0
------------------------------------------------------------

Build time: 2018-11-26 11:48:43 UTC
Revision: 7fc6e5abf2fc5fe0824aec8a0f5462664dbcd987

Kotlin DSL: 1.0.4
Kotlin: 1.3.10
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM: 10.0.2 (Oracle Corporation 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OS: Linux 4.15.0-43-generic amd64


Note using VERSION_THORNTAIL = 2.3.0.Final or 2.2.1.Final gives the same results



Any help would be appreciated, I'd like to use gradle to build my project, but if I can't get this to work, then I'll have to fall back to maven. I'm guessing there is a bug either in their build.gradle file or in the thorntail plugin and or the way the dependencies are configured. I guess if no one knows the answer I'll have to make a JIRA issue for this.



EDIT: I'm adding more information in response to comments below:
First with Java 10:



12:45 wsi@ubuntu ~/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi [master]: Up-to-date
$ java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

12:45 wsi@ubuntu ~/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi [master]: Up-to-date
$ ./gradlew clean build -DthorntailVersion=2.2.1.Final

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'example-gradle'.
> Could not resolve all dependencies for configuration ':classpath'.
> Multiple build operations failed.
Could not initialize class org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomReader
Could not initialize class org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomReader
Could not initialize class org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomReader
Could not initialize class org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomReader

* 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 1s


With Java 8 it builds, but the tests fail



$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

12:47 wsi@ubuntu ~/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi [master]: Up-to-date
$ ./gradlew clean build -DthorntailVersion=2.2.1.Final

> Task :test

org.wildfly.swarm.examples.gradle.ArqWarDeploymentTest > classMethod FAILED
org.jboss.arquillian.container.spi.client.container.DeploymentException
Caused by: org.jboss.shrinkwrap.resolver.api.NoResolvedResultException
Caused by: org.eclipse.aether.resolution.DependencyResolutionException
Caused by: org.eclipse.aether.collection.DependencyCollectionException
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException
Caused by: org.eclipse.aether.transfer.ArtifactTransferException
Caused by: org.apache.maven.wagon.authorization.AuthorizationException

org.wildfly.swarm.examples.gradle.ArqContainerTest > classMethod FAILED
org.jboss.arquillian.container.spi.client.container.DeploymentException
Caused by: org.jboss.shrinkwrap.resolver.api.NoResolvedResultException
Caused by: org.eclipse.aether.resolution.DependencyResolutionException
Caused by: org.eclipse.aether.collection.DependencyCollectionException
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException
Caused by: org.eclipse.aether.transfer.ArtifactTransferException
Caused by: org.apache.maven.wagon.authorization.AuthorizationException

2 tests completed, 2 failed

> Task :test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/wsi/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi/build/reports/tests/test/index.html

* 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 2m 51s
9 actionable tasks: 9 executed


Edit 2: Adding more details from the
file:///home/wsi/dev/workspace-thorntail-examples/gradle-examples/jaxrs-cdi/build/reports/tests/test/index.html
report



The stack trace is quite long, but here's the cause of the 2 failing tests:





  1. org.wildfly.swarm.examples.gradle > ArqContainerTest



    Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://maven-server:8081/nexus/content/groups/releases/com/fasterxml/classmate/1.3.3/classmate-1.3.3.pom



  2. org.wildfly.swarm.examples.gradle > ArqWarDeploymentTest



    Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://maven-server:8081/nexus/content/groups/releases/io/thorntail/msc/2.2.1.Final/msc-2.2.1.Final.pom








java gradle wildfly thorntail






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 23 at 16:25







Craig

















asked Jan 17 at 4:27









CraigCraig

1,08611229




1,08611229








  • 1





    For all practical purposes, the Gradle plugin is maintained by a community member. If you can file a JIRA with steps to reproduce, I can assign it to him.

    – Ladicek
    Jan 17 at 12:30






  • 1





    It's also highly possible that 2.3.0.Final wasn't available in Maven Central when you tried the build. Can you try again?

    – Ken
    Jan 17 at 14:06











  • Hi Ken, I tried it both with 2.2.1.Final and 2.3.0.Final so its not that, I think. I can see both of their pom files in my repo. Looking at the pom files, they're both using packaging of 'pom' therefore, it looks like its a problem with the gradle plugin more than likely.

    – Craig
    Jan 17 at 23:11






  • 1





    @Craig .. Looks 'bom-all' is not available for 2.3.0.Final. Let me check with the Thorntail team. In the meantime, can you please confirm if the following command is working well for you? $> ./gradlew clean build -DthorntailVersion=2.2.1.Final

    – Harsha R
    Jan 18 at 18:07













  • @HarshaR I tried it using your suggestions and updated the question with the details.

    – Craig
    Jan 19 at 18:03














  • 1





    For all practical purposes, the Gradle plugin is maintained by a community member. If you can file a JIRA with steps to reproduce, I can assign it to him.

    – Ladicek
    Jan 17 at 12:30






  • 1





    It's also highly possible that 2.3.0.Final wasn't available in Maven Central when you tried the build. Can you try again?

    – Ken
    Jan 17 at 14:06











  • Hi Ken, I tried it both with 2.2.1.Final and 2.3.0.Final so its not that, I think. I can see both of their pom files in my repo. Looking at the pom files, they're both using packaging of 'pom' therefore, it looks like its a problem with the gradle plugin more than likely.

    – Craig
    Jan 17 at 23:11






  • 1





    @Craig .. Looks 'bom-all' is not available for 2.3.0.Final. Let me check with the Thorntail team. In the meantime, can you please confirm if the following command is working well for you? $> ./gradlew clean build -DthorntailVersion=2.2.1.Final

    – Harsha R
    Jan 18 at 18:07













  • @HarshaR I tried it using your suggestions and updated the question with the details.

    – Craig
    Jan 19 at 18:03








1




1





For all practical purposes, the Gradle plugin is maintained by a community member. If you can file a JIRA with steps to reproduce, I can assign it to him.

– Ladicek
Jan 17 at 12:30





For all practical purposes, the Gradle plugin is maintained by a community member. If you can file a JIRA with steps to reproduce, I can assign it to him.

– Ladicek
Jan 17 at 12:30




1




1





It's also highly possible that 2.3.0.Final wasn't available in Maven Central when you tried the build. Can you try again?

– Ken
Jan 17 at 14:06





It's also highly possible that 2.3.0.Final wasn't available in Maven Central when you tried the build. Can you try again?

– Ken
Jan 17 at 14:06













Hi Ken, I tried it both with 2.2.1.Final and 2.3.0.Final so its not that, I think. I can see both of their pom files in my repo. Looking at the pom files, they're both using packaging of 'pom' therefore, it looks like its a problem with the gradle plugin more than likely.

– Craig
Jan 17 at 23:11





Hi Ken, I tried it both with 2.2.1.Final and 2.3.0.Final so its not that, I think. I can see both of their pom files in my repo. Looking at the pom files, they're both using packaging of 'pom' therefore, it looks like its a problem with the gradle plugin more than likely.

– Craig
Jan 17 at 23:11




1




1





@Craig .. Looks 'bom-all' is not available for 2.3.0.Final. Let me check with the Thorntail team. In the meantime, can you please confirm if the following command is working well for you? $> ./gradlew clean build -DthorntailVersion=2.2.1.Final

– Harsha R
Jan 18 at 18:07







@Craig .. Looks 'bom-all' is not available for 2.3.0.Final. Let me check with the Thorntail team. In the meantime, can you please confirm if the following command is working well for you? $> ./gradlew clean build -DthorntailVersion=2.2.1.Final

– Harsha R
Jan 18 at 18:07















@HarshaR I tried it using your suggestions and updated the question with the details.

– Craig
Jan 19 at 18:03





@HarshaR I tried it using your suggestions and updated the question with the details.

– Craig
Jan 19 at 18:03












0






active

oldest

votes











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54229049%2ftrouble-building-thorntail-examples-gradle-examples-jaxrs-cdi-due-to-could-not%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54229049%2ftrouble-building-thorntail-examples-gradle-examples-jaxrs-cdi-due-to-could-not%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Callistus III

Ostreoida

Plistias Cous