# Failed to build dl4j-examples

**URL:** <https://community.konduit.ai/t/failed-to-build-dl4j-examples/2003>\
**Category:** DL4J\
**Created:** [September 6, 2022, 5:04pm UTC](https://community.konduit.ai/t/failed-to-build-dl4j-examples/2003 "2022-09-06T17:04:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TempKonduitUser1](https://avatars.discourse-cdn.com/v4/letter/t/76d3ee/32.png) [@TempKonduitUser1](https://community.konduit.ai/u/TempKonduitUser1)\
**Post date:** [September 6, 2022, 5:04pm UTC](https://community.konduit.ai/t/failed-to-build-dl4j-examples/2003/1 "2022-09-06T17:04:13Z")

</div>

Have clone the newest version of dl4j-examples.  
Ran the following command for dl4j-examples:  
_mvn clean install_  
but the following error is reported:  
_[INFO] ------------------------------------------------------------------------_  
_[INFO] BUILD FAILURE_  
_[INFO] ------------------------------------------------------------------------_  
_[INFO] Total time: 02:51 h_  
_[INFO] Finished at: 2022-09-06T01:35:19+08:00_  
_[INFO] ------------------------------------------------------------------------_  
_[ERROR] Failed to execute goal on project dl4j-examples: Could not resolve dependencies for project org.deeplearning4j:dl4j-examples:jar:1.0.0-SNAPSHOT: The following artifacts could not be resolved: org.bytedeco:opencv:jar:macosx-x86\_64:4.5.5-1.5.7, org.bytedeco:opencv:jar:windows-x86:4.5.5-1.5.7, org.bytedeco:opencv:jar:windows-x86\_64:4.5.5-1.5.7, org.bytedeco:leptonica:jar:android-x86:1.82.0-1.5.7, org.bytedeco:ffmpeg:jar:android-arm:5.0-1.5.7, org.bytedeco:ffmpeg:jar:android-arm64:5.0-1.5.7, org.bytedeco:ffmpeg:jar:android-x86:5.0-1.5.7, org.bytedeco:ffmpeg:jar:android-x86\_64:5.0-1.5.7, org.bytedeco:ffmpeg:jar:linux-armhf:5.0-1.5.7, org.bytedeco:ffmpeg:jar:linux-arm64:5.0-1.5.7, org.bytedeco:openblas:jar:windows-x86:0.3.13-1.5.5, org.bytedeco:librealsense2:jar:linux-armhf:2.40.0-1.5.5, org.bytedeco:librealsense2:jar:linux-arm64:2.40.0-1.5.5: Could not transfer artifact org.bytedeco:opencv:jar:macosx-x86\_64:4.5.5-1.5.7 from/to central ([Central Repository:](https://repo.maven.apache.org/maven2)): GET request of: org/bytedeco/opencv/4.5.5-1.5.7/opencv-4.5.5-1.5.7-macosx-x86\_64.jar from central failed: Premature end of Content-Length delimited message body (expected: 25,610,264; received: 16,524,020) → [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] [DependencyResolutionException - Apache Maven - Apache Software Foundation](http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException)_  
What could be the cause? Thanks in advance!  
Any hint/guidance would be appreciated.

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [September 7, 2022, 1:07am UTC](https://community.konduit.ai/t/failed-to-build-dl4j-examples/2003/2 "2022-09-07T01:07:59Z")

</div>

@TempKonduitUser1 that has nothing to do with the examples that’s just your network cutting the download. Just rerun the build. You may need to clean your .m2 repository of any corrupt artifacts.
