As a prerequisite, make sure that the required Maven dependencies have been added for DataVec in your pom.xml file, as we mentioned in previous chapter, Configuring Maven for DL4J recipe.
The following is the sample pom.xml file: https://github.com/rahul-raj/Java-Deep-Learning-Cookbook/blob/master/02_Data_Extraction_Transform_and_Loading/sourceCode/cookbook-app/pom.xml.