HHH-8934 - ignore missing package-info.class files during jandex indexing

This commit is contained in:
Steve Ebersole 2014-02-05 17:03:35 -06:00
parent ee51f1a758
commit 6bdbde9734
1 changed files with 8 additions and 1 deletions

View File

@ -623,8 +623,15 @@ public class MetadataSources {
// add package-info from the configured packages
for ( String packageName : sources.getAnnotatedPackages() ) {
// 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")
for ( BindResult bindResult : sources.bindResultList ) {