mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
HHH-8934 - ignore missing package-info.class files during jandex indexing
This commit is contained in:
parent
ee51f1a758
commit
6bdbde9734
@ -623,7 +623,14 @@ private IndexView process(MetadataSources sources) {
|
|||||||
|
|
||||||
// add package-info from the configured packages
|
// add package-info from the configured packages
|
||||||
for ( String packageName : sources.getAnnotatedPackages() ) {
|
for ( String packageName : sources.getAnnotatedPackages() ) {
|
||||||
indexResource( packageName.replace( '.', '/' ) + "/package-info.class" );
|
// older code seemed to simply ignore packages that did not have package-info,
|
||||||
|
// so do same
|
||||||
|
try {
|
||||||
|
indexResource( packageName.replace( '.', '/' ) + "/package-info.class" );
|
||||||
|
}
|
||||||
|
catch (Exception e) {
|
||||||
|
log.debugf( "Skipping package [%s] which caused error indexing : %s", packageName, e.getMessage() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the classes referenced in any orm.xml bindings (unless it is "metadata complete")
|
// the classes referenced in any orm.xml bindings (unless it is "metadata complete")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user