Not sure if I understood the problem correctly, but if your Ruby files are maven packed and declared as a dependency, you can use the shade plugin to include the contents in the resulting jar file:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>1.4</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <artifactSet> <includes> <include>org.myapp.mypackage:mypackage</include> </includes> </artifactSet> <filters> <filter> <artifact>org.myapp.mypackage:mypackage</artifact> <includes> <include>org/my/package/*.rb</include> </includes> </filter> </filters> </configuration> </execution> </executions> </plugin>
source share