mavenunit-testinggroovygmaven-plugin

How to include groovy test-sources in generated jar or sources-jar using Maven


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?


Solution

  • I've googled "maven-sources-plugin add groovy sources" and found this.

    http://maven.40175.n5.nabble.com/use-relative-Path-in-includes-and-excludes-of-maven-source-plugin-tp120913p120915.html

    It worked.