Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed, missing dependencies #4

Open
albertotn opened this issue Apr 12, 2018 · 5 comments
Open

Build failed, missing dependencies #4

albertotn opened this issue Apr 12, 2018 · 5 comments

Comments

@albertotn
Copy link

Hi! Today I was experimenting with arquillian and gradle and build for this project gets an error:

$ gradle clean build
:clean UP-TO-DATE
:compileJava
:processResources NO-SOURCE
:classes
:war
:assemble
:compileTestJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all files for configuration ':testCompileClasspath'.

Could not find org.gradle:gradle-tooling-api:2.6.
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/gradle/gradle-tooling-api/2.6/gradle-tooling-api-2.6.pom
https://repo.maven.apache.org/maven2/org/gradle/gradle-tooling-api/2.6/gradle-tooling-api-2.6.jar
http://repository.jboss.org/nexus/content/groups/public/org/gradle/gradle-tooling-api/2.6/gradle-tooling-api-2.6.pom
http://repository.jboss.org/nexus/content/groups/public/org/gradle/gradle-tooling-api/2.6/gradle-tooling-api-2.6.jar
http://repository.jboss.org/nexus/content/repositories/deprecated/org/gradle/gradle-tooling-api/2.6/gradle-tooling-api-2.6.pom
http://repository.jboss.org/nexus/content/repositories/deprecated/org/gradle/gradle-tooling-api/2.6/gradle-tooling-api-2.6.jar
http://repo.jfrog.org/artifactory/repo/org/gradle/gradle-tooling-api/2.6/gradle-tooling-api-2.6.pom
http://repo.jfrog.org/artifactory/repo/org/gradle/gradle-tooling-api/2.6/gradle-tooling-api-2.6.jar
Required by:
project : > org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-gradle-depchain:2.2.0 > org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-gradle-embedded-archive:2.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
4 actionable tasks: 3 executed, 1 up-to-date

My 2 cents: seems to be a transitive missing dependecies, playing a little bit gives me no insight on how to solve this problem.

My gradle -v output:


Gradle 4.6

Build time: 2018-02-28 13:36:36 UTC
Revision: 8fa6ce7945b640e6168488e4417f9bb96e4ab46c

Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM: 1.8.0_162 (Oracle Corporation 25.162-b12)
OS: Windows 10 10.0 amd64

@mmatloka
Copy link
Owner

hello,
It seems some repositories got outdated during last two years ;) I have updated dependencies versions and repositories. Please try now.

@albertotn
Copy link
Author

Thanks for quick response, really appreciated! Now dependencies are solved correctly, but I've found this problem on test:

:test

org.jboss.shrinkwrap.resolver.example.FullGreeterTest > classMethod FAILED
	org.jboss.arquillian.container.spi.client.container.LifecycleException: Could not start container

		Caused by:
		java.lang.IllegalArgumentException: WFLYLNCHR0001: The path 'null' does not exist

org.jboss.shrinkwrap.resolver.example.GreeterTest > classMethod FAILED
	java.lang.RuntimeException: Arquillian initialization has already been attempted, but failed. See previous exceptions for cause

		Caused by:
		org.jboss.arquillian.container.spi.client.container.LifecycleException: Could not start container

			Caused by:
			java.lang.IllegalArgumentException: WFLYLNCHR0001: The path 'null' does not exist

2 tests completed, 2 failed
:test FAILED

FAILURE: Build failed with an exception.

@mmatloka
Copy link
Owner

Do you have a JBOSS_HOME env variable set?

@albertotn
Copy link
Author

yes, still no luck

@leccyril
Copy link

i have same problem on prod jenkins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants