-
Couldn't load subscription status.
- Fork 34
Open
Labels
Description
I have added jpa2ddl to a project where I also ahve source classes.
jpa2ddl generates nothing, even if configuration is very similar to the one in example.
After debuggging, I found out that FileResolver#listClassNamesInPackage(...) associates the package name to the source folder of my classes (and not the classes folder). As a consequence, contained files are .java which the pathMatcher object can't recognize as .class. And in turn, this prevent my classes from being recognized and creates an empty schema.
Possible solutions are
- Tweak the contect class loader to not use the
src/main/javafolder but thetarget/classesone - Change the pathMatcher to match
.javaand.classfiles. This one is way easier.