Hi Ben,
You get this error is because mendix does not understand maven. So you have two options:
1) as Eric recommends, download the jar files from maven repository (see screenshot) and add them to the userlib. Note that if the jar file has other dependencies you need to add those manually as well.
2) compile a so called fat "jar". Create a small maven project where you put in all the maven dependencies, and build a single jar files that has all of them. Then add this jar file to userlib - I wrote a blog post on this which you can find here https://www.mansystems.com/blog/mendix/managing-java-dependencies-for-mendix-modules/
-Andrej
Try dropping the auth0 JAR file in the /userlib/ folder in your project directory. Any JAR files in that folder get added to the build path.
Hi Andrej and Eric,
I followed your steps and this has me on the right track, thank you! I have created the fat jar and added the contents to the right place in userlib to be built, and all of the import statements reference the correct classes from maven dependencies.
Unfortunately, I am unable to build the project and receive an error about the mendix boot main class not being able to resolve 'model/bundles'. Is this something I need to update in the app?
Exception in thread "main" java.lang.IllegalArgumentException: Path 'model/bundles' cannot be resolved in base path 'C:\Users\blevine\Documents\Mendix\App1-demo-svg-plotly\deployment'.
at com.mendix.container.config.ProjectConfig.resolveRelative(ProjectConfig.scala:38)
at com.mendix.container.deployment.Dsl$Support$PathOps.$div(Dsl.scala:180)
at com.mendix.container.deployment.Model$.project(Model.scala:49)
at com.mendix.container.boot.Container$.doStart(Container.scala:120)
at com.mendix.container.boot.Container$.$anonfun$start$3(Container.scala:109)
at com.mendix.container.boot.Container$.time(Container.scala:181)
at com.mendix.container.boot.Container$.start(Container.scala:109)
at com.mendix.container.boot.Main$.$anonfun$new$1(Main.scala:11)
at scala.util.Either.flatMap(Either.scala:338)
at com.mendix.container.config.ProjectConfig$.run(ProjectConfig.scala:64)
at com.mendix.container.boot.Main$.delayedEndpoint$com$mendix$container$boot$Main$1(Main.scala:11)
at com.mendix.container.boot.Main$delayedInit$body.apply(Main.scala:9)
at scala.Function0.apply$mcV$sp(Function0.scala:34)
at scala.Function0.apply$mcV$sp$(Function0.scala:34)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App.$anonfun$main$1$adapted(App.scala:76)
at scala.collection.immutable.List.foreach(List.scala:389)
at scala.App.main(App.scala:76)
at scala.App.main$(App.scala:74)
at com.mendix.container.boot.Main$.main(Main.scala:9)
at com.mendix.container.boot.Main.main(Main.scala)