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?
Asked
Active
Viewed 1,014 times
0
2 Answers
2
Usually a test-jar can be created by using the test-jar goal of the maven-sources-plugin furthermore it will help you if you check the documentation of the maven-sources-plugin in more detail to add the groovy sources into the sources-jar.

khmarbaise
- 92,914
- 28
- 189
- 235
1
I've googled "maven-sources-plugin add groovy sources" and found this.
It worked.

dhblah
- 9,751
- 12
- 56
- 92