I'm using Maven with gmaven
plugin. Also I use maven-source-plugin
that allows me to generate source.jar
containing my sources. Also I have groovy tests that reside in a standard src/test/groovy directory. I configured pom.xml so that tests run when I'm building my project. The problem is, I can't found how to include groovy tests sources into generated -sources.jar
or at least in myApp.jar
itself. As I see from here: http://docs.codehaus.org/display/GMAVEN/Building+Groovy+Projects , 'groovy-jar' goal is marked as TODO. Please advise, is there a workaround?
I've googled "maven-sources-plugin add groovy sources" and found this.
It worked.