-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Missing dependencies: "org.benf:cfr:0.132.0" and "org.eclipse.platform:org.eclipse.equinox.app" #2737
Comments
Yes the dependency is available on the inria maven repo, which you can add (as in spoon's pom) with: <repository>
<id>inria</id>
<name>triskell-public-release</name>
<url>http://maven.inria.fr/artifactory/triskell-public-release</url>
</repository> Not sure how to add a repo to sbt though (Perhaps something like this). |
Does it mean that the |
I'm not sure what do you mean, but the jar |
@RichardBradley did you take the with-dependencies version? |
@monperrus, I did not use the with-dependencies jar, no. I think it is more conventional to use the standard jar, as it allows for de-duplication of shared dependencies and detection of conflicting dependencies etc. |
@nharrand: the docs need updating to reference this non-standard repo then. The front-page does not mention this at present: https://github.com/INRIA/spoon#getting-started-in-2-seconds I don't know what spoon needs "cfr" or "eclipse.equinox.app" for, but the latter at least looks like a possible mistake to me. |
You are using sbt right? |
I expect that adding the maven.inria.fr repository will work. I have not tried it, because I chose to downgrade to ver 7.0.0 rather than trust a repos I have never heard of. (I think the SBT syntax is a distraction here; anyone using SBT will know how to translate Maven syntax into SBT.) I think the two bugs here are:
|
I can understand that. 1.a) is not simple. I am not the author of cfr and not in control of the associated domain. The author does not plan to publish the artifact on Maven Central (according to his website), even if the binary is under MIT license. I'm unsure about the role of |
It does not; you need to add a repo which contains
There is no difference between SBT and Maven in this regard. I am sorry to have confused matters by posting an SBT snippet. |
Ok then, my bad. I'll try to fix this then. |
I have troubles reproducing it. If I download |
I expect you have See Line 214 in f0dd561
|
No, I did removed it from my cache. I even ran it in a docker container with an empty |
But wait, yes it would. That's the point of adding this repository. That's why I keep asking if you included these lines! Do you mean that the bug you are reporting is, if you remove a part of the spoon pom, it stop working? If so we can discuss if having external repository is well founded, but it's definitely not a bug in the sense that it is not accidental. |
I feel like we are not understanding each other here. I am sorry. Let me try rephrasing things.
The easiest fix will be to update the documentation in the "Getting started in 2 seconds" section to include this custom repository (described above as fix 1.b). There is a similar bug for a second non-public transitive dependency ( Does that clarify the bug? |
Actually you're perfectly right, we shouldn't have put a dependency in our pom that is not available on Maven Central. Thanks for reporting this! |
Ok. |
Not sure either if it's a problem for everyone: I personally tested it in another project by removing any references I could have on my computer to INRIA and it managed to resolve it properly by getting the repository from the Spoon pom directly. Anyway, it's definitely not recommended to put a dependency that is not in Maven Central in the pom, so we should be more careful about it. Now I got an answer from the maintainer of CFR and he seems willing to put CFR on central, so on the long term view it should be ok. |
I agree.
Wow. That's cool! |
The published version 7.1.0 of spoon-core depends on a library that is not in the public maven repositories:
org.benf:cfr:0.132.0
You can see this at e.g. https://mvnrepository.com/artifact/fr.inria.gforge.spoon/spoon-core/7.1.0 which lists it as a dep but does not have a hyperlink to a published version of this artefact.
When I try to compile a project against 7.1.0 spoon-core, I get the following error (using SBT/Ivy):
Similarly, it seems that 7.0.0 has a transitive dependency on
org.eclipse.platform:org.eclipse.equinox.app
, which I cannot resolve either, but things seem to work OK if I exclude that dep, i.e.The text was updated successfully, but these errors were encountered: