-
Notifications
You must be signed in to change notification settings - Fork 14
Error when trying to resolve dependency with null values #21
Comments
Will try to have a look this weekend.
Sent from my Samsung device
-------- Original message --------
From: James Kerr <[email protected]>
Date: 03/08/2017 21:24 (GMT+01:00)
To: ysb33r/ivypot-gradle-plugin <[email protected]>
Cc: Subscribed <[email protected]>
Subject: [ysb33r/ivypot-gradle-plugin] Error when trying to resolve dependency
with null values (#21)
I'm not sure where this dependency is coming from but the ivypot plugin is throwing an error while trying to resolve a null dependency. This is the error:
:syncRemoteRepositories
[syncRemoteRepositoriesConfigure] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/ ::
[syncRemoteRepositoriesConfigure] :: loading settings :: file = /root/projects/cognizant-ipas/ML_DHF_IPAS/build/tmp/syncRemoteRepositories/ivysettings.xml
[syncRemoteRepositoriesResolve] ivy.instance reference an ivy:settings defined in an other classloader. An new default one will be used in this project.
[syncRemoteRepositoriesResolve] :: problems summary ::
[syncRemoteRepositoriesResolve] :::: WARNINGS
[syncRemoteRepositoriesResolve] module not found: null#unspecified;null
[syncRemoteRepositoriesResolve] ==== BintrayJCenter: tried
[syncRemoteRepositoriesResolve] https://jcenter.bintray.com/null/unspecified/null/unspecified-null.pom
[syncRemoteRepositoriesResolve] -- artifact null#unspecified;null!unspecified.jar:
[syncRemoteRepositoriesResolve] https://jcenter.bintray.com/null/unspecified/null/unspecified-null.jar
[syncRemoteRepositoriesResolve] ==== MavenRepo: tried
[syncRemoteRepositoriesResolve] http://repo1.maven.org/maven2/null/unspecified/null/unspecified-null.pom
[syncRemoteRepositoriesResolve] -- artifact null#unspecified;null!unspecified.jar:
[syncRemoteRepositoriesResolve] http://repo1.maven.org/maven2/null/unspecified/null/unspecified-null.jar
[syncRemoteRepositoriesResolve] ==== maven: tried
[syncRemoteRepositoriesResolve] https://plugins.gradle.org/m2/null/unspecified/null/unspecified-null.pom
[syncRemoteRepositoriesResolve] -- artifact null#unspecified;null!unspecified.jar:
[syncRemoteRepositoriesResolve] https://plugins.gradle.org/m2/null/unspecified/null/unspecified-null.jar
[syncRemoteRepositoriesResolve] ==== maven2: tried
[syncRemoteRepositoriesResolve] http://developer.marklogic.com/maven2/null/unspecified/null/unspecified-null.pom
[syncRemoteRepositoriesResolve] -- artifact null#unspecified;null!unspecified.jar:
[syncRemoteRepositoriesResolve] ::::::::::::::::::::::::::::::::::::::::::::::
[syncRemoteRepositoriesResolve] :: UNRESOLVED DEPENDENCIES ::
[syncRemoteRepositoriesResolve] ::::::::::::::::::::::::::::::::::::::::::::::
[syncRemoteRepositoriesResolve] :: null#unspecified;null: not found
[syncRemoteRepositoriesResolve] ::::::::::::::::::::::::::::::::::::::::::::::
:syncRemoteRepositories FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':syncRemoteRepositories'.
impossible to resolve dependencies:
resolve failed - see output for details
This it the exception
Caused by: : impossible to resolve dependencies:
resolve failed - see output for details
at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:318)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.ysb33r.gradle.ivypot.OfflineRepositorySync.ivyInstall(OfflineRepositorySync.groovy:208)
at org.ysb33r.gradle.ivypot.OfflineRepositorySync$_exec_closure4.doCall(OfflineRepositorySync.groovy:193)
at org.ysb33r.gradle.ivypot.OfflineRepositorySync.exec(OfflineRepositorySync.groovy:192)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.doExecute(DefaultTaskClassInfoStore.java:136)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:129)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:118)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:623)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:606)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
... 68 more
Caused by: resolve failed - see output for details
at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:251)
... 82 more
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/ysb33r/ivypot-gradle-plugin","title":"ysb33r/ivypot-gradle-plugin","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/ysb33r/ivypot-gradle-plugin"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Error when trying to resolve dependency with null values (#21)"}],"action":{"name":"View Issue","url":"#21"}}}
|
I cannto reproduce this. Do you have an example project I can check? |
I am faceing the same issue where all dependencies have "null" as version. For me this happens when I have a parent project defining dependency constraints for the subprojects, and the subprojects have their dependencies without version. Seems like ivypot isn't able to use the constraints. |
If you can provide me with an example project, then I can see what can be done to solve this issue. |
https://gist.github.com/tr7zw/debb0758e68dcc107024c361c7440503 quickly created 2 build.gradle files that have this problem.
gradle syncRemoteRepositories output:
For my current project I was able to use ivy directly in order to resolve and create the ivy cache that I needed, but getting this fixed is probably helpfull for future projects. |
Thank you. This will help, I'm sure/ |
Did you manage to have a first look into this issue. We are running into it as well. |
@tr7zw Thank you for your example. I have managed to repoduce the issue within a test. @jensborrmann FInally got some time to look at this. *PLEASE NOTE: The repo has moved here https://gitlab.com/ysb33rOrg/ivypot-gradle-plugin |
I'm not sure where this dependency is coming from but the ivypot plugin is throwing an error while trying to resolve a null dependency. This is the error:
This it the exception
The text was updated successfully, but these errors were encountered: