A good choice when making Maven - no doubt you'll be a full envelope soon! :)
You might want to check out the Maven law enforcement plugin . To get started, you can use the requireProperty rule to make sure the project.build.sourceEncoding property is set to UTF-8.
As for checking the files themselves (i.e. checking whether someone made a file other than Unicode), you can implement your own rule for the force launch plugin. When this rule is fulfilled, you will need to read all the resources in the project and find some encoding detection method for each (for example, iconv).
joelittlejohn
source share