How to find missing dependencies


I’m practicing how to build my own projects with maven in a linux computer. I used the MnistClassifier code provided in the examples. I created a project in my computer typing

mvn archetype:generate -DarchetypeArtifactId=maven-archetype-quickstart

then modified the pom.xml file to include the dependencies deeplearning4j, datavec and nd4j as specified in

After compiling (typed mvn package), I got two errors:

package org.deeplearning4j.examples.utilities does not exist
package org.nd4j.evaluation.classification does not exist

The first one is part of the deeplearning4j examples, but the second one is not. I looked for both of these packages in the maven repository, but none of them were there.

Please advice how/where to find these dependencies.



Note the age of the article. The examples there are using quite an old version of DL4J. The current version is beta6.

Thanks for the note.

This is the pom.xml contents of my package:

<project xmlns="" xmlns:xsi=""



If I understand correctly, I’m specifying the 1.0.0beta6 version.

What is your opinion about this error?


Ooops, it seems the editor translate some of the pom tags…I’m copying again the pom.xml contents:



<<>>{dl4j.version}<<</version>>> <<</dependency>>> <<<dependency>>> <<<groupId>>>org.datavec<<</groupId>>> <<<artifactId>>>datavec-api<<</artifactId>>> <<<version>>>{dl4j.version}<<>>

You need to make sure all the projects in the DL4J ecosystem refer to the same version. In what you posted above you have:

That should be beta6 as well. Like the rest.

Thanks! I fixed that typo but that did not solve the problem.

I’ve tried to add different dependencies, but none has solved this issue. I found a repo for deeplearning4j-examples at, but that included version, so, even this addition allowed maven to progress more than without that dependency, it end up producing the same compiling error.

I believe I need to add a dependency for a maven repository that includes the deeplearning4j-examples. I’ve looked one for the 1.0.0-beta6 version in maven repository without luck. I have the class file created in my local dir for the missing class, so I can look on how to add a class in a maven compilation.

Let me know what do you propose.


Some of the things that are used in examples, are meant to be just used in the examples. So you shouldn’t be using them outside of them.

If you absolutely still want to do that for learning purposes, you can install the examples into your local maven repository.

However, I advise you to not do that, if you want to use them, do that inside the examples project instead.

Thanks, that is a good advice. This problem helped me to learned other stuff about maven. Thanks for the assistance.