Posts

Showing posts from December, 2018

sql maven plugin write file in target encoding.

Sql-maven-plugin is used to execute database queries as part of build steps. It can also generate files from database queries. It is an excellent tool when it comes to generating file where certain application parameters are saved in a database and are needed by an application as properties. Some applications save configuration parameters in the database but do not want to read it from the database at runtime, because of various business or architecture compliances. These applications rather produce configuration files from the database as part of the build step and use them as application properties as resource bundle. One good use is for locale messages. applications supporting multiple languages, generate message files of different locale from database tables, which are usually managed by business teams. Locale support needs specific encodings, which is not supported by out of the box by popular sql-maven-plugin from codehaus. The maven plugin code at GitHub.com has a pull