Hi, I'm trying to run my JPMS app through the command line instead of IntelliJ. I set up maven to copy all dependencies to a specified folder, so that they can be added to the module path.
I use the following command to start the app:
java --module-path "infodb-app-1.0-SNAPSHOT.jar;modules" --add-reads ovh.eukon05.infodb.app=ALL-UNNAMED -m ovh.eukon05.infodb.app/ovh.eukon05.infodb.app.Main -Dinfodb.sources.articlelimit=5 -Dinfodb.hibernate.db.user=sa -Dinfodb.hibernate.db.pass= -Dinfodb.hibernate.db.url="jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1"
The app starts, but crashes saying that it couldn't instantiate a class responsible for database connectivity due to the lack of a persistence provider. I can't figure out why it is that way, because Hibernate is shown to be loaded to the module path when I use --show-module-resolution and persistence.xml is present in the META-INF folder of the module responsible for DB connectivity.
Link to the repo: https://github.com/Eukon05/infodb