I am writing a Spring boot app (java class) which calls the H2o predict method which is inside another java class.
I have tested this java class independently and I can read the MOJO model if it is in the same place from where java is invoked and I can make predictions.
With the Spring boot App, This time my resultant jar of the maven project compilation cannot read that zip. I use the standard way to read the MOJO zip file using the Wrapper h2o provides.
EasyPredictModelWrapper model = new EasyPredictModelWrapper(MojoModel.load("DRF_model_python_1504558159175_1.zip"));
My Maven project structure looks like this:
The generated jar of the Spring boot App also contains the zip as shown below:
I don't understand why it gives me the error (it is an IOexception) that it cannot find the MOJO zip file.
File DRF_model_python_1504558159175_1.zip cannot be found.
I think the solutions could be: 1. Adding something in the Maven pom file so that the resultant jar knows where to pick up the model from. OR 2. If the MojoModel.load method accepts a path to the file rather than just the file name. But I think this doesn't work.
Any thoughts?

