Cannot compile project with maven
What happened?
I ran mvn clean install and I got a dependency issue that I am sharing with you in the log output below.
Relevant log output
[INFO] Apache cTAKES Temporal Information Extraction ...... FAILURE [30:18 min]
[INFO] Apache cTAKES CoReference Resolver ................. SKIPPED
[INFO] Apache cTAKES Drug NER ............................. SKIPPED
[INFO] Apache cTAKES Side Effects ......................... SKIPPED
[INFO] Apache cTAKES Smoking Status ....................... SKIPPED
[INFO] Apache cTAKES Mastif Zoner ......................... SKIPPED
[INFO] Apache cTAKES Assertion's zoner .................... SKIPPED
[INFO] Apache cTAKES Default Clinical Pipeline ............ SKIPPED
[INFO] Apache cTAKES Template Filler (deprecated) ......... SKIPPED
[INFO] Apache cTAKES Python Bridge to Java ................ SKIPPED
[INFO] Apache cTAKES Examples ............................. SKIPPED
[INFO] Apache cTAKES YTEX ................................. SKIPPED
[INFO] Apache cTAKES YTEX UIMA ............................ SKIPPED
[INFO] Apache cTAKES Tiny Rest Service .................... SKIPPED
[INFO] Apache cTAKES User Resources ....................... SKIPPED
[INFO] Apache cTAKES Distribution ......................... SKIPPED
[INFO] Apache cTAKES Regression-test ...................... SKIPPED
[INFO] Apache cTAKES Dockhand ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30:42 min
[INFO] Finished at: 2025-09-07T21:22:29+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ctakes-temporal: Could not resolve dependencies for project org.apache.ctakes:ctakes-temporal:jar:7.0.0-SNAPSHOT
[ERROR] dependency: org.clulab:timenorm_2.13:jar:1.0.5 (compile)
[ERROR] Could not transfer artifact org.clulab:timenorm_2.13:jar:1.0.5 from/to central (https://repo.maven.apache.org/maven2): Read timed out
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :ctakes-temporal
cTAKES.error.log contents
Version
5.1.0
What operating system are you seeing the problem on?
No response
Contact Details
No response
Hi Filip, I may know what is happening, but I am not certain and even if I've correctly diagnosed the problem I have no solution for you.
The dependency "artifact org.clulab:timenorm_2.13:jar:1.0.5" that is causing the problem "Read timed out" does exist: https://repo.maven.apache.org/maven2/org/clulab/timenorm_2.13/1.0.5/
If you go to that repository and look at the size of timenorm_2.13-1.0.5.jar you will notice that it is enormous: 635MB. I believe that it includes a large ML model. The author(s) of that timenorm release would need to be consulted. Check the
My guess is that your connection is timing out while trying to fetch this single file. If you can find a way to make the connection timeout mechanism more lenient then I would go for that as a possible solution. Otherwise you may just need to keep trying the build until the download is by chance fast enough to complete.
Sean