I have a package org.myapp.mypackage with some ruby files (*.rb) and I need to include them in the generated build jar in the same package
org.myapp.mypackage
*.rb
You can modify the resources section of the bit of the POM:
src/main/resources false src/main/java *.rb **/*.java
Or, the other answer (create the same package structure in src/main/resources) will also work.
src/main/resources