BundleUtil could not localize the properties

Hi there,

I am new to Ignition module development. I read the “gateway-webpage” example from the ignition-sdk-example in github and trying to build a similar module by myself.

I create a new module by using maven archetypes. Then copy the code from the example to my new created directory.

But there is a localization error. The properties of the module are not configured properly.

Compared with the example code, the only change is the groupId and moduleId. I do not know why the example code can work properly but my new created directory can not.

example code: https://github.com/ChichiZhou/ignitiontest2
my code: https://github.com/ChichiZhou/ignitiontest

To answer my own question. There is a log saying that
java.util.MissingResourceException: Can't find bundle for base name com/hezho/makework/***, locale en_US.

This means the directory is not detected by maven.

The solution is to create the directory again manually. Then restart the Gateway using
gwcmd -r