How to include test code in maven artifact?
I ha开发者_如何学Gove following problem module core contains test utils which is resused in dependent modules.
How to use this code in those modules? (maven dosen't include this code by convention, but how to solve this problem)
Use maven-source-plugin to create a test jar. It will be published along with your normal jar as an artifact of the build.
精彩评论