module: local install? found. jitpack install? not found.
Answered
https://jitpack.io/#marginallyclever/donatello/1.2.7 builds and installs OK.
Working solution
- clone https://github.com/marginallyclever/donatello tag 1.2.7
- maven clean install
- clone https://github.com/MarginallyClever/Makelangelo-software/tree/donatello-2
- maven build with IDEA
<dependency>
<groupId>com.marginallyclever</groupId> <!-- not jitpack groupID -->
<artifactId>donatello</artifactId>
<version>1.2.7</version>
</dependency>
Does not work if
- clone https://github.com/MarginallyClever/Makelangelo-software/tree/donatello-2
- change pom.xml to use jitpack version, like so:
<dependency>
<groupId>com.github.marginallyclever</groupId> <!-- jitpack -->
<artifactId>donatello</artifactId>
<version>1.2.7</version>
</dependency>
- maven build with IDEA. Seems fine?
- run. Exception, module not found.
What's going on here? Anyone have a hint for me, please?
Please sign in to leave a comment.
Hello, Dan!
Thank you for reporting this!
Could you please elaborate on how exactly you are executing the build "maven build with IDEA" (Maven Tool Window, Build Menu, etc.) and share a screenshot of the Run Configuration you are using to run the app.
Currently then attempting to build
Makelangelo-software(donatello-2branch) I'm gettingfrom IDEA Native Build System, IDEA's Maven and Maven started from the OS Command Prompt with the
defined, which suggests there is a Project misconfiguration there.
However, for IDEA Native Build System this can be worked around by:
1. Linking the Donatello Project via Maven Tool Window:
2. (Optional) Build → Build / Rebuild Project
3. The app can be started with an Application Run Configuration:
Well… I don't want a work-around because this same problem appears in Github CI Action and without this I can't build a release candidate.
Dan Royer As stated in my previous message, the Project does not build for me with pure Maven, so the issue is likely to be outside of IDEA.
Does
mvn compilecomplete successfully in your environment forMakelangelo-software?Yes, it builds with mvn compile. I have https://github.com/MarginallyClever/NodeGraphCore/ and https://github.com/MarginallyClever/Donatello/ on my system, installed locally. if I do NOT have them installed locally the jitpack problem happens.
Dan Royer Could you please share the exact error message IDEA returns in your environment?
I've run into IDEA not resolving
requires com.marginallyclever.donatelloline, that occurs on build - this one can be resolved by caches wipe and Project re-import.There is, however, another one, that occurs on runtime:
This one poses a rather interesting discrepancy between Maven's and IDEA's runtime behavior.
ThreadPoolScheduleronly present innodegraphcore1.0.28 and is missing from version 1.0.23, both of which are present in the classpath.Right now it is unclear what causes the discrepancy, I have engaged the R&D Team - we are continuing the investigation.
I'm sorry I'm no longer able to reproduce my original bug. I had previously tried the cache clearing and restarting IDEA. I have no idea why it appeared or why it's gone. :( :( :(
Dan Royer That makes it even more curious!
We will continue the investigation on our end, please let me know if the issue comes back at any point.