-
Notifications
You must be signed in to change notification settings - Fork 51
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
Issue debugging with the plugin #888
Comments
That is the root of the problem. Is that file accessible and do the contents look similar to what is listed here? |
They look identical to me; this is what I get when I inspect it in the browser: |
That looks correct, so I am not sure why you are getting the exception saying it cannot be loaded. |
Yeah, I am basically crying at the moment :)) I have been dealing with this issue for days. It looks horrible on me. |
Has this worked previously on this machine with other Gradle projects? Or is this a new set up? |
We were trying to migrate a project from Payara to Open Liberty, its Gradle version was old as well, so we upgraded to 8.5. |
What Java version are you using? I'm going to test locally with Gradle 8.5. The latest we tested with is 8.4 so far. |
java version "1.8.0_411" |
I can debug with attaching to the server with no problems, but it is not the same as debugging from IntelliJ at all. The project is based on JavaEE8. |
Are you also using Liberty Tools for IntelliJ? You didn't mention it in this issue, so I am wondering. |
Yes, I am using it.
|
Sorry, I should have been more specific. I wasn't talking about Liberty Gradle Plugin. We have an integrated IDE extension called Liberty Tools for IntelliJ. See the marketplace here. Just for your information if you want to try it. It won't solve this issue though. |
Yes, I meant this https://plugins.jetbrains.com/plugin/14856-liberty-tools I had to downgrade my IntelliJ since it wasn't compatible with 2024 versions. |
when I fire it up, it calls this shell command: cmd /K "C:\Gradle\bin\gradle.bat" libertyDev --stacktrace --libertyDebugPort=62855 |
Ok, so you are running libertyDev through the IDE then? Not from the command line? |
I am doing both with same result really |
I've created the gradle-wrapper.properties file since Gradle was trying to download itself and was choking on it. This behavior only happened with this plugin, when I was running |
Alright, so I am not able to recreate locally. I just tried Gradle 8.5 with Java 8 and was able to run libertyDev successfully whether or not a specific version of Liberty was specified in the build.gradle. It has to be something with not being able to access that file in the Nexus repository. The only thing I know to suggest is to run with trace enabled
|
output.zip |
Hello,
I’m encountering an issue when running the libertyDev task in my Gradle project. The task fails with the following error message:
Could not find artifact with coordinates io.openliberty:openliberty-kernel:[23.0.0.3,). Verify a Maven repository is configured that contains the corresponding artifact.
However, I have confirmed that the openliberty-kernel artifact is present in my Nexus repository. I’ve also cleared my Gradle cache, but the issue persists.
Here are some details about my setup:
Gradle version: 8.5 (local distribution)
liberty-gradle-plugin version: 3.8.3
Nexus repository: local
I’m not specifying a version range for openliberty-kernel in my build.gradle file, so I suspect that the version range might be specified internally by the liberty-gradle-plugin.
I’ve tried several troubleshooting steps, including forcing a specific version of the dependency and refreshing all Gradle projects in my IDE, but none have resolved the issue.
Could you please help me understand why this is happening and how I can fix it? Let me know if you need any more information.
Thank you for your assistance.
Caused by: org.gradle.tooling.BuildException: Could not execute build using connection to Gradle distribution 'file:///C:/Gradle/gradle-8.5-bin.zip'.
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:51)
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:29)
at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:43)
at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:69)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
Caused by: org.gradle.internal.exceptions.DefaultMultiCauseException: Could not resolve io.openliberty:openliberty-kernel:[23.0.0.3,).
Required by:
project :Component_Properties
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Failed to list versions for io.openliberty:openliberty-kernel.
Caused by: org.gradle.api.resources.ResourceException: Unable to load Maven meta-data from http://wsp4983c:8081/repository/maven-central/io/openliberty/openliberty-kernel/maven-metadata.xml.
The text was updated successfully, but these errors were encountered: