Search code examples
javaautomationcucumberbdd

ResourceBundle can't find BaseName gradle project java


I am trying to read fields from a file.properties with ResourcesBundle, here's the code:

public static final ResourceBundle QUERY_EXCEL = ResourceBundle.getBundle("ConsultaExcel"); 
String query=QueryManager.QUERY_EXCEL.getString("SQL.SELECT.consultarDatos"); 

When I run my project it throws an exception

Can't find bundle for base name ConsultaExcel, locale es_CO

the properties file is in Resource folder that is inside of src/main/resources


Solution

  • I could solve this by reinstalling IntelliJ IDEA and installing the plugins by defects